diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 138f11e..1e766cb 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -10,5 +10,6 @@ "repository": "https://github.com/MakingChatbots/genesys-cloud-architect", "license": "MIT", "keywords": ["genesys cloud", "architect", "flows", "ivr", "contact-center", "ccaas"], - "mcpServers": "./.mcp.json" + "mcpServers": "./.mcp.json", + "skills": "./skills/" } diff --git a/.gitignore b/.gitignore index 053c4fb..26e54d8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist/ .env* skills-lock.json .agents/ +.pnpm-store diff --git a/servers/genesys-cloud-architect-mcp.js b/servers/genesys-cloud-architect-mcp.js index f23ccc4..5ce07ff 100644 --- a/servers/genesys-cloud-architect-mcp.js +++ b/servers/genesys-cloud-architect-mcp.js @@ -1,77 +1,178 @@ -"use strict";var $y=Object.create;var ki=Object.defineProperty;var wy=Object.getOwnPropertyDescriptor;var ky=Object.getOwnPropertyNames;var zy=Object.getPrototypeOf,Sy=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zi=(t,e)=>{for(var r in e)ki(t,r,{get:e[r],enumerable:!0})},Py=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ky(e))!Sy.call(t,o)&&o!==r&&ki(t,o,{get:()=>e[o],enumerable:!(n=wy(e,o))||n.enumerable});return t};var Si=(t,e,r)=>(r=t!=null?$y(zy(t)):{},Py(e||!t||!t.__esModule?ki(r,"default",{value:t,enumerable:!0}):r,t));var ro=w(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.regexpCode=Y.getEsmExportName=Y.getProperty=Y.safeStringify=Y.stringify=Y.strConcat=Y.addCodeArg=Y.str=Y._=Y.nil=Y._Code=Y.Name=Y.IDENTIFIER=Y._CodeOrName=void 0;var eo=class{};Y._CodeOrName=eo;Y.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var br=class extends eo{constructor(e){if(super(),!Y.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Y.Name=br;var Qe=class extends eo{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof br&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Y._Code=Qe;Y.nil=new Qe("");function _h(t,...e){let r=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.ValueScope=Ae.ValueScopeName=Ae.Scope=Ae.varKinds=Ae.UsedValueState=void 0;var Ce=ro(),Pu=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},js;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(js||(Ae.UsedValueState=js={}));Ae.varKinds={const:new Ce.Name("const"),let:new Ce.Name("let"),var:new Ce.Name("var")};var Cs=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Ce.Name?e:this.name(e)}name(e){return new Ce.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ae.Scope=Cs;var As=class extends Ce.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Ce._)`.${new Ce.Name(r)}[${n}]`}};Ae.ValueScopeName=As;var V0=(0,Ce._)`\n`,Tu=class extends Cs{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?V0:Ce.nil}}get(){return this._scope}name(e){return new As(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(e),{prefix:s}=o,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let l=a.get(i);if(l)return l}else a=this._values[s]=new Map;a.set(i,o);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,o.setValue(r,{property:s,itemIndex:u}),o}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Ce._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(e,r,n={},o){let s=Ce.nil;for(let i in e){let a=e[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,js.Started);let l=r(u);if(l){let d=this.opts.es5?Ae.varKinds.var:Ae.varKinds.const;s=(0,Ce._)`${s}${d} ${u} = ${l};${this.opts._n}`}else if(l=o?.(u))s=(0,Ce._)`${s}${l}${this.opts._n}`;else throw new Pu(u);c.set(u,js.Completed)})}return s}};Ae.ValueScope=Tu});var U=w(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.or=F.and=F.not=F.CodeGen=F.operators=F.varKinds=F.ValueScopeName=F.ValueScope=F.Scope=F.Name=F.regexpCode=F.stringify=F.getProperty=F.nil=F.strConcat=F.str=F._=void 0;var G=ro(),it=Eu(),Ft=ro();Object.defineProperty(F,"_",{enumerable:!0,get:function(){return Ft._}});Object.defineProperty(F,"str",{enumerable:!0,get:function(){return Ft.str}});Object.defineProperty(F,"strConcat",{enumerable:!0,get:function(){return Ft.strConcat}});Object.defineProperty(F,"nil",{enumerable:!0,get:function(){return Ft.nil}});Object.defineProperty(F,"getProperty",{enumerable:!0,get:function(){return Ft.getProperty}});Object.defineProperty(F,"stringify",{enumerable:!0,get:function(){return Ft.stringify}});Object.defineProperty(F,"regexpCode",{enumerable:!0,get:function(){return Ft.regexpCode}});Object.defineProperty(F,"Name",{enumerable:!0,get:function(){return Ft.Name}});var Ls=Eu();Object.defineProperty(F,"Scope",{enumerable:!0,get:function(){return Ls.Scope}});Object.defineProperty(F,"ValueScope",{enumerable:!0,get:function(){return Ls.ValueScope}});Object.defineProperty(F,"ValueScopeName",{enumerable:!0,get:function(){return Ls.ValueScopeName}});Object.defineProperty(F,"varKinds",{enumerable:!0,get:function(){return Ls.varKinds}});F.operators={GT:new G._Code(">"),GTE:new G._Code(">="),LT:new G._Code("<"),LTE:new G._Code("<="),EQ:new G._Code("==="),NEQ:new G._Code("!=="),NOT:new G._Code("!"),OR:new G._Code("||"),AND:new G._Code("&&"),ADD:new G._Code("+")};var Pt=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Ru=class extends Pt{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?it.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Qr(this.rhs,e,r)),this}get names(){return this.rhs instanceof G._CodeOrName?this.rhs.names:{}}},Ms=class extends Pt{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof G.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Qr(this.rhs,e,r),this}get names(){let e=this.lhs instanceof G.Name?{}:{...this.lhs.names};return qs(e,this.rhs)}},Iu=class extends Ms{constructor(e,r,n,o){super(e,n,o),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Ou=class extends Pt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Zu=class extends Pt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Nu=class extends Pt{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},ju=class extends Pt{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Qr(this.code,e,r),this}get names(){return this.code instanceof G._CodeOrName?this.code.names:{}}},no=class extends Pt{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,o=n.length;for(;o--;){let s=n[o];s.optimizeNames(e,r)||(H0(e,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>wr(e,r.names),{})}},Tt=class extends no{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Cu=class extends no{},Yr=class extends Tt{};Yr.kind="else";var xr=class t extends Tt{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Yr(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(vh(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Qr(this.condition,e,r),this}get names(){let e=super.names;return qs(e,this.condition),this.else&&wr(e,this.else.names),e}};xr.kind="if";var $r=class extends Tt{};$r.kind="for";var Au=class extends $r{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Qr(this.iteration,e,r),this}get names(){return wr(super.names,this.iteration.names)}},Mu=class extends $r{constructor(e,r,n,o){super(),this.varKind=e,this.name=r,this.from=n,this.to=o}render(e){let r=e.es5?it.varKinds.var:this.varKind,{name:n,from:o,to:s}=this;return`for(${r} ${n}=${o}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){let e=qs(super.names,this.from);return qs(e,this.to)}},Ds=class extends $r{constructor(e,r,n,o){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Qr(this.iterable,e,r),this}get names(){return wr(super.names,this.iterable.names)}},oo=class extends Tt{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};oo.kind="func";var so=class extends no{render(e){return"return "+super.render(e)}};so.kind="return";var Du=class extends Tt{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,o;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(o=this.finally)===null||o===void 0||o.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&wr(e,this.catch.names),this.finally&&wr(e,this.finally.names),e}},io=class extends Tt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};io.kind="catch";var ao=class extends Tt{render(e){return"finally"+super.render(e)}};ao.kind="finally";var qu=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` -`:""},this._extScope=e,this._scope=new it.Scope({parent:e}),this._nodes=[new Cu]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,o){let s=this._scope.toName(r);return n!==void 0&&o&&(this._constants[s.str]=n),this._leafNode(new Ru(e,s,n)),s}const(e,r,n){return this._def(it.varKinds.const,e,r,n)}let(e,r,n){return this._def(it.varKinds.let,e,r,n)}var(e,r,n){return this._def(it.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new Ms(e,r,n))}add(e,r){return this._leafNode(new Iu(e,F.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==G.nil&&this._leafNode(new ju(e)),this}object(...e){let r=["{"];for(let[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,G.addCodeArg)(r,o));return r.push("}"),new G._Code(r)}if(e,r,n){if(this._blockNode(new xr(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new xr(e))}else(){return this._elseNode(new Yr)}endIf(){return this._endBlockNode(xr,Yr)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new Au(e),r)}forRange(e,r,n,o,s=this.opts.es5?it.varKinds.var:it.varKinds.let){let i=this._scope.toName(e);return this._for(new Mu(s,i,r,n),()=>o(i))}forOf(e,r,n,o=it.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let i=r instanceof G.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,G._)`${i}.length`,a=>{this.var(s,(0,G._)`${i}[${a}]`),n(s)})}return this._for(new Ds("of",o,s,r),()=>n(s))}forIn(e,r,n,o=this.opts.es5?it.varKinds.var:it.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,G._)`Object.keys(${r})`,n);let s=this._scope.toName(e);return this._for(new Ds("in",o,s,r),()=>n(s))}endFor(){return this._endBlockNode($r)}label(e){return this._leafNode(new Ou(e))}break(e){return this._leafNode(new Zu(e))}return(e){let r=new so;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(so)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Du;if(this._blockNode(o),this.code(e),r){let s=this.name("e");this._currNode=o.catch=new io(s),r(s)}return n&&(this._currNode=o.finally=new ao,this.code(n)),this._endBlockNode(io,ao)}throw(e){return this._leafNode(new Nu(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=G.nil,n,o){return this._blockNode(new oo(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(oo)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof xr))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};F.CodeGen=qu;function wr(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function qs(t,e){return e instanceof G._CodeOrName?wr(t,e.names):t}function Qr(t,e,r){if(t instanceof G.Name)return n(t);if(!o(t))return t;return new G._Code(t._items.reduce((s,i)=>(i instanceof G.Name&&(i=n(i)),i instanceof G._Code?s.push(...i._items):s.push(i),s),[]));function n(s){let i=r[s.str];return i===void 0||e[s.str]!==1?s:(delete e[s.str],i)}function o(s){return s instanceof G._Code&&s._items.some(i=>i instanceof G.Name&&e[i.str]===1&&r[i.str]!==void 0)}}function H0(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function vh(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,G._)`!${Lu(t)}`}F.not=vh;var J0=bh(F.operators.AND);function B0(...t){return t.reduce(J0)}F.and=B0;var K0=bh(F.operators.OR);function G0(...t){return t.reduce(K0)}F.or=G0;function bh(t){return(e,r)=>e===G.nil?r:r===G.nil?e:(0,G._)`${Lu(e)} ${t} ${Lu(r)}`}function Lu(t){return t instanceof G.Name?t:(0,G._)`(${t})`}});var W=w(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.checkStrictMode=V.getErrorPath=V.Type=V.useFunc=V.setEvaluated=V.evaluatedPropsToName=V.mergeEvaluated=V.eachItem=V.unescapeJsonPointer=V.escapeJsonPointer=V.escapeFragment=V.unescapeFragment=V.schemaRefOrVal=V.schemaHasRulesButRef=V.schemaHasRules=V.checkUnknownRules=V.alwaysValidSchema=V.toHash=void 0;var oe=U(),W0=ro();function X0(t){let e={};for(let r of t)e[r]=!0;return e}V.toHash=X0;function Y0(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(wh(t,e),!kh(e,t.self.RULES.all))}V.alwaysValidSchema=Y0;function wh(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let o=n.RULES.keywords;for(let s in e)o[s]||Ph(t,`unknown keyword: "${s}"`)}V.checkUnknownRules=wh;function kh(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}V.schemaHasRules=kh;function Q0(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}V.schemaHasRulesButRef=Q0;function ew({topSchemaRef:t,schemaPath:e},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,oe._)`${r}`}return(0,oe._)`${t}${e}${(0,oe.getProperty)(n)}`}V.schemaRefOrVal=ew;function tw(t){return zh(decodeURIComponent(t))}V.unescapeFragment=tw;function rw(t){return encodeURIComponent(Fu(t))}V.escapeFragment=rw;function Fu(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}V.escapeJsonPointer=Fu;function zh(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}V.unescapeJsonPointer=zh;function nw(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}V.eachItem=nw;function xh({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(o,s,i,a)=>{let c=i===void 0?s:i instanceof oe.Name?(s instanceof oe.Name?t(o,s,i):e(o,s,i),i):s instanceof oe.Name?(e(o,i,s),s):r(s,i);return a===oe.Name&&!(c instanceof oe.Name)?n(o,c):c}}V.mergeEvaluated={props:xh({mergeNames:(t,e,r)=>t.if((0,oe._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,oe._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,oe._)`${r} || {}`).code((0,oe._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,oe._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,oe._)`${r} || {}`),Vu(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Sh}),items:xh({mergeNames:(t,e,r)=>t.if((0,oe._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,oe._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,oe._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,oe._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Sh(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,oe._)`{}`);return e!==void 0&&Vu(t,r,e),r}V.evaluatedPropsToName=Sh;function Vu(t,e,r){Object.keys(r).forEach(n=>t.assign((0,oe._)`${e}${(0,oe.getProperty)(n)}`,!0))}V.setEvaluated=Vu;var $h={};function ow(t,e){return t.scopeValue("func",{ref:e,code:$h[e.code]||($h[e.code]=new W0._Code(e.code))})}V.useFunc=ow;var Uu;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Uu||(V.Type=Uu={}));function sw(t,e,r){if(t instanceof oe.Name){let n=e===Uu.Num;return r?n?(0,oe._)`"[" + ${t} + "]"`:(0,oe._)`"['" + ${t} + "']"`:n?(0,oe._)`"/" + ${t}`:(0,oe._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,oe.getProperty)(t).toString():"/"+Fu(t)}V.getErrorPath=sw;function Ph(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}V.checkStrictMode=Ph});var Et=w(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});var ze=U(),iw={data:new ze.Name("data"),valCxt:new ze.Name("valCxt"),instancePath:new ze.Name("instancePath"),parentData:new ze.Name("parentData"),parentDataProperty:new ze.Name("parentDataProperty"),rootData:new ze.Name("rootData"),dynamicAnchors:new ze.Name("dynamicAnchors"),vErrors:new ze.Name("vErrors"),errors:new ze.Name("errors"),this:new ze.Name("this"),self:new ze.Name("self"),scope:new ze.Name("scope"),json:new ze.Name("json"),jsonPos:new ze.Name("jsonPos"),jsonLen:new ze.Name("jsonLen"),jsonPart:new ze.Name("jsonPart")};Hu.default=iw});var co=w(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.extendErrors=Se.resetErrorsCount=Se.reportExtraError=Se.reportError=Se.keyword$DataError=Se.keywordError=void 0;var X=U(),Us=W(),Ie=Et();Se.keywordError={message:({keyword:t})=>(0,X.str)`must pass "${t}" keyword validation`};Se.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,X.str)`"${t}" keyword must be ${e} ($data)`:(0,X.str)`"${t}" keyword is invalid ($data)`};function aw(t,e=Se.keywordError,r,n){let{it:o}=t,{gen:s,compositeRule:i,allErrors:a}=o,c=Rh(t,e,r);n??(i||a)?Th(s,c):Eh(o,(0,X._)`[${c}]`)}Se.reportError=aw;function cw(t,e=Se.keywordError,r){let{it:n}=t,{gen:o,compositeRule:s,allErrors:i}=n,a=Rh(t,e,r);Th(o,a),s||i||Eh(n,Ie.default.vErrors)}Se.reportExtraError=cw;function uw(t,e){t.assign(Ie.default.errors,e),t.if((0,X._)`${Ie.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,X._)`${Ie.default.vErrors}.length`,e),()=>t.assign(Ie.default.vErrors,null)))}Se.resetErrorsCount=uw;function lw({gen:t,keyword:e,schemaValue:r,data:n,errsCount:o,it:s}){if(o===void 0)throw new Error("ajv implementation error");let i=t.name("err");t.forRange("i",o,Ie.default.errors,a=>{t.const(i,(0,X._)`${Ie.default.vErrors}[${a}]`),t.if((0,X._)`${i}.instancePath === undefined`,()=>t.assign((0,X._)`${i}.instancePath`,(0,X.strConcat)(Ie.default.instancePath,s.errorPath))),t.assign((0,X._)`${i}.schemaPath`,(0,X.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,X._)`${i}.schema`,r),t.assign((0,X._)`${i}.data`,n))})}Se.extendErrors=lw;function Th(t,e){let r=t.const("err",e);t.if((0,X._)`${Ie.default.vErrors} === null`,()=>t.assign(Ie.default.vErrors,(0,X._)`[${r}]`),(0,X._)`${Ie.default.vErrors}.push(${r})`),t.code((0,X._)`${Ie.default.errors}++`)}function Eh(t,e){let{gen:r,validateName:n,schemaEnv:o}=t;o.$async?r.throw((0,X._)`new ${t.ValidationError}(${e})`):(r.assign((0,X._)`${n}.errors`,e),r.return(!1))}var kr={keyword:new X.Name("keyword"),schemaPath:new X.Name("schemaPath"),params:new X.Name("params"),propertyName:new X.Name("propertyName"),message:new X.Name("message"),schema:new X.Name("schema"),parentSchema:new X.Name("parentSchema")};function Rh(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,X._)`{}`:dw(t,e,r)}function dw(t,e,r={}){let{gen:n,it:o}=t,s=[pw(o,r),fw(t,r)];return mw(t,e,s),n.object(...s)}function pw({errorPath:t},{instancePath:e}){let r=e?(0,X.str)`${t}${(0,Us.getErrorPath)(e,Us.Type.Str)}`:t;return[Ie.default.instancePath,(0,X.strConcat)(Ie.default.instancePath,r)]}function fw({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let o=n?e:(0,X.str)`${e}/${t}`;return r&&(o=(0,X.str)`${o}${(0,Us.getErrorPath)(r,Us.Type.Str)}`),[kr.schemaPath,o]}function mw(t,{params:e,message:r},n){let{keyword:o,data:s,schemaValue:i,it:a}=t,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:d}=a;n.push([kr.keyword,o],[kr.params,typeof e=="function"?e(t):e||(0,X._)`{}`]),c.messages&&n.push([kr.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([kr.schema,i],[kr.parentSchema,(0,X._)`${l}${d}`],[Ie.default.data,s]),u&&n.push([kr.propertyName,u])}});var Oh=w(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.boolOrEmptySchema=en.topBoolOrEmptySchema=void 0;var hw=co(),gw=U(),_w=Et(),yw={message:"boolean schema is false"};function vw(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Ih(t,!1):typeof r=="object"&&r.$async===!0?e.return(_w.default.data):(e.assign((0,gw._)`${n}.errors`,null),e.return(!0))}en.topBoolOrEmptySchema=vw;function bw(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Ih(t)):r.var(e,!0)}en.boolOrEmptySchema=bw;function Ih(t,e){let{gen:r,data:n}=t,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,hw.reportError)(o,yw,void 0,e)}});var Ju=w(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getRules=tn.isJSONType=void 0;var xw=["string","number","integer","boolean","null","object","array"],$w=new Set(xw);function ww(t){return typeof t=="string"&&$w.has(t)}tn.isJSONType=ww;function kw(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}tn.getRules=kw});var Bu=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.shouldUseRule=Vt.shouldUseGroup=Vt.schemaHasRulesForType=void 0;function zw({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&Zh(t,n)}Vt.schemaHasRulesForType=zw;function Zh(t,e){return e.rules.some(r=>Nh(t,r))}Vt.shouldUseGroup=Zh;function Nh(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Vt.shouldUseRule=Nh});var uo=w(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.reportTypeError=Pe.checkDataTypes=Pe.checkDataType=Pe.coerceAndCheckDataType=Pe.getJSONTypes=Pe.getSchemaTypes=Pe.DataType=void 0;var Sw=Ju(),Pw=Bu(),Tw=co(),q=U(),jh=W(),rn;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(rn||(Pe.DataType=rn={}));function Ew(t){let e=Ch(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Pe.getSchemaTypes=Ew;function Ch(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Sw.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Pe.getJSONTypes=Ch;function Rw(t,e){let{gen:r,data:n,opts:o}=t,s=Iw(e,o.coerceTypes),i=e.length>0&&!(s.length===0&&e.length===1&&(0,Pw.schemaHasRulesForType)(t,e[0]));if(i){let a=Gu(e,n,o.strictNumbers,rn.Wrong);r.if(a,()=>{s.length?Ow(t,e,s):Wu(t)})}return i}Pe.coerceAndCheckDataType=Rw;var Ah=new Set(["string","number","integer","boolean","null"]);function Iw(t,e){return e?t.filter(r=>Ah.has(r)||e==="array"&&r==="array"):[]}function Ow(t,e,r){let{gen:n,data:o,opts:s}=t,i=n.let("dataType",(0,q._)`typeof ${o}`),a=n.let("coerced",(0,q._)`undefined`);s.coerceTypes==="array"&&n.if((0,q._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,q._)`${o}[0]`).assign(i,(0,q._)`typeof ${o}`).if(Gu(e,o,s.strictNumbers),()=>n.assign(a,o))),n.if((0,q._)`${a} !== undefined`);for(let u of r)(Ah.has(u)||u==="array"&&s.coerceTypes==="array")&&c(u);n.else(),Wu(t),n.endIf(),n.if((0,q._)`${a} !== undefined`,()=>{n.assign(o,a),Zw(t,a)});function c(u){switch(u){case"string":n.elseIf((0,q._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,q._)`"" + ${o}`).elseIf((0,q._)`${o} === null`).assign(a,(0,q._)`""`);return;case"number":n.elseIf((0,q._)`${i} == "boolean" || ${o} === null - || (${i} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,q._)`+${o}`);return;case"integer":n.elseIf((0,q._)`${i} === "boolean" || ${o} === null - || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,q._)`+${o}`);return;case"boolean":n.elseIf((0,q._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,q._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,q._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,q._)`${i} === "string" || ${i} === "number" - || ${i} === "boolean" || ${o} === null`).assign(a,(0,q._)`[${o}]`)}}}function Zw({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,q._)`${e} !== undefined`,()=>t.assign((0,q._)`${e}[${r}]`,n))}function Ku(t,e,r,n=rn.Correct){let o=n===rn.Correct?q.operators.EQ:q.operators.NEQ,s;switch(t){case"null":return(0,q._)`${e} ${o} null`;case"array":s=(0,q._)`Array.isArray(${e})`;break;case"object":s=(0,q._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=i((0,q._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=i();break;default:return(0,q._)`typeof ${e} ${o} ${t}`}return n===rn.Correct?s:(0,q.not)(s);function i(a=q.nil){return(0,q.and)((0,q._)`typeof ${e} == "number"`,a,r?(0,q._)`isFinite(${e})`:q.nil)}}Pe.checkDataType=Ku;function Gu(t,e,r,n){if(t.length===1)return Ku(t[0],e,r,n);let o,s=(0,jh.toHash)(t);if(s.array&&s.object){let i=(0,q._)`typeof ${e} != "object"`;o=s.null?i:(0,q._)`!${e} || ${i}`,delete s.null,delete s.array,delete s.object}else o=q.nil;s.number&&delete s.integer;for(let i in s)o=(0,q.and)(o,Ku(i,e,r,n));return o}Pe.checkDataTypes=Gu;var Nw={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,q._)`{type: ${t}}`:(0,q._)`{type: ${e}}`};function Wu(t){let e=jw(t);(0,Tw.reportError)(e,Nw)}Pe.reportTypeError=Wu;function jw(t){let{gen:e,data:r,schema:n}=t,o=(0,jh.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:t}}});var Dh=w(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.assignDefaults=void 0;var nn=U(),Cw=W();function Aw(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let o in r)Mh(t,o,r[o].default);else e==="array"&&Array.isArray(n)&&n.forEach((o,s)=>Mh(t,s,o.default))}Fs.assignDefaults=Aw;function Mh(t,e,r){let{gen:n,compositeRule:o,data:s,opts:i}=t;if(r===void 0)return;let a=(0,nn._)`${s}${(0,nn.getProperty)(e)}`;if(o){(0,Cw.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,nn._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,nn._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,nn._)`${a} = ${(0,nn.stringify)(r)}`)}});var et=w(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.validateUnion=te.validateArray=te.usePattern=te.callValidateCode=te.schemaProperties=te.allSchemaProperties=te.noPropertyInData=te.propertyInData=te.isOwnProperty=te.hasPropFunc=te.reportMissingProp=te.checkMissingProp=te.checkReportMissingProp=void 0;var ce=U(),Xu=W(),Ht=Et(),Mw=W();function Dw(t,e){let{gen:r,data:n,it:o}=t;r.if(Qu(r,n,e,o.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ce._)`${e}`},!0),t.error()})}te.checkReportMissingProp=Dw;function qw({gen:t,data:e,it:{opts:r}},n,o){return(0,ce.or)(...n.map(s=>(0,ce.and)(Qu(t,e,s,r.ownProperties),(0,ce._)`${o} = ${s}`)))}te.checkMissingProp=qw;function Lw(t,e){t.setParams({missingProperty:e},!0),t.error()}te.reportMissingProp=Lw;function qh(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ce._)`Object.prototype.hasOwnProperty`})}te.hasPropFunc=qh;function Yu(t,e,r){return(0,ce._)`${qh(t)}.call(${e}, ${r})`}te.isOwnProperty=Yu;function Uw(t,e,r,n){let o=(0,ce._)`${e}${(0,ce.getProperty)(r)} !== undefined`;return n?(0,ce._)`${o} && ${Yu(t,e,r)}`:o}te.propertyInData=Uw;function Qu(t,e,r,n){let o=(0,ce._)`${e}${(0,ce.getProperty)(r)} === undefined`;return n?(0,ce.or)(o,(0,ce.not)(Yu(t,e,r))):o}te.noPropertyInData=Qu;function Lh(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}te.allSchemaProperties=Lh;function Fw(t,e){return Lh(e).filter(r=>!(0,Xu.alwaysValidSchema)(t,e[r]))}te.schemaProperties=Fw;function Vw({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},a,c,u){let l=u?(0,ce._)`${t}, ${e}, ${n}${o}`:e,d=[[Ht.default.instancePath,(0,ce.strConcat)(Ht.default.instancePath,s)],[Ht.default.parentData,i.parentData],[Ht.default.parentDataProperty,i.parentDataProperty],[Ht.default.rootData,Ht.default.rootData]];i.opts.dynamicRef&&d.push([Ht.default.dynamicAnchors,Ht.default.dynamicAnchors]);let p=(0,ce._)`${l}, ${r.object(...d)}`;return c!==ce.nil?(0,ce._)`${a}.call(${c}, ${p})`:(0,ce._)`${a}(${p})`}te.callValidateCode=Vw;var Hw=(0,ce._)`new RegExp`;function Jw({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:o}=e.code,s=o(r,n);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ce._)`${o.code==="new RegExp"?Hw:(0,Mw.useFunc)(t,o)}(${r}, ${n})`})}te.usePattern=Jw;function Bw(t){let{gen:e,data:r,keyword:n,it:o}=t,s=e.name("valid");if(o.allErrors){let a=e.let("valid",!0);return i(()=>e.assign(a,!1)),a}return e.var(s,!0),i(()=>e.break()),s;function i(a){let c=e.const("len",(0,ce._)`${r}.length`);e.forRange("i",0,c,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Xu.Type.Num},s),e.if((0,ce.not)(s),a)})}}te.validateArray=Bw;function Kw(t){let{gen:e,schema:r,keyword:n,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Xu.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let i=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,u)=>{let l=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},a);e.assign(i,(0,ce._)`${i} || ${a}`),t.mergeValidEvaluated(l,a)||e.if((0,ce.not)(i))})),t.result(i,()=>t.reset(),()=>t.error(!0))}te.validateUnion=Kw});var Vh=w(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateKeywordUsage=ht.validSchemaType=ht.funcKeywordCode=ht.macroKeywordCode=void 0;var Oe=U(),zr=Et(),Gw=et(),Ww=co();function Xw(t,e){let{gen:r,keyword:n,schema:o,parentSchema:s,it:i}=t,a=e.macro.call(i.self,o,s,i),c=Fh(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let u=r.name("valid");t.subschema({schema:a,schemaPath:Oe.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}ht.macroKeywordCode=Xw;function Yw(t,e){var r;let{gen:n,keyword:o,schema:s,parentSchema:i,$data:a,it:c}=t;ek(c,e);let u=!a&&e.compile?e.compile.call(c.self,s,i,c):e.validate,l=Fh(n,o,u),d=n.let("valid");t.block$data(d,p),t.ok((r=e.valid)!==null&&r!==void 0?r:d);function p(){if(e.errors===!1)_(),e.modifying&&Uh(t),y(()=>t.error());else{let $=e.async?f():m();e.modifying&&Uh(t),y(()=>Qw(t,$))}}function f(){let $=n.let("ruleErrs",null);return n.try(()=>_((0,Oe._)`await `),j=>n.assign(d,!1).if((0,Oe._)`${j} instanceof ${c.ValidationError}`,()=>n.assign($,(0,Oe._)`${j}.errors`),()=>n.throw(j))),$}function m(){let $=(0,Oe._)`${l}.errors`;return n.assign($,null),_(Oe.nil),$}function _($=e.async?(0,Oe._)`await `:Oe.nil){let j=c.opts.passContext?zr.default.this:zr.default.self,E=!("compile"in e&&!a||e.schema===!1);n.assign(d,(0,Oe._)`${$}${(0,Gw.callValidateCode)(t,l,j,E)}`,e.modifying)}function y($){var j;n.if((0,Oe.not)((j=e.valid)!==null&&j!==void 0?j:d),$)}}ht.funcKeywordCode=Yw;function Uh(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,Oe._)`${n.parentData}[${n.parentDataProperty}]`))}function Qw(t,e){let{gen:r}=t;r.if((0,Oe._)`Array.isArray(${e})`,()=>{r.assign(zr.default.vErrors,(0,Oe._)`${zr.default.vErrors} === null ? ${e} : ${zr.default.vErrors}.concat(${e})`).assign(zr.default.errors,(0,Oe._)`${zr.default.vErrors}.length`),(0,Ww.extendErrors)(t)},()=>t.error())}function ek({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function Fh(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Oe.stringify)(r)})}function tk(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}ht.validSchemaType=tk;function rk({schema:t,opts:e,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");let i=o.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(t[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}ht.validateKeywordUsage=rk});var Jh=w(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.extendSubschemaMode=Jt.extendSubschemaData=Jt.getSubschema=void 0;var gt=U(),Hh=W();function nk(t,{keyword:e,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:i}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,gt._)`${t.schemaPath}${(0,gt.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,gt._)`${t.schemaPath}${(0,gt.getProperty)(e)}${(0,gt.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Hh.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Jt.getSubschema=nk;function ok(t,e,{dataProp:r,dataPropType:n,data:o,dataTypes:s,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:u,dataPathArr:l,opts:d}=e,p=a.let("data",(0,gt._)`${e.data}${(0,gt.getProperty)(r)}`,!0);c(p),t.errorPath=(0,gt.str)`${u}${(0,Hh.getErrorPath)(r,n,d.jsPropertySyntax)}`,t.parentDataProperty=(0,gt._)`${r}`,t.dataPathArr=[...l,t.parentDataProperty]}if(o!==void 0){let u=o instanceof gt.Name?o:a.let("data",o,!0);c(u),i!==void 0&&(t.propertyName=i)}s&&(t.dataTypes=s);function c(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Jt.extendSubschemaData=ok;function sk(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(t.compositeRule=n),o!==void 0&&(t.createErrors=o),s!==void 0&&(t.allErrors=s),t.jtdDiscriminator=e,t.jtdMetadata=r}Jt.extendSubschemaMode=sk});var el=w((h1,Bh)=>{"use strict";Bh.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}});var Gh=w((g1,Kh)=>{"use strict";var Bt=Kh.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};Vs(e,n,o,t,"",t)};Bt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Bt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Bt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Bt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Vs(t,e,r,n,o,s,i,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,o,s,i,a,c,u);for(var l in n){var d=n[l];if(Array.isArray(d)){if(l in Bt.arrayKeywords)for(var p=0;p{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.getSchemaRefs=Me.resolveUrl=Me.normalizeId=Me._getFullPath=Me.getFullPath=Me.inlineRef=void 0;var ak=W(),ck=el(),uk=Gh(),lk=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function dk(t,e=!0){return typeof t=="boolean"?!0:e===!0?!tl(t):e?Wh(t)<=e:!1}Me.inlineRef=dk;var pk=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function tl(t){for(let e in t){if(pk.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(tl)||typeof r=="object"&&tl(r))return!0}return!1}function Wh(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!lk.has(r)&&(typeof t[r]=="object"&&(0,ak.eachItem)(t[r],n=>e+=Wh(n)),e===1/0))return 1/0}return e}function Xh(t,e="",r){r!==!1&&(e=on(e));let n=t.parse(e);return Yh(t,n)}Me.getFullPath=Xh;function Yh(t,e){return t.serialize(e).split("#")[0]+"#"}Me._getFullPath=Yh;var fk=/#\/?$/;function on(t){return t?t.replace(fk,""):""}Me.normalizeId=on;function mk(t,e,r){return r=on(r),t.resolve(e,r)}Me.resolveUrl=mk;var hk=/^[a-z_][-a-z0-9._]*$/i;function gk(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=on(t[r]||e),s={"":o},i=Xh(n,o,!1),a={},c=new Set;return uk(t,{allKeys:!0},(d,p,f,m)=>{if(m===void 0)return;let _=i+p,y=s[m];typeof d[r]=="string"&&(y=$.call(this,d[r])),j.call(this,d.$anchor),j.call(this,d.$dynamicAnchor),s[p]=y;function $(E){let Z=this.opts.uriResolver.resolve;if(E=on(y?Z(y,E):E),c.has(E))throw l(E);c.add(E);let S=this.refs[E];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?u(d,S.schema,E):E!==on(_)&&(E[0]==="#"?(u(d,a[E],E),a[E]=d):this.refs[E]=_),E}function j(E){if(typeof E=="string"){if(!hk.test(E))throw new Error(`invalid anchor "${E}"`);$.call(this,`#${E}`)}}}),a;function u(d,p,f){if(p!==void 0&&!ck(d,p))throw l(f)}function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}}Me.getSchemaRefs=gk});var mo=w(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getData=Kt.KeywordCxt=Kt.validateFunctionCode=void 0;var ng=Oh(),Qh=uo(),nl=Bu(),Hs=uo(),_k=Dh(),fo=Vh(),rl=Jh(),I=U(),M=Et(),yk=lo(),Rt=W(),po=co();function vk(t){if(ig(t)&&(ag(t),sg(t))){$k(t);return}og(t,()=>(0,ng.topBoolOrEmptySchema)(t))}Kt.validateFunctionCode=vk;function og({gen:t,validateName:e,schema:r,schemaEnv:n,opts:o},s){o.code.es5?t.func(e,(0,I._)`${M.default.data}, ${M.default.valCxt}`,n.$async,()=>{t.code((0,I._)`"use strict"; ${eg(r,o)}`),xk(t,o),t.code(s)}):t.func(e,(0,I._)`${M.default.data}, ${bk(o)}`,n.$async,()=>t.code(eg(r,o)).code(s))}function bk(t){return(0,I._)`{${M.default.instancePath}="", ${M.default.parentData}, ${M.default.parentDataProperty}, ${M.default.rootData}=${M.default.data}${t.dynamicRef?(0,I._)`, ${M.default.dynamicAnchors}={}`:I.nil}}={}`}function xk(t,e){t.if(M.default.valCxt,()=>{t.var(M.default.instancePath,(0,I._)`${M.default.valCxt}.${M.default.instancePath}`),t.var(M.default.parentData,(0,I._)`${M.default.valCxt}.${M.default.parentData}`),t.var(M.default.parentDataProperty,(0,I._)`${M.default.valCxt}.${M.default.parentDataProperty}`),t.var(M.default.rootData,(0,I._)`${M.default.valCxt}.${M.default.rootData}`),e.dynamicRef&&t.var(M.default.dynamicAnchors,(0,I._)`${M.default.valCxt}.${M.default.dynamicAnchors}`)},()=>{t.var(M.default.instancePath,(0,I._)`""`),t.var(M.default.parentData,(0,I._)`undefined`),t.var(M.default.parentDataProperty,(0,I._)`undefined`),t.var(M.default.rootData,M.default.data),e.dynamicRef&&t.var(M.default.dynamicAnchors,(0,I._)`{}`)})}function $k(t){let{schema:e,opts:r,gen:n}=t;og(t,()=>{r.$comment&&e.$comment&&ug(t),Pk(t),n.let(M.default.vErrors,null),n.let(M.default.errors,0),r.unevaluated&&wk(t),cg(t),Rk(t)})}function wk(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,I._)`${r}.evaluated`),e.if((0,I._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,I._)`${t.evaluated}.props`,(0,I._)`undefined`)),e.if((0,I._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,I._)`${t.evaluated}.items`,(0,I._)`undefined`))}function eg(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,I._)`/*# sourceURL=${r} */`:I.nil}function kk(t,e){if(ig(t)&&(ag(t),sg(t))){zk(t,e);return}(0,ng.boolOrEmptySchema)(t,e)}function sg({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function ig(t){return typeof t.schema!="boolean"}function zk(t,e){let{schema:r,gen:n,opts:o}=t;o.$comment&&r.$comment&&ug(t),Tk(t),Ek(t);let s=n.const("_errs",M.default.errors);cg(t,s),n.var(e,(0,I._)`${s} === ${M.default.errors}`)}function ag(t){(0,Rt.checkUnknownRules)(t),Sk(t)}function cg(t,e){if(t.opts.jtd)return tg(t,[],!1,e);let r=(0,Qh.getSchemaTypes)(t.schema),n=(0,Qh.coerceAndCheckDataType)(t,r);tg(t,r,!n,e)}function Sk(t){let{schema:e,errSchemaPath:r,opts:n,self:o}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Rt.schemaHasRulesButRef)(e,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Pk(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Rt.checkStrictMode)(t,"default is ignored in the schema root")}function Tk(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,yk.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function Ek(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function ug({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:o}){let s=r.$comment;if(o.$comment===!0)t.code((0,I._)`${M.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){let i=(0,I.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,I._)`${M.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function Rk(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=t;r.$async?e.if((0,I._)`${M.default.errors} === 0`,()=>e.return(M.default.data),()=>e.throw((0,I._)`new ${o}(${M.default.vErrors})`)):(e.assign((0,I._)`${n}.errors`,M.default.vErrors),s.unevaluated&&Ik(t),e.return((0,I._)`${M.default.errors} === 0`))}function Ik({gen:t,evaluated:e,props:r,items:n}){r instanceof I.Name&&t.assign((0,I._)`${e}.props`,r),n instanceof I.Name&&t.assign((0,I._)`${e}.items`,n)}function tg(t,e,r,n){let{gen:o,schema:s,data:i,allErrors:a,opts:c,self:u}=t,{RULES:l}=u;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Rt.schemaHasRulesButRef)(s,l))){o.block(()=>dg(t,"$ref",l.all.$ref.definition));return}c.jtd||Ok(t,e),o.block(()=>{for(let p of l.rules)d(p);d(l.post)});function d(p){(0,nl.shouldUseGroup)(s,p)&&(p.type?(o.if((0,Hs.checkDataType)(p.type,i,c.strictNumbers)),rg(t,p),e.length===1&&e[0]===p.type&&r&&(o.else(),(0,Hs.reportTypeError)(t)),o.endIf()):rg(t,p),a||o.if((0,I._)`${M.default.errors} === ${n||0}`))}}function rg(t,e){let{gen:r,schema:n,opts:{useDefaults:o}}=t;o&&(0,_k.assignDefaults)(t,e.type),r.block(()=>{for(let s of e.rules)(0,nl.shouldUseRule)(n,s)&&dg(t,s.keyword,s.definition,e.type)})}function Ok(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(Zk(t,e),t.opts.allowUnionTypes||Nk(t,e),jk(t,t.dataTypes))}function Zk(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{lg(t.dataTypes,r)||ol(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),Ak(t,e)}}function Nk(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&ol(t,"use allowUnionTypes to allow union type keyword")}function jk(t,e){let r=t.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,nl.shouldUseRule)(t.schema,o)){let{type:s}=o.definition;s.length&&!s.some(i=>Ck(e,i))&&ol(t,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function Ck(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function lg(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function Ak(t,e){let r=[];for(let n of t.dataTypes)lg(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function ol(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,Rt.checkStrictMode)(t,e,t.opts.strictTypes)}var Js=class{constructor(e,r,n){if((0,fo.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Rt.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",pg(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,fo.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",M.default.errors))}result(e,r,n){this.failResult((0,I.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,I.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,I._)`${r} !== undefined && (${(0,I.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?po.reportExtraError:po.reportError)(this,this.def.error,r)}$dataError(){(0,po.reportError)(this,this.def.$dataError||po.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,po.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=I.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=I.nil,r=I.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:s,def:i}=this;n.if((0,I.or)((0,I._)`${o} === undefined`,r)),e!==I.nil&&n.assign(e,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==I.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:o,it:s}=this;return(0,I.or)(i(),a());function i(){if(n.length){if(!(r instanceof I.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,I._)`${(0,Hs.checkDataTypes)(c,r,s.opts.strictNumbers,Hs.DataType.Wrong)}`}return I.nil}function a(){if(o.validateSchema){let c=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,I._)`!${c}(${r})`}return I.nil}}subschema(e,r){let n=(0,rl.getSubschema)(this.it,e);(0,rl.extendSubschemaData)(n,this.it,e),(0,rl.extendSubschemaMode)(n,e);let o={...this.it,...n,items:void 0,props:void 0};return kk(o,r),o}mergeEvaluated(e,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Rt.mergeEvaluated.props(o,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=Rt.mergeEvaluated.items(o,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(e,I.Name)),!0}};Kt.KeywordCxt=Js;function dg(t,e,r,n){let o=new Js(t,r,e);"code"in r?r.code(o,n):o.$data&&r.validate?(0,fo.funcKeywordCode)(o,r):"macro"in r?(0,fo.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,fo.funcKeywordCode)(o,r)}var Mk=/^\/(?:[^~]|~0|~1)*$/,Dk=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function pg(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let o,s;if(t==="")return M.default.rootData;if(t[0]==="/"){if(!Mk.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);o=t,s=M.default.rootData}else{let u=Dk.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let l=+u[1];if(o=u[2],o==="#"){if(l>=e)throw new Error(c("property/index",l));return n[e-l]}if(l>e)throw new Error(c("data",l));if(s=r[e-l],!o)return s}let i=s,a=o.split("/");for(let u of a)u&&(s=(0,I._)`${s}${(0,I.getProperty)((0,Rt.unescapeJsonPointer)(u))}`,i=(0,I._)`${i} && ${s}`);return i;function c(u,l){return`Cannot access ${u} ${l} levels up, current level is ${e}`}}Kt.getData=pg});var Bs=w(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var sl=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};il.default=sl});var ho=w(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var al=lo(),cl=class extends Error{constructor(e,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,al.resolveUrl)(e,r,n),this.missingSchema=(0,al.normalizeId)((0,al.getFullPath)(e,this.missingRef))}};ul.default=cl});var Gs=w(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.resolveSchema=tt.getCompilingSchema=tt.resolveRef=tt.compileSchema=tt.SchemaEnv=void 0;var at=U(),qk=Bs(),Sr=Et(),ct=lo(),fg=W(),Lk=mo(),sn=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,ct.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};tt.SchemaEnv=sn;function dl(t){let e=mg.call(this,t);if(e)return e;let r=(0,ct.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new at.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s}),a;t.$async&&(a=i.scopeValue("Error",{ref:qk.default,code:(0,at._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");t.validateName=c;let u={gen:i,allErrors:this.opts.allErrors,data:Sr.default.data,parentData:Sr.default.parentData,parentDataProperty:Sr.default.parentDataProperty,dataNames:[Sr.default.data],dataPathArr:[at.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,at.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:at.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,at._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(t),(0,Lk.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);let d=i.toString();l=`${i.scopeRefs(Sr.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,t));let f=new Function(`${Sr.default.self}`,`${Sr.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:d,scopeValues:i._values}),this.opts.unevaluated){let{props:m,items:_}=u;f.evaluated={props:m instanceof at.Name?void 0:m,items:_ instanceof at.Name?void 0:_,dynamicProps:m instanceof at.Name,dynamicItems:_ instanceof at.Name},f.source&&(f.source.evaluated=(0,at.stringify)(f.evaluated))}return t.validate=f,t}catch(d){throw delete t.validate,delete t.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(t)}}tt.compileSchema=dl;function Uk(t,e,r){var n;r=(0,ct.resolveUrl)(this.opts.uriResolver,e,r);let o=t.refs[r];if(o)return o;let s=Hk.call(this,t,r);if(s===void 0){let i=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;i&&(s=new sn({schema:i,schemaId:a,root:t,baseId:e}))}if(s!==void 0)return t.refs[r]=Fk.call(this,s)}tt.resolveRef=Uk;function Fk(t){return(0,ct.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:dl.call(this,t)}function mg(t){for(let e of this._compilations)if(Vk(e,t))return e}tt.getCompilingSchema=mg;function Vk(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function Hk(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Ks.call(this,t,e)}function Ks(t,e){let r=this.opts.uriResolver.parse(e),n=(0,ct._getFullPath)(this.opts.uriResolver,r),o=(0,ct.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===o)return ll.call(this,r,t);let s=(0,ct.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=Ks.call(this,t,i);return typeof a?.schema!="object"?void 0:ll.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||dl.call(this,i),s===(0,ct.normalizeId)(e)){let{schema:a}=i,{schemaId:c}=this.opts,u=a[c];return u&&(o=(0,ct.resolveUrl)(this.opts.uriResolver,o,u)),new sn({schema:a,schemaId:c,root:t,baseId:o})}return ll.call(this,r,i)}}tt.resolveSchema=Ks;var Jk=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ll(t,{baseId:e,schema:r,root:n}){var o;if(((o=t.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,fg.unescapeFragment)(a)];if(c===void 0)return;r=c;let u=typeof r=="object"&&r[this.opts.schemaId];!Jk.has(a)&&u&&(e=(0,ct.resolveUrl)(this.opts.uriResolver,e,u))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,fg.schemaHasRulesButRef)(r,this.RULES)){let a=(0,ct.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=Ks.call(this,n,a)}let{schemaId:i}=this.opts;if(s=s||new sn({schema:r,schemaId:i,root:n,baseId:e}),s.schema!==s.root.schema)return s}});var hg=w(($1,Bk)=>{Bk.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var ml=w((w1,xg)=>{"use strict";var Kk=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),_g=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),pl=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),yg=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),Gk=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function fl(t){let e="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var Wk=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function gg(t){return t.length=0,!0}function Xk(t,e,r){if(t.length){let n=fl(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function Yk(t){let e=0,r={error:!1,address:"",zone:""},n=[],o=[],s=!1,i=!1,a=Xk;for(let c=0;c7){r.error=!0;break}c>0&&t[c-1]===":"&&(s=!0),n.push(":");continue}else if(u==="%"){if(!a(o,n,r))break;a=gg}else{o.push(u);continue}}return o.length&&(a===gg?r.zone=o.join(""):i?n.push(o.join("")):n.push(fl(o))),r.address=n.join(""),r}function vg(t){if(Qk(t,":")<2)return{host:t,isIPV6:!1};let e=Yk(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function Qk(t,e){let r=0;for(let n=0;ntz[n])}function oz(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let n=0;n{"use strict";var{isUUID:cz}=ml(),uz=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,lz=["http","https","ws","wss","urn","urn:uuid"];function dz(t){return lz.indexOf(t)!==-1}function hl(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function $g(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function wg(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function pz(t){return t.secure=hl(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function fz(t){if((t.port===(hl(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function mz(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(uz);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let o=`${n}:${e.nid||t.nid}`,s=gl(o);t.path=void 0,s&&(t=s.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function hz(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),o=`${r}:${e.nid||n}`,s=gl(o);s&&(t=s.serialize(t,e));let i=t,a=t.nss;return i.path=`${n||e.nid}:${a}`,e.skipEscape=!0,i}function gz(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!cz(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function _z(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var kg={scheme:"http",domainHost:!0,parse:$g,serialize:wg},yz={scheme:"https",domainHost:kg.domainHost,parse:$g,serialize:wg},Ws={scheme:"ws",domainHost:!0,parse:pz,serialize:fz},vz={scheme:"wss",domainHost:Ws.domainHost,parse:Ws.parse,serialize:Ws.serialize},bz={scheme:"urn",parse:mz,serialize:hz,skipNormalize:!0},xz={scheme:"urn:uuid",parse:gz,serialize:_z,skipNormalize:!0},Xs={http:kg,https:yz,ws:Ws,wss:vz,urn:bz,"urn:uuid":xz};Object.setPrototypeOf(Xs,null);function gl(t){return t&&(Xs[t]||Xs[t.toLowerCase()])||void 0}zg.exports={wsIsSecure:hl,SCHEMES:Xs,isValidSchemeName:dz,getSchemeHandler:gl}});var Og=w((z1,Ys)=>{"use strict";var{normalizeIPv6:$z,removeDotSegments:go,recomposeAuthority:wz,normalizePercentEncoding:kz,normalizePathEncoding:zz,escapePreservingEscapes:Sz,reescapeHostDelimiters:Pz,isIPv4:Tz,nonSimpleDomain:Ez}=ml(),{SCHEMES:Rz,getSchemeHandler:Tg}=Sg();function Iz(t,e){return typeof t=="string"?t=Cz(t,e):typeof t=="object"&&(t=an(Pr(t,e),e)),t}function Oz(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=Eg(an(t,n),an(e,n),n,!0);return n.skipEscape=!0,Pr(o,n)}function Eg(t,e,r,n){let o={};return n||(t=an(Pr(t,r),r),e=an(Pr(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(o.scheme=e.scheme,o.userinfo=e.userinfo,o.host=e.host,o.port=e.port,o.path=go(e.path||""),o.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(o.userinfo=e.userinfo,o.host=e.host,o.port=e.port,o.path=go(e.path||""),o.query=e.query):(e.path?(e.path[0]==="/"?o.path=go(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?o.path="/"+e.path:t.path?o.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:o.path=e.path,o.path=go(o.path)),o.query=e.query):(o.path=t.path,e.query!==void 0?o.query=e.query:o.query=t.query),o.userinfo=t.userinfo,o.host=t.host,o.port=t.port),o.scheme=t.scheme),o.fragment=e.fragment,o}function Zz(t,e,r){let n=Pg(t,r),o=Pg(e,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function Pr(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),o=[],s=Tg(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=kz(r.path):(r.path=Sz(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let i=wz(r);if(i!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(i),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=go(a)),i===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var Nz=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function jz(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function Rg(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,s=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let i=t.match(Nz);if(i){n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]);let a=jz(n,i);if(a!==void 0&&(n.error=n.error||a,o=!0),n.host)if(Tz(n.host)===!1){let l=$z(n.host);n.host=l.host.toLowerCase(),s=l.isIPV6}else s=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Tg(r.scheme||n.scheme);if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&Ez(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!c||c&&!c.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=Pz(unescape(n.host),s))),n.path&&(n.path=zz(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function an(t,e){return Rg(t,e).parsed}function Cz(t,e){return Ig(t,e).normalized}function Ig(t,e){let{parsed:r,malformedAuthorityOrPort:n}=Rg(t,e);return{normalized:n?t:Pr(r,e),malformedAuthorityOrPort:n}}function Pg(t,e){if(typeof t=="string"){let{normalized:r,malformedAuthorityOrPort:n}=Ig(t,e);return n?void 0:r}if(typeof t=="object")return Pr(t,e)}var _l={SCHEMES:Rz,normalize:Iz,resolve:Oz,resolveComponent:Eg,equal:Zz,serialize:Pr,parse:an};Ys.exports=_l;Ys.exports.default=_l;Ys.exports.fastUri=_l});var Ng=w(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Zg=Og();Zg.code='require("ajv/dist/runtime/uri").default';yl.default=Zg});var Ug=w($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.CodeGen=$e.Name=$e.nil=$e.stringify=$e.str=$e._=$e.KeywordCxt=void 0;var Az=mo();Object.defineProperty($e,"KeywordCxt",{enumerable:!0,get:function(){return Az.KeywordCxt}});var cn=U();Object.defineProperty($e,"_",{enumerable:!0,get:function(){return cn._}});Object.defineProperty($e,"str",{enumerable:!0,get:function(){return cn.str}});Object.defineProperty($e,"stringify",{enumerable:!0,get:function(){return cn.stringify}});Object.defineProperty($e,"nil",{enumerable:!0,get:function(){return cn.nil}});Object.defineProperty($e,"Name",{enumerable:!0,get:function(){return cn.Name}});Object.defineProperty($e,"CodeGen",{enumerable:!0,get:function(){return cn.CodeGen}});var Mz=Bs(),Dg=ho(),Dz=Ju(),_o=Gs(),qz=U(),yo=lo(),Qs=uo(),bl=W(),jg=hg(),Lz=Ng(),qg=(t,e)=>new RegExp(t,e);qg.code="new RegExp";var Uz=["removeAdditional","useDefaults","coerceTypes"],Fz=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Vz={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Hz={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Cg=200;function Jz(t){var e,r,n,o,s,i,a,c,u,l,d,p,f,m,_,y,$,j,E,Z,S,qe,He,_n,$i;let yn=t.strict,wi=(e=t.code)===null||e===void 0?void 0:e.optimize,wd=wi===!0||wi===void 0?1:wi||0,kd=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:qg,xy=(o=t.uriResolver)!==null&&o!==void 0?o:Lz.default;return{strictSchema:(i=(s=t.strictSchema)!==null&&s!==void 0?s:yn)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:yn)!==null&&c!==void 0?c:!0,strictTypes:(l=(u=t.strictTypes)!==null&&u!==void 0?u:yn)!==null&&l!==void 0?l:"log",strictTuples:(p=(d=t.strictTuples)!==null&&d!==void 0?d:yn)!==null&&p!==void 0?p:"log",strictRequired:(m=(f=t.strictRequired)!==null&&f!==void 0?f:yn)!==null&&m!==void 0?m:!1,code:t.code?{...t.code,optimize:wd,regExp:kd}:{optimize:wd,regExp:kd},loopRequired:(_=t.loopRequired)!==null&&_!==void 0?_:Cg,loopEnum:(y=t.loopEnum)!==null&&y!==void 0?y:Cg,meta:($=t.meta)!==null&&$!==void 0?$:!0,messages:(j=t.messages)!==null&&j!==void 0?j:!0,inlineRefs:(E=t.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(Z=t.schemaId)!==null&&Z!==void 0?Z:"$id",addUsedSchema:(S=t.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(qe=t.validateSchema)!==null&&qe!==void 0?qe:!0,validateFormats:(He=t.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(_n=t.unicodeRegExp)!==null&&_n!==void 0?_n:!0,int32range:($i=t.int32range)!==null&&$i!==void 0?$i:!0,uriResolver:xy}}var vo=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Jz(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new qz.ValueScope({scope:{},prefixes:Fz,es5:r,lines:n}),this.logger=Yz(e.logger);let o=e.validateFormats;e.validateFormats=!1,this.RULES=(0,Dz.getRules)(),Ag.call(this,Vz,e,"NOT SUPPORTED"),Ag.call(this,Hz,e,"DEPRECATED","warn"),this._metaOpts=Wz.call(this),e.formats&&Kz.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&Gz.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),Bz.call(this),e.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,o=jg;n==="id"&&(o={...jg},o.id=o.$id,delete o.$id),r&&e&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,e,r);async function o(l,d){await s.call(this,l.$schema);let p=this._addSchema(l,d);return p.validate||i.call(this,p)}async function s(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function i(l){try{return this._compileSchemaEnv(l)}catch(d){if(!(d instanceof Dg.default))throw d;return a.call(this,d),await c.call(this,d.missingSchema),i.call(this,l)}}function a({missingSchema:l,missingRef:d}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function c(l){let d=await u.call(this,l);this.refs[l]||await s.call(this,d.$schema),this.refs[l]||this.addSchema(d,l,r)}async function u(l){let d=this._loading[l];if(d)return d;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(e,r,n,o=this.opts.validateSchema){if(Array.isArray(e)){for(let i of e)this.addSchema(i,void 0,n,o);return this}let s;if(typeof e=="object"){let{schemaId:i}=this.opts;if(s=e[i],s!==void 0&&typeof s!="string")throw new Error(`schema ${i} must be string`)}return r=(0,yo.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,o,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,e);if(!o&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return o}getSchema(e){let r;for(;typeof(r=Mg.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,o=new _o.SchemaEnv({schema:{},schemaId:n});if(r=_o.resolveSchema.call(this,o,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Mg.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,yo.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(eS.call(this,n,r),!r)return(0,bl.eachItem)(n,s=>vl.call(this,s)),this;rS.call(this,r);let o={...r,type:(0,Qs.getJSONTypes)(r.type),schemaType:(0,Qs.getJSONTypes)(r.schemaType)};return(0,bl.eachItem)(n,o.type.length===0?s=>vl.call(this,s,o):s=>o.type.forEach(i=>vl.call(this,s,o,i))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let o=n.rules.findIndex(s=>s.keyword===e);o>=0&&n.rules.splice(o,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,s)=>o+r+s)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let o of r){let s=o.split("/").slice(1),i=e;for(let a of s)i=i[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:u}=c.definition,l=i[a];u&&l&&(i[a]=Lg(l))}}return e}_removeAllSchemas(e,r){for(let n in e){let o=e[n];(!r||r.test(n))&&(typeof o=="string"?delete e[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[n]))}}_addSchema(e,r,n,o=this.opts.validateSchema,s=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof e=="object")i=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,yo.normalizeId)(i||n);let u=yo.getSchemaRefs.call(this,e,n);return c=new _o.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:u}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):_o.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{_o.compileSchema.call(this,e)}finally{this.opts=r}}};vo.ValidationError=Mz.default;vo.MissingRefError=Dg.default;$e.default=vo;function Ag(t,e,r,n="error"){for(let o in t){let s=o;s in e&&this.logger[n](`${r}: option ${o}. ${t[s]}`)}}function Mg(t){return t=(0,yo.normalizeId)(t),this.schemas[t]||this.refs[t]}function Bz(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function Kz(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function Gz(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function Wz(){let t={...this.opts};for(let e of Uz)delete t[e];return t}var Xz={log(){},warn(){},error(){}};function Yz(t){if(t===!1)return Xz;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Qz=/^[a-z_$][a-z0-9_$:-]*$/i;function eS(t,e){let{RULES:r}=this;if((0,bl.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Qz.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function vl(t,e,r){var n;let o=e?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,i=o?s.post:s.rules.find(({type:c})=>c===r);if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,Qs.getJSONTypes)(e.type),schemaType:(0,Qs.getJSONTypes)(e.schemaType)}};e.before?tS.call(this,i,a,e.before):i.rules.push(a),s.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function tS(t,e,r){let n=t.rules.findIndex(o=>o.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function rS(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Lg(e)),t.validateSchema=this.compile(e,!0))}var nS={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Lg(t){return{anyOf:[t,nS]}}});var Fg=w(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var oS={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xl.default=oS});var Bg=w(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.callRef=Tr.getValidate=void 0;var sS=ho(),Vg=et(),De=U(),un=Et(),Hg=Gs(),ei=W(),iS={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:o,schemaEnv:s,validateName:i,opts:a,self:c}=n,{root:u}=s;if((r==="#"||r==="#/")&&o===u.baseId)return d();let l=Hg.resolveRef.call(c,u,o,r);if(l===void 0)throw new sS.default(n.opts.uriResolver,o,r);if(l instanceof Hg.SchemaEnv)return p(l);return f(l);function d(){if(s===u)return ti(t,i,s,s.$async);let m=e.scopeValue("root",{ref:u});return ti(t,(0,De._)`${m}.validate`,u,u.$async)}function p(m){let _=Jg(t,m);ti(t,_,m,m.$async)}function f(m){let _=e.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,De.stringify)(m)}:{ref:m}),y=e.name("valid"),$=t.subschema({schema:m,dataTypes:[],schemaPath:De.nil,topSchemaRef:_,errSchemaPath:r},y);t.mergeEvaluated($),t.ok(y)}}};function Jg(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,De._)`${r.scopeValue("wrapper",{ref:e})}.validate`}Tr.getValidate=Jg;function ti(t,e,r,n){let{gen:o,it:s}=t,{allErrors:i,schemaEnv:a,opts:c}=s,u=c.passContext?un.default.this:De.nil;n?l():d();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,De._)`await ${(0,Vg.callValidateCode)(t,e,u)}`),f(e),i||o.assign(m,!0)},_=>{o.if((0,De._)`!(${_} instanceof ${s.ValidationError})`,()=>o.throw(_)),p(_),i||o.assign(m,!1)}),t.ok(m)}function d(){t.result((0,Vg.callValidateCode)(t,e,u),()=>f(e),()=>p(e))}function p(m){let _=(0,De._)`${m}.errors`;o.assign(un.default.vErrors,(0,De._)`${un.default.vErrors} === null ? ${_} : ${un.default.vErrors}.concat(${_})`),o.assign(un.default.errors,(0,De._)`${un.default.vErrors}.length`)}function f(m){var _;if(!s.opts.unevaluated)return;let y=(_=r?.validate)===null||_===void 0?void 0:_.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=ei.mergeEvaluated.props(o,y.props,s.props));else{let $=o.var("props",(0,De._)`${m}.evaluated.props`);s.props=ei.mergeEvaluated.props(o,$,s.props,De.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=ei.mergeEvaluated.items(o,y.items,s.items));else{let $=o.var("items",(0,De._)`${m}.evaluated.items`);s.items=ei.mergeEvaluated.items(o,$,s.items,De.Name)}}}Tr.callRef=ti;Tr.default=iS});var Kg=w($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var aS=Fg(),cS=Bg(),uS=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",aS.default,cS.default];$l.default=uS});var Gg=w(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var ri=U(),Gt=ri.operators,ni={maximum:{okStr:"<=",ok:Gt.LTE,fail:Gt.GT},minimum:{okStr:">=",ok:Gt.GTE,fail:Gt.LT},exclusiveMaximum:{okStr:"<",ok:Gt.LT,fail:Gt.GTE},exclusiveMinimum:{okStr:">",ok:Gt.GT,fail:Gt.LTE}},lS={message:({keyword:t,schemaCode:e})=>(0,ri.str)`must be ${ni[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,ri._)`{comparison: ${ni[t].okStr}, limit: ${e}}`},dS={keyword:Object.keys(ni),type:"number",schemaType:"number",$data:!0,error:lS,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,ri._)`${r} ${ni[e].fail} ${n} || isNaN(${r})`)}};wl.default=dS});var Wg=w(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var bo=U(),pS={message:({schemaCode:t})=>(0,bo.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,bo._)`{multipleOf: ${t}}`},fS={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:pS,code(t){let{gen:e,data:r,schemaCode:n,it:o}=t,s=o.opts.multipleOfPrecision,i=e.let("res"),a=s?(0,bo._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,bo._)`${i} !== parseInt(${i})`;t.fail$data((0,bo._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};kl.default=fS});var Yg=w(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});function Xg(t){let e=t.length,r=0,n=0,o;for(;n=55296&&o<=56319&&n{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Er=U(),mS=W(),hS=Yg(),gS={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,Er.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,Er._)`{limit: ${t}}`},_S={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:gS,code(t){let{keyword:e,data:r,schemaCode:n,it:o}=t,s=e==="maxLength"?Er.operators.GT:Er.operators.LT,i=o.opts.unicode===!1?(0,Er._)`${r}.length`:(0,Er._)`${(0,mS.useFunc)(t.gen,hS.default)}(${r})`;t.fail$data((0,Er._)`${i} ${s} ${n}`)}};Sl.default=_S});var e_=w(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var yS=et(),vS=W(),ln=U(),bS={message:({schemaCode:t})=>(0,ln.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,ln._)`{pattern: ${t}}`},xS={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:bS,code(t){let{gen:e,data:r,$data:n,schema:o,schemaCode:s,it:i}=t,a=i.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=i.opts.code,u=c.code==="new RegExp"?(0,ln._)`new RegExp`:(0,vS.useFunc)(e,c),l=e.let("valid");e.try(()=>e.assign(l,(0,ln._)`${u}(${s}, ${a}).test(${r})`),()=>e.assign(l,!1)),t.fail$data((0,ln._)`!${l}`)}else{let c=(0,yS.usePattern)(t,o);t.fail$data((0,ln._)`!${c}.test(${r})`)}}};Pl.default=xS});var t_=w(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var xo=U(),$S={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,xo.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,xo._)`{limit: ${t}}`},wS={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:$S,code(t){let{keyword:e,data:r,schemaCode:n}=t,o=e==="maxProperties"?xo.operators.GT:xo.operators.LT;t.fail$data((0,xo._)`Object.keys(${r}).length ${o} ${n}`)}};Tl.default=wS});var r_=w(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var $o=et(),wo=U(),kS=W(),zS={message:({params:{missingProperty:t}})=>(0,wo.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,wo._)`{missingProperty: ${t}}`},SS={keyword:"required",type:"object",schemaType:"array",$data:!0,error:zS,code(t){let{gen:e,schema:r,schemaCode:n,data:o,$data:s,it:i}=t,{opts:a}=i;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(i.allErrors?u():l(),a.strictRequired){let f=t.parentSchema.properties,{definedProperties:m}=t.it;for(let _ of r)if(f?.[_]===void 0&&!m.has(_)){let y=i.schemaEnv.baseId+i.errSchemaPath,$=`required property "${_}" is not defined at "${y}" (strictRequired)`;(0,kS.checkStrictMode)(i,$,i.opts.strictRequired)}}function u(){if(c||s)t.block$data(wo.nil,d);else for(let f of r)(0,$o.checkReportMissingProp)(t,f)}function l(){let f=e.let("missing");if(c||s){let m=e.let("valid",!0);t.block$data(m,()=>p(f,m)),t.ok(m)}else e.if((0,$o.checkMissingProp)(t,r,f)),(0,$o.reportMissingProp)(t,f),e.else()}function d(){e.forOf("prop",n,f=>{t.setParams({missingProperty:f}),e.if((0,$o.noPropertyInData)(e,o,f,a.ownProperties),()=>t.error())})}function p(f,m){t.setParams({missingProperty:f}),e.forOf(f,n,()=>{e.assign(m,(0,$o.propertyInData)(e,o,f,a.ownProperties)),e.if((0,wo.not)(m),()=>{t.error(),e.break()})},wo.nil)}}};El.default=SS});var n_=w(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var ko=U(),PS={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,ko.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,ko._)`{limit: ${t}}`},TS={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:PS,code(t){let{keyword:e,data:r,schemaCode:n}=t,o=e==="maxItems"?ko.operators.GT:ko.operators.LT;t.fail$data((0,ko._)`${r}.length ${o} ${n}`)}};Rl.default=TS});var oi=w(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var o_=el();o_.code='require("ajv/dist/runtime/equal").default';Il.default=o_});var s_=w(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Ol=uo(),we=U(),ES=W(),RS=oi(),IS={message:({params:{i:t,j:e}})=>(0,we.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,we._)`{i: ${t}, j: ${e}}`},OS={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:IS,code(t){let{gen:e,data:r,$data:n,schema:o,parentSchema:s,schemaCode:i,it:a}=t;if(!n&&!o)return;let c=e.let("valid"),u=s.items?(0,Ol.getSchemaTypes)(s.items):[];t.block$data(c,l,(0,we._)`${i} === false`),t.ok(c);function l(){let m=e.let("i",(0,we._)`${r}.length`),_=e.let("j");t.setParams({i:m,j:_}),e.assign(c,!0),e.if((0,we._)`${m} > 1`,()=>(d()?p:f)(m,_))}function d(){return u.length>0&&!u.some(m=>m==="object"||m==="array")}function p(m,_){let y=e.name("item"),$=(0,Ol.checkDataTypes)(u,y,a.opts.strictNumbers,Ol.DataType.Wrong),j=e.const("indices",(0,we._)`{}`);e.for((0,we._)`;${m}--;`,()=>{e.let(y,(0,we._)`${r}[${m}]`),e.if($,(0,we._)`continue`),u.length>1&&e.if((0,we._)`typeof ${y} == "string"`,(0,we._)`${y} += "_"`),e.if((0,we._)`typeof ${j}[${y}] == "number"`,()=>{e.assign(_,(0,we._)`${j}[${y}]`),t.error(),e.assign(c,!1).break()}).code((0,we._)`${j}[${y}] = ${m}`)})}function f(m,_){let y=(0,ES.useFunc)(e,RS.default),$=e.name("outer");e.label($).for((0,we._)`;${m}--;`,()=>e.for((0,we._)`${_} = ${m}; ${_}--;`,()=>e.if((0,we._)`${y}(${r}[${m}], ${r}[${_}])`,()=>{t.error(),e.assign(c,!1).break($)})))}}};Zl.default=OS});var i_=w(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var Nl=U(),ZS=W(),NS=oi(),jS={message:"must be equal to constant",params:({schemaCode:t})=>(0,Nl._)`{allowedValue: ${t}}`},CS={keyword:"const",$data:!0,error:jS,code(t){let{gen:e,data:r,$data:n,schemaCode:o,schema:s}=t;n||s&&typeof s=="object"?t.fail$data((0,Nl._)`!${(0,ZS.useFunc)(e,NS.default)}(${r}, ${o})`):t.fail((0,Nl._)`${s} !== ${r}`)}};jl.default=CS});var a_=w(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var zo=U(),AS=W(),MS=oi(),DS={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,zo._)`{allowedValues: ${t}}`},qS={keyword:"enum",schemaType:"array",$data:!0,error:DS,code(t){let{gen:e,data:r,$data:n,schema:o,schemaCode:s,it:i}=t;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=i.opts.loopEnum,c,u=()=>c??(c=(0,AS.useFunc)(e,MS.default)),l;if(a||n)l=e.let("valid"),t.block$data(l,d);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let f=e.const("vSchema",s);l=(0,zo.or)(...o.map((m,_)=>p(f,_)))}t.pass(l);function d(){e.assign(l,!1),e.forOf("v",s,f=>e.if((0,zo._)`${u()}(${r}, ${f})`,()=>e.assign(l,!0).break()))}function p(f,m){let _=o[m];return typeof _=="object"&&_!==null?(0,zo._)`${u()}(${r}, ${f}[${m}])`:(0,zo._)`${r} === ${_}`}}};Cl.default=qS});var c_=w(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var LS=Gg(),US=Wg(),FS=Qg(),VS=e_(),HS=t_(),JS=r_(),BS=n_(),KS=s_(),GS=i_(),WS=a_(),XS=[LS.default,US.default,FS.default,VS.default,HS.default,JS.default,BS.default,KS.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},GS.default,WS.default];Al.default=XS});var Dl=w(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.validateAdditionalItems=void 0;var Rr=U(),Ml=W(),YS={message:({params:{len:t}})=>(0,Rr.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Rr._)`{limit: ${t}}`},QS={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:YS,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,Ml.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}u_(t,n)}};function u_(t,e){let{gen:r,schema:n,data:o,keyword:s,it:i}=t;i.items=!0;let a=r.const("len",(0,Rr._)`${o}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Rr._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,Ml.alwaysValidSchema)(i,n)){let u=r.var("valid",(0,Rr._)`${a} <= ${e.length}`);r.if((0,Rr.not)(u),()=>c(u)),t.ok(u)}function c(u){r.forRange("i",e.length,a,l=>{t.subschema({keyword:s,dataProp:l,dataPropType:Ml.Type.Num},u),i.allErrors||r.if((0,Rr.not)(u),()=>r.break())})}}So.validateAdditionalItems=u_;So.default=QS});var ql=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateTuple=void 0;var l_=U(),si=W(),eP=et(),tP={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return d_(t,"additionalItems",e);r.items=!0,!(0,si.alwaysValidSchema)(r,e)&&t.ok((0,eP.validateArray)(t))}};function d_(t,e,r=t.schema){let{gen:n,parentSchema:o,data:s,keyword:i,it:a}=t;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=si.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),u=n.const("len",(0,l_._)`${s}.length`);r.forEach((d,p)=>{(0,si.alwaysValidSchema)(a,d)||(n.if((0,l_._)`${u} > ${p}`,()=>t.subschema({keyword:i,schemaProp:p,dataProp:p},c)),t.ok(c))});function l(d){let{opts:p,errSchemaPath:f}=a,m=r.length,_=m===d.minItems&&(m===d.maxItems||d[e]===!1);if(p.strictTuples&&!_){let y=`"${i}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${f}"`;(0,si.checkStrictMode)(a,y,p.strictTuples)}}}Po.validateTuple=d_;Po.default=tP});var p_=w(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var rP=ql(),nP={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,rP.validateTuple)(t,"items")};Ll.default=nP});var m_=w(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var f_=U(),oP=W(),sP=et(),iP=Dl(),aP={message:({params:{len:t}})=>(0,f_.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,f_._)`{limit: ${t}}`},cP={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:aP,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:o}=r;n.items=!0,!(0,oP.alwaysValidSchema)(n,e)&&(o?(0,iP.validateAdditionalItems)(t,o):t.ok((0,sP.validateArray)(t)))}};Ul.default=cP});var h_=w(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var rt=U(),ii=W(),uP={message:({params:{min:t,max:e}})=>e===void 0?(0,rt.str)`must contain at least ${t} valid item(s)`:(0,rt.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,rt._)`{minContains: ${t}}`:(0,rt._)`{minContains: ${t}, maxContains: ${e}}`},lP={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:uP,code(t){let{gen:e,schema:r,parentSchema:n,data:o,it:s}=t,i,a,{minContains:c,maxContains:u}=n;s.opts.next?(i=c===void 0?1:c,a=u):i=1;let l=e.const("len",(0,rt._)`${o}.length`);if(t.setParams({min:i,max:a}),a===void 0&&i===0){(0,ii.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,ii.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,ii.alwaysValidSchema)(s,r)){let _=(0,rt._)`${l} >= ${i}`;a!==void 0&&(_=(0,rt._)`${_} && ${l} <= ${a}`),t.pass(_);return}s.items=!0;let d=e.name("valid");a===void 0&&i===1?f(d,()=>e.if(d,()=>e.break())):i===0?(e.let(d,!0),a!==void 0&&e.if((0,rt._)`${o}.length > 0`,p)):(e.let(d,!1),p()),t.result(d,()=>t.reset());function p(){let _=e.name("_valid"),y=e.let("count",0);f(_,()=>e.if(_,()=>m(y)))}function f(_,y){e.forRange("i",0,l,$=>{t.subschema({keyword:"contains",dataProp:$,dataPropType:ii.Type.Num,compositeRule:!0},_),y()})}function m(_){e.code((0,rt._)`${_}++`),a===void 0?e.if((0,rt._)`${_} >= ${i}`,()=>e.assign(d,!0).break()):(e.if((0,rt._)`${_} > ${a}`,()=>e.assign(d,!1).break()),i===1?e.assign(d,!0):e.if((0,rt._)`${_} >= ${i}`,()=>e.assign(d,!0)))}}};Fl.default=lP});var y_=w(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.validateSchemaDeps=_t.validatePropertyDeps=_t.error=void 0;var Vl=U(),dP=W(),To=et();_t.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,Vl.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,Vl._)`{property: ${t}, - missingProperty: ${n}, +"use strict";var DI=Object.create;var xd=Object.defineProperty;var GI=Object.getOwnPropertyDescriptor;var $I=Object.getOwnPropertyNames;var NI=Object.getPrototypeOf,UI=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Td=(t,e)=>{for(var n in e)xd(t,n,{get:e[n],enumerable:!0})},LI=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of $I(e))!UI.call(t,a)&&a!==n&&xd(t,a,{get:()=>e[a],enumerable:!(i=GI(e,a))||i.enumerable});return t};var Nl=(t,e,n)=>(n=t!=null?DI(NI(t)):{},LI(e||!t||!t.__esModule?xd(n,"default",{value:t,enumerable:!0}):n,t));var ro=v(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var to=class{};Pe._CodeOrName=to;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Aa=class extends to{constructor(e){if(super(),!Pe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=Aa;var ci=class extends to{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((n,i)=>`${n}${i}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((n,i)=>(i instanceof Aa&&(n[i.str]=(n[i.str]||0)+1),n),{})}};Pe._Code=ci;Pe.nil=new ci("");function vO(t,...e){let n=[t[0]],i=0;for(;i{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.ValueScope=Un.ValueScopeName=Un.Scope=Un.varKinds=Un.UsedValueState=void 0;var Nn=ro(),Mm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Vu;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Vu||(Un.UsedValueState=Vu={}));Un.varKinds={const:new Nn.Name("const"),let:new Nn.Name("let"),var:new Nn.Name("var")};var Ju=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof Nn.Name?e:this.name(e)}name(e){return new Nn.Name(this._newName(e))}_newName(e){let n=this._names[e]||this._nameGroup(e);return`${e}${n.index++}`}_nameGroup(e){var n,i;if(!((i=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||i===void 0)&&i.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Un.Scope=Ju;var Zu=class extends Nn.Name{constructor(e,n){super(n),this.prefix=e}setValue(e,{property:n,itemIndex:i}){this.value=e,this.scopePath=(0,Nn._)`.${new Nn.Name(n)}[${i}]`}};Un.ValueScopeName=Zu;var sN=(0,Nn._)`\n`,Em=class extends Ju{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?sN:Nn.nil}}get(){return this._scope}name(e){return new Zu(e,this._newName(e))}value(e,n){var i;if(n.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:r}=a,s=(i=n.key)!==null&&i!==void 0?i:n.ref,o=this._values[r];if(o){let c=o.get(s);if(c)return c}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),u=l.length;return l[u]=n.ref,a.setValue(n,{property:r,itemIndex:u}),a}getValue(e,n){let i=this._values[e];if(i)return i.get(n)}scopeRefs(e,n=this._values){return this._reduceValues(n,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,Nn._)`${e}${i.scopePath}`})}scopeCode(e=this._values,n,i){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},n,i)}_reduceValues(e,n,i={},a){let r=Nn.nil;for(let s in e){let o=e[s];if(!o)continue;let l=i[s]=i[s]||new Map;o.forEach(u=>{if(l.has(u))return;l.set(u,Vu.Started);let c=n(u);if(c){let p=this.opts.es5?Un.varKinds.var:Un.varKinds.const;r=(0,Nn._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,Nn._)`${r}${c}${this.opts._n}`;else throw new Mm(u);l.set(u,Vu.Completed)})}return r}};Un.ValueScope=Em});var re=v(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.or=oe.and=oe.not=oe.CodeGen=oe.operators=oe.varKinds=oe.ValueScopeName=oe.ValueScope=oe.Scope=oe.Name=oe.regexpCode=oe.stringify=oe.getProperty=oe.nil=oe.strConcat=oe.str=oe._=void 0;var fe=ro(),bi=qm(),Mt=ro();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return Mt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return Mt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return Mt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return Mt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return Mt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return Mt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return Mt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return Mt.Name}});var Xu=qm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Xu.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Xu.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Xu.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Xu.varKinds}});oe.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var rt=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},km=class extends rt{constructor(e,n,i){super(),this.varKind=e,this.name=n,this.rhs=i}render({es5:e,_n:n}){let i=e?bi.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${a};`+n}optimizeNames(e,n){if(e[this.name.str])return this.rhs&&(this.rhs=Or(this.rhs,e,n)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Ku=class extends rt{constructor(e,n,i){super(),this.lhs=e,this.rhs=n,this.sideEffects=i}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof fe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Or(this.rhs,e,n),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return Yu(e,this.rhs)}},_m=class extends Ku{constructor(e,n,i,a){super(e,i,a),this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Hm=class extends rt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Rm=class extends rt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Im=class extends rt{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},zm=class extends rt{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,n){return this.code=Or(this.code,e,n),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},so=class extends rt{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((n,i)=>n+i.render(e),"")}optimizeNodes(){let{nodes:e}=this,n=e.length;for(;n--;){let i=e[n].optimizeNodes();Array.isArray(i)?e.splice(n,1,...i):i?e[n]=i:e.splice(n,1)}return e.length>0?this:void 0}optimizeNames(e,n){let{nodes:i}=this,a=i.length;for(;a--;){let r=i[a];r.optimizeNames(e,n)||(oN(e,r.names),i.splice(a,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>Pa(e,n.names),{})}},st=class extends so{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Dm=class extends so{},Sr=class extends st{};Sr.kind="else";var ba=class t extends st{constructor(e,n){super(n),this.condition=e}render(e){let n=`if(${this.condition})`+super.render(e);return this.else&&(n+="else "+this.else.render(e)),n}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let n=this.else;if(n){let i=n.optimizeNodes();n=this.else=Array.isArray(i)?new Sr(i):i}if(n)return e===!1?n instanceof t?n:n.nodes:this.nodes.length?this:new t(AO(e),n instanceof t?[n]:n.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,n){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(e,n),!!(super.optimizeNames(e,n)||this.else))return this.condition=Or(this.condition,e,n),this}get names(){let e=super.names;return Yu(e,this.condition),this.else&&Pa(e,this.else.names),e}};ba.kind="if";var ya=class extends st{};ya.kind="for";var Gm=class extends ya{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iteration=Or(this.iteration,e,n),this}get names(){return Pa(super.names,this.iteration.names)}},$m=class extends ya{constructor(e,n,i,a){super(),this.varKind=e,this.name=n,this.from=i,this.to=a}render(e){let n=e.es5?bi.varKinds.var:this.varKind,{name:i,from:a,to:r}=this;return`for(${n} ${i}=${a}; ${i}<${r}; ${i}++)`+super.render(e)}get names(){let e=Yu(super.names,this.from);return Yu(e,this.to)}},Qu=class extends ya{constructor(e,n,i,a){super(),this.loop=e,this.varKind=n,this.name=i,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iterable=Or(this.iterable,e,n),this}get names(){return Pa(super.names,this.iterable.names)}},oo=class extends st{constructor(e,n,i){super(),this.name=e,this.args=n,this.async=i}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};oo.kind="func";var lo=class extends so{render(e){return"return "+super.render(e)}};lo.kind="return";var Nm=class extends st{render(e){let n="try"+super.render(e);return this.catch&&(n+=this.catch.render(e)),this.finally&&(n+=this.finally.render(e)),n}optimizeNodes(){var e,n;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(n=this.finally)===null||n===void 0||n.optimizeNodes(),this}optimizeNames(e,n){var i,a;return super.optimizeNames(e,n),(i=this.catch)===null||i===void 0||i.optimizeNames(e,n),(a=this.finally)===null||a===void 0||a.optimizeNames(e,n),this}get names(){let e=super.names;return this.catch&&Pa(e,this.catch.names),this.finally&&Pa(e,this.finally.names),e}},uo=class extends st{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};uo.kind="catch";var co=class extends st{render(e){return"finally"+super.render(e)}};co.kind="finally";var Um=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?` +`:""},this._extScope=e,this._scope=new bi.Scope({parent:e}),this._nodes=[new Dm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let i=this._extScope.value(e,n);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,i,a){let r=this._scope.toName(n);return i!==void 0&&a&&(this._constants[r.str]=i),this._leafNode(new km(e,r,i)),r}const(e,n,i){return this._def(bi.varKinds.const,e,n,i)}let(e,n,i){return this._def(bi.varKinds.let,e,n,i)}var(e,n,i){return this._def(bi.varKinds.var,e,n,i)}assign(e,n,i){return this._leafNode(new Ku(e,n,i))}add(e,n){return this._leafNode(new _m(e,oe.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new zm(e)),this}object(...e){let n=["{"];for(let[i,a]of e)n.length>1&&n.push(","),n.push(i),(i!==a||this.opts.es5)&&(n.push(":"),(0,fe.addCodeArg)(n,a));return n.push("}"),new fe._Code(n)}if(e,n,i){if(this._blockNode(new ba(e)),n&&i)this.code(n).else().code(i).endIf();else if(n)this.code(n).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new ba(e))}else(){return this._elseNode(new Sr)}endIf(){return this._endBlockNode(ba,Sr)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new Gm(e),n)}forRange(e,n,i,a,r=this.opts.es5?bi.varKinds.var:bi.varKinds.let){let s=this._scope.toName(e);return this._for(new $m(r,s,n,i),()=>a(s))}forOf(e,n,i,a=bi.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=n instanceof fe.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,fe._)`${s}.length`,o=>{this.var(r,(0,fe._)`${s}[${o}]`),i(r)})}return this._for(new Qu("of",a,r,n),()=>i(r))}forIn(e,n,i,a=this.opts.es5?bi.varKinds.var:bi.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,fe._)`Object.keys(${n})`,i);let r=this._scope.toName(e);return this._for(new Qu("in",a,r,n),()=>i(r))}endFor(){return this._endBlockNode(ya)}label(e){return this._leafNode(new Hm(e))}break(e){return this._leafNode(new Rm(e))}return(e){let n=new lo;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(lo)}try(e,n,i){if(!n&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new Nm;if(this._blockNode(a),this.code(e),n){let r=this.name("e");this._currNode=a.catch=new uo(r),n(r)}return i&&(this._currNode=a.finally=new co,this.code(i)),this._endBlockNode(uo,co)}throw(e){return this._leafNode(new Im(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-n;if(i<0||e!==void 0&&i!==e)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=fe.nil,i,a){return this._blockNode(new oo(e,n,i)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(oo)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let i=this._currNode;if(i instanceof e||n&&i instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof ba))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};oe.CodeGen=Um;function Pa(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function Yu(t,e){return e instanceof fe._CodeOrName?Pa(t,e.names):t}function Or(t,e,n){if(t instanceof fe.Name)return i(t);if(!a(t))return t;return new fe._Code(t._items.reduce((r,s)=>(s instanceof fe.Name&&(s=i(s)),s instanceof fe._Code?r.push(...s._items):r.push(s),r),[]));function i(r){let s=n[r.str];return s===void 0||e[r.str]!==1?r:(delete e[r.str],s)}function a(r){return r instanceof fe._Code&&r._items.some(s=>s instanceof fe.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function oN(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function AO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Lm(t)}`}oe.not=AO;var lN=bO(oe.operators.AND);function uN(...t){return t.reduce(lN)}oe.and=uN;var cN=bO(oe.operators.OR);function pN(...t){return t.reduce(cN)}oe.or=pN;function bO(t){return(e,n)=>e===fe.nil?n:n===fe.nil?e:(0,fe._)`${Lm(e)} ${t} ${Lm(n)}`}function Lm(t){return t instanceof fe.Name?t:(0,fe._)`(${t})`}});var we=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var _e=re(),dN=ro();function hN(t){let e={};for(let n of t)e[n]=!0;return e}le.toHash=hN;function gN(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(jO(t,e),!SO(e,t.self.RULES.all))}le.alwaysValidSchema=gN;function jO(t,e=t.schema){let{opts:n,self:i}=t;if(!n.strictSchema||typeof e=="boolean")return;let a=i.RULES.keywords;for(let r in e)a[r]||TO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=jO;function SO(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(e[n])return!0;return!1}le.schemaHasRules=SO;function mN(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}le.schemaHasRulesButRef=mN;function fN({topSchemaRef:t,schemaPath:e},n,i,a){if(!a){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,_e._)`${n}`}return(0,_e._)`${t}${e}${(0,_e.getProperty)(i)}`}le.schemaRefOrVal=fN;function wN(t){return OO(decodeURIComponent(t))}le.unescapeFragment=wN;function vN(t){return encodeURIComponent(Bm(t))}le.escapeFragment=vN;function Bm(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=Bm;function OO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=OO;function CN(t,e){if(Array.isArray(t))for(let n of t)e(n);else e(t)}le.eachItem=CN;function yO({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:i}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof _e.Name?(r instanceof _e.Name?t(a,r,s):e(a,r,s),s):r instanceof _e.Name?(e(a,s,r),r):n(r,s);return o===_e.Name&&!(l instanceof _e.Name)?i(a,l):l}}le.mergeEvaluated={props:yO({mergeNames:(t,e,n)=>t.if((0,_e._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,_e._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,_e._)`${n} || {}`).code((0,_e._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,_e._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,_e._)`${n} || {}`),Fm(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:xO}),items:yO({mergeNames:(t,e,n)=>t.if((0,_e._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,_e._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,_e._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,_e._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function xO(t,e){if(e===!0)return t.var("props",!0);let n=t.var("props",(0,_e._)`{}`);return e!==void 0&&Fm(t,n,e),n}le.evaluatedPropsToName=xO;function Fm(t,e,n){Object.keys(n).forEach(i=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(i)}`,!0))}le.setEvaluated=Fm;var PO={};function AN(t,e){return t.scopeValue("func",{ref:e,code:PO[e.code]||(PO[e.code]=new dN._Code(e.code))})}le.useFunc=AN;var Wm;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Wm||(le.Type=Wm={}));function bN(t,e,n){if(t instanceof _e.Name){let i=e===Wm.Num;return n?i?(0,_e._)`"[" + ${t} + "]"`:(0,_e._)`"['" + ${t} + "']"`:i?(0,_e._)`"/" + ${t}`:(0,_e._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,_e.getProperty)(t).toString():"/"+Bm(t)}le.getErrorPath=bN;function TO(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}le.checkStrictMode=TO});var ot=v(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var Mn=re(),yN={data:new Mn.Name("data"),valCxt:new Mn.Name("valCxt"),instancePath:new Mn.Name("instancePath"),parentData:new Mn.Name("parentData"),parentDataProperty:new Mn.Name("parentDataProperty"),rootData:new Mn.Name("rootData"),dynamicAnchors:new Mn.Name("dynamicAnchors"),vErrors:new Mn.Name("vErrors"),errors:new Mn.Name("errors"),this:new Mn.Name("this"),self:new Mn.Name("self"),scope:new Mn.Name("scope"),json:new Mn.Name("json"),jsonPos:new Mn.Name("jsonPos"),jsonLen:new Mn.Name("jsonLen"),jsonPart:new Mn.Name("jsonPart")};Vm.default=yN});var po=v(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.extendErrors=En.resetErrorsCount=En.reportExtraError=En.reportError=En.keyword$DataError=En.keywordError=void 0;var ve=re(),ec=we(),Rn=ot();En.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};En.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ve.str)`"${t}" keyword must be ${e} ($data)`:(0,ve.str)`"${t}" keyword is invalid ($data)`};function PN(t,e=En.keywordError,n,i){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=qO(t,e,n);i??(s||o)?MO(r,l):EO(a,(0,ve._)`[${l}]`)}En.reportError=PN;function jN(t,e=En.keywordError,n){let{it:i}=t,{gen:a,compositeRule:r,allErrors:s}=i,o=qO(t,e,n);MO(a,o),r||s||EO(i,Rn.default.vErrors)}En.reportExtraError=jN;function SN(t,e){t.assign(Rn.default.errors,e),t.if((0,ve._)`${Rn.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Rn.default.vErrors}.length`,e),()=>t.assign(Rn.default.vErrors,null)))}En.resetErrorsCount=SN;function ON({gen:t,keyword:e,schemaValue:n,data:i,errsCount:a,it:r}){if(a===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",a,Rn.default.errors,o=>{t.const(s,(0,ve._)`${Rn.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Rn.default.instancePath,r.errorPath))),t.assign((0,ve._)`${s}.schemaPath`,(0,ve.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,ve._)`${s}.schema`,n),t.assign((0,ve._)`${s}.data`,i))})}En.extendErrors=ON;function MO(t,e){let n=t.const("err",e);t.if((0,ve._)`${Rn.default.vErrors} === null`,()=>t.assign(Rn.default.vErrors,(0,ve._)`[${n}]`),(0,ve._)`${Rn.default.vErrors}.push(${n})`),t.code((0,ve._)`${Rn.default.errors}++`)}function EO(t,e){let{gen:n,validateName:i,schemaEnv:a}=t;a.$async?n.throw((0,ve._)`new ${t.ValidationError}(${e})`):(n.assign((0,ve._)`${i}.errors`,e),n.return(!1))}var ja={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function qO(t,e,n){let{createErrors:i}=t.it;return i===!1?(0,ve._)`{}`:xN(t,e,n)}function xN(t,e,n={}){let{gen:i,it:a}=t,r=[TN(a,n),MN(t,n)];return EN(t,e,r),i.object(...r)}function TN({errorPath:t},{instancePath:e}){let n=e?(0,ve.str)`${t}${(0,ec.getErrorPath)(e,ec.Type.Str)}`:t;return[Rn.default.instancePath,(0,ve.strConcat)(Rn.default.instancePath,n)]}function MN({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:i}){let a=i?e:(0,ve.str)`${e}/${t}`;return n&&(a=(0,ve.str)`${a}${(0,ec.getErrorPath)(n,ec.Type.Str)}`),[ja.schemaPath,a]}function EN(t,{params:e,message:n},i){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=o;i.push([ja.keyword,a],[ja.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&i.push([ja.message,typeof n=="function"?n(t):n]),l.verbose&&i.push([ja.schema,s],[ja.parentSchema,(0,ve._)`${c}${p}`],[Rn.default.data,r]),u&&i.push([ja.propertyName,u])}});var _O=v(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.boolOrEmptySchema=xr.topBoolOrEmptySchema=void 0;var qN=po(),kN=re(),_N=ot(),HN={message:"boolean schema is false"};function RN(t){let{gen:e,schema:n,validateName:i}=t;n===!1?kO(t,!1):typeof n=="object"&&n.$async===!0?e.return(_N.default.data):(e.assign((0,kN._)`${i}.errors`,null),e.return(!0))}xr.topBoolOrEmptySchema=RN;function IN(t,e){let{gen:n,schema:i}=t;i===!1?(n.var(e,!1),kO(t)):n.var(e,!0)}xr.boolOrEmptySchema=IN;function kO(t,e){let{gen:n,data:i}=t,a={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,qN.reportError)(a,HN,void 0,e)}});var Jm=v(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.getRules=Tr.isJSONType=void 0;var zN=["string","number","integer","boolean","null","object","array"],DN=new Set(zN);function GN(t){return typeof t=="string"&&DN.has(t)}Tr.isJSONType=GN;function $N(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Tr.getRules=$N});var Zm=v(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.shouldUseRule=Et.shouldUseGroup=Et.schemaHasRulesForType=void 0;function NN({schema:t,self:e},n){let i=e.RULES.types[n];return i&&i!==!0&&HO(t,i)}Et.schemaHasRulesForType=NN;function HO(t,e){return e.rules.some(n=>RO(t,n))}Et.shouldUseGroup=HO;function RO(t,e){var n;return t[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(i=>t[i]!==void 0))}Et.shouldUseRule=RO});var ho=v(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.reportTypeError=qn.checkDataTypes=qn.checkDataType=qn.coerceAndCheckDataType=qn.getJSONTypes=qn.getSchemaTypes=qn.DataType=void 0;var UN=Jm(),LN=Zm(),WN=po(),te=re(),IO=we(),Mr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Mr||(qn.DataType=Mr={}));function BN(t){let e=zO(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}qn.getSchemaTypes=BN;function zO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(UN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}qn.getJSONTypes=zO;function FN(t,e){let{gen:n,data:i,opts:a}=t,r=VN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,LN.schemaHasRulesForType)(t,e[0]));if(s){let o=Qm(e,i,a.strictNumbers,Mr.Wrong);n.if(o,()=>{r.length?JN(t,e,r):Ym(t)})}return s}qn.coerceAndCheckDataType=FN;var DO=new Set(["string","number","integer","boolean","null"]);function VN(t,e){return e?t.filter(n=>DO.has(n)||e==="array"&&n==="array"):[]}function JN(t,e,n){let{gen:i,data:a,opts:r}=t,s=i.let("dataType",(0,te._)`typeof ${a}`),o=i.let("coerced",(0,te._)`undefined`);r.coerceTypes==="array"&&i.if((0,te._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>i.assign(a,(0,te._)`${a}[0]`).assign(s,(0,te._)`typeof ${a}`).if(Qm(e,a,r.strictNumbers),()=>i.assign(o,a))),i.if((0,te._)`${o} !== undefined`);for(let u of n)(DO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);i.else(),Ym(t),i.endIf(),i.if((0,te._)`${o} !== undefined`,()=>{i.assign(a,o),ZN(t,o)});function l(u){switch(u){case"string":i.elseIf((0,te._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":i.elseIf((0,te._)`${s} == "boolean" || ${a} === null + || (${s} == "string" && ${a} && ${a} == +${a})`).assign(o,(0,te._)`+${a}`);return;case"integer":i.elseIf((0,te._)`${s} === "boolean" || ${a} === null + || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(o,(0,te._)`+${a}`);return;case"boolean":i.elseIf((0,te._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(o,!1).elseIf((0,te._)`${a} === "true" || ${a} === 1`).assign(o,!0);return;case"null":i.elseIf((0,te._)`${a} === "" || ${a} === 0 || ${a} === false`),i.assign(o,null);return;case"array":i.elseIf((0,te._)`${s} === "string" || ${s} === "number" + || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function ZN({gen:t,parentData:e,parentDataProperty:n},i){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${n}]`,i))}function Km(t,e,n,i=Mr.Correct){let a=i===Mr.Correct?te.operators.EQ:te.operators.NEQ,r;switch(t){case"null":return(0,te._)`${e} ${a} null`;case"array":r=(0,te._)`Array.isArray(${e})`;break;case"object":r=(0,te._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,te._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,te._)`typeof ${e} ${a} ${t}`}return i===Mr.Correct?r:(0,te.not)(r);function s(o=te.nil){return(0,te.and)((0,te._)`typeof ${e} == "number"`,o,n?(0,te._)`isFinite(${e})`:te.nil)}}qn.checkDataType=Km;function Qm(t,e,n,i){if(t.length===1)return Km(t[0],e,n,i);let a,r=(0,IO.toHash)(t);if(r.array&&r.object){let s=(0,te._)`typeof ${e} != "object"`;a=r.null?s:(0,te._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=te.nil;r.number&&delete r.integer;for(let s in r)a=(0,te.and)(a,Km(s,e,n,i));return a}qn.checkDataTypes=Qm;var KN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Ym(t){let e=QN(t);(0,WN.reportError)(e,KN)}qn.reportTypeError=Ym;function QN(t){let{gen:e,data:n,schema:i}=t,a=(0,IO.schemaRefOrVal)(t,i,"type");return{gen:e,keyword:"type",data:n,schema:i.type,schemaCode:a,schemaValue:a,parentSchema:i,params:{},it:t}}});var $O=v(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.assignDefaults=void 0;var Er=re(),YN=we();function XN(t,e){let{properties:n,items:i}=t.schema;if(e==="object"&&n)for(let a in n)GO(t,a,n[a].default);else e==="array"&&Array.isArray(i)&&i.forEach((a,r)=>GO(t,r,a.default))}nc.assignDefaults=XN;function GO(t,e,n){let{gen:i,compositeRule:a,data:r,opts:s}=t;if(n===void 0)return;let o=(0,Er._)`${r}${(0,Er.getProperty)(e)}`;if(a){(0,YN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,Er._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,Er._)`${l} || ${o} === null || ${o} === ""`),i.if(l,(0,Er._)`${o} = ${(0,Er.stringify)(n)}`)}});var pi=v(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var Ne=re(),Xm=we(),qt=ot(),eU=we();function nU(t,e){let{gen:n,data:i,it:a}=t;n.if(nf(n,i,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=nU;function iU({gen:t,data:e,it:{opts:n}},i,a){return(0,Ne.or)(...i.map(r=>(0,Ne.and)(nf(t,e,r,n.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=iU;function tU(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=tU;function NO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=NO;function ef(t,e,n){return(0,Ne._)`${NO(t)}.call(${e}, ${n})`}Ee.isOwnProperty=ef;function aU(t,e,n,i){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(n)} !== undefined`;return i?(0,Ne._)`${a} && ${ef(t,e,n)}`:a}Ee.propertyInData=aU;function nf(t,e,n,i){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(n)} === undefined`;return i?(0,Ne.or)(a,(0,Ne.not)(ef(t,e,n))):a}Ee.noPropertyInData=nf;function UO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=UO;function rU(t,e){return UO(e).filter(n=>!(0,Xm.alwaysValidSchema)(t,e[n]))}Ee.schemaProperties=rU;function sU({schemaCode:t,data:e,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:r},it:s},o,l,u){let c=u?(0,Ne._)`${t}, ${e}, ${i}${a}`:e,p=[[qt.default.instancePath,(0,Ne.strConcat)(qt.default.instancePath,r)],[qt.default.parentData,s.parentData],[qt.default.parentDataProperty,s.parentDataProperty],[qt.default.rootData,qt.default.rootData]];s.opts.dynamicRef&&p.push([qt.default.dynamicAnchors,qt.default.dynamicAnchors]);let d=(0,Ne._)`${c}, ${n.object(...p)}`;return l!==Ne.nil?(0,Ne._)`${o}.call(${l}, ${d})`:(0,Ne._)`${o}(${d})`}Ee.callValidateCode=sU;var oU=(0,Ne._)`new RegExp`;function lU({gen:t,it:{opts:e}},n){let i=e.unicodeRegExp?"u":"",{regExp:a}=e.code,r=a(n,i);return t.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,Ne._)`${a.code==="new RegExp"?oU:(0,eU.useFunc)(t,a)}(${n}, ${i})`})}Ee.usePattern=lU;function uU(t){let{gen:e,data:n,keyword:i,it:a}=t,r=e.name("valid");if(a.allErrors){let o=e.let("valid",!0);return s(()=>e.assign(o,!1)),o}return e.var(r,!0),s(()=>e.break()),r;function s(o){let l=e.const("len",(0,Ne._)`${n}.length`);e.forRange("i",0,l,u=>{t.subschema({keyword:i,dataProp:u,dataPropType:Xm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=uU;function cU(t){let{gen:e,schema:n,keyword:i,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,Xm.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>n.forEach((l,u)=>{let c=t.subschema({keyword:i,schemaProp:u,compositeRule:!0},o);e.assign(s,(0,Ne._)`${s} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Ne.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Ee.validateUnion=cU});var BO=v(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.validateKeywordUsage=Ri.validSchemaType=Ri.funcKeywordCode=Ri.macroKeywordCode=void 0;var In=re(),Sa=ot(),pU=pi(),dU=po();function hU(t,e){let{gen:n,keyword:i,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=WO(n,i,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=n.name("valid");t.subschema({schema:o,schemaPath:In.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}Ri.macroKeywordCode=hU;function gU(t,e){var n;let{gen:i,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;fU(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=WO(i,a,u),p=i.let("valid");t.block$data(p,d),t.ok((n=e.valid)!==null&&n!==void 0?n:p);function d(){if(e.errors===!1)m(),e.modifying&&LO(t),f(()=>t.error());else{let w=e.async?h():g();e.modifying&&LO(t),f(()=>mU(t,w))}}function h(){let w=i.let("ruleErrs",null);return i.try(()=>m((0,In._)`await `),b=>i.assign(p,!1).if((0,In._)`${b} instanceof ${l.ValidationError}`,()=>i.assign(w,(0,In._)`${b}.errors`),()=>i.throw(b))),w}function g(){let w=(0,In._)`${c}.errors`;return i.assign(w,null),m(In.nil),w}function m(w=e.async?(0,In._)`await `:In.nil){let b=l.opts.passContext?Sa.default.this:Sa.default.self,A=!("compile"in e&&!o||e.schema===!1);i.assign(p,(0,In._)`${w}${(0,pU.callValidateCode)(t,c,b,A)}`,e.modifying)}function f(w){var b;i.if((0,In.not)((b=e.valid)!==null&&b!==void 0?b:p),w)}}Ri.funcKeywordCode=gU;function LO(t){let{gen:e,data:n,it:i}=t;e.if(i.parentData,()=>e.assign(n,(0,In._)`${i.parentData}[${i.parentDataProperty}]`))}function mU(t,e){let{gen:n}=t;n.if((0,In._)`Array.isArray(${e})`,()=>{n.assign(Sa.default.vErrors,(0,In._)`${Sa.default.vErrors} === null ? ${e} : ${Sa.default.vErrors}.concat(${e})`).assign(Sa.default.errors,(0,In._)`${Sa.default.vErrors}.length`),(0,dU.extendErrors)(t)},()=>t.error())}function fU({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function WO(t,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,In.stringify)(n)})}function wU(t,e,n=!1){return!e.length||e.some(i=>i==="array"?Array.isArray(t):i==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==i||n&&typeof t>"u")}Ri.validSchemaType=wU;function vU({schema:t,opts:e,self:n,errSchemaPath:i},a,r){if(Array.isArray(a.keyword)?!a.keyword.includes(r):a.keyword!==r)throw new Error("ajv implementation error");let s=a.dependencies;if(s?.some(o=>!Object.prototype.hasOwnProperty.call(t,o)))throw new Error(`parent schema must have dependencies of ${r}: ${s.join(",")}`);if(a.validateSchema&&!a.validateSchema(t[r])){let l=`keyword "${r}" value is invalid at path "${i}": `+n.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}Ri.validateKeywordUsage=vU});var VO=v(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.extendSubschemaMode=kt.extendSubschemaData=kt.getSubschema=void 0;var Ii=re(),FO=we();function CU(t,{keyword:e,schemaProp:n,schema:i,schemaPath:a,errSchemaPath:r,topSchemaRef:s}){if(e!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return n===void 0?{schema:o,schemaPath:(0,Ii._)`${t.schemaPath}${(0,Ii.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[n],schemaPath:(0,Ii._)`${t.schemaPath}${(0,Ii.getProperty)(e)}${(0,Ii.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,FO.escapeFragment)(n)}`}}if(i!==void 0){if(a===void 0||r===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}kt.getSubschema=CU;function AU(t,e,{dataProp:n,dataPropType:i,data:a,dataTypes:r,propertyName:s}){if(a!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(n!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=e,d=o.let("data",(0,Ii._)`${e.data}${(0,Ii.getProperty)(n)}`,!0);l(d),t.errorPath=(0,Ii.str)`${u}${(0,FO.getErrorPath)(n,i,p.jsPropertySyntax)}`,t.parentDataProperty=(0,Ii._)`${n}`,t.dataPathArr=[...c,t.parentDataProperty]}if(a!==void 0){let u=a instanceof Ii.Name?a:o.let("data",a,!0);l(u),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}kt.extendSubschemaData=AU;function bU(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:i,createErrors:a,allErrors:r}){i!==void 0&&(t.compositeRule=i),a!==void 0&&(t.createErrors=a),r!==void 0&&(t.allErrors=r),t.jtdDiscriminator=e,t.jtdMetadata=n}kt.extendSubschemaMode=bU});var tf=v((cre,JO)=>{"use strict";JO.exports=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,a,r;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(a=i;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(r=Object.keys(e),i=r.length,i!==Object.keys(n).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,r[a]))return!1;for(a=i;a--!==0;){var s=r[a];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}});var KO=v((pre,ZO)=>{"use strict";var _t=ZO.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var i=typeof n=="function"?n:n.pre||function(){},a=n.post||function(){};ic(e,i,a,t,"",t)};_t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};_t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};_t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};_t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ic(t,e,n,i,a,r,s,o,l,u){if(i&&typeof i=="object"&&!Array.isArray(i)){e(i,a,r,s,o,l,u);for(var c in i){var p=i[c];if(Array.isArray(p)){if(c in _t.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getSchemaRefs=Ln.resolveUrl=Ln.normalizeId=Ln._getFullPath=Ln.getFullPath=Ln.inlineRef=void 0;var PU=we(),jU=tf(),SU=KO(),OU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function xU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!af(t):e?QO(t)<=e:!1}Ln.inlineRef=xU;var TU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function af(t){for(let e in t){if(TU.has(e))return!0;let n=t[e];if(Array.isArray(n)&&n.some(af)||typeof n=="object"&&af(n))return!0}return!1}function QO(t){let e=0;for(let n in t){if(n==="$ref")return 1/0;if(e++,!OU.has(n)&&(typeof t[n]=="object"&&(0,PU.eachItem)(t[n],i=>e+=QO(i)),e===1/0))return 1/0}return e}function YO(t,e="",n){n!==!1&&(e=qr(e));let i=t.parse(e);return XO(t,i)}Ln.getFullPath=YO;function XO(t,e){return t.serialize(e).split("#")[0]+"#"}Ln._getFullPath=XO;var MU=/#\/?$/;function qr(t){return t?t.replace(MU,""):""}Ln.normalizeId=qr;function EU(t,e,n){return n=qr(n),t.resolve(e,n)}Ln.resolveUrl=EU;var qU=/^[a-z_][-a-z0-9._]*$/i;function kU(t,e){if(typeof t=="boolean")return{};let{schemaId:n,uriResolver:i}=this.opts,a=qr(t[n]||e),r={"":a},s=YO(i,a,!1),o={},l=new Set;return SU(t,{allKeys:!0},(p,d,h,g)=>{if(g===void 0)return;let m=s+d,f=r[g];typeof p[n]=="string"&&(f=w.call(this,p[n])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),r[d]=f;function w(A){let y=this.opts.uriResolver.resolve;if(A=qr(f?y(f,A):A),l.has(A))throw c(A);l.add(A);let O=this.refs[A];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(p,O.schema,A):A!==qr(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function b(A){if(typeof A=="string"){if(!qU.test(A))throw new Error(`invalid anchor "${A}"`);w.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!jU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ln.getSchemaRefs=kU});var wo=v(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getData=Ht.KeywordCxt=Ht.validateFunctionCode=void 0;var ax=_O(),ex=ho(),sf=Zm(),tc=ho(),_U=$O(),fo=BO(),rf=VO(),B=re(),ee=ot(),HU=go(),lt=we(),mo=po();function RU(t){if(ox(t)&&(lx(t),sx(t))){DU(t);return}rx(t,()=>(0,ax.topBoolOrEmptySchema)(t))}Ht.validateFunctionCode=RU;function rx({gen:t,validateName:e,schema:n,schemaEnv:i,opts:a},r){a.code.es5?t.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,i.$async,()=>{t.code((0,B._)`"use strict"; ${nx(n,a)}`),zU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${IU(a)}`,i.$async,()=>t.code(nx(n,a)).code(r))}function IU(t){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${t.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function zU(t,e){t.if(ee.default.valCxt,()=>{t.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),t.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),t.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),t.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{t.var(ee.default.instancePath,(0,B._)`""`),t.var(ee.default.parentData,(0,B._)`undefined`),t.var(ee.default.parentDataProperty,(0,B._)`undefined`),t.var(ee.default.rootData,ee.default.data),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function DU(t){let{schema:e,opts:n,gen:i}=t;rx(t,()=>{n.$comment&&e.$comment&&cx(t),LU(t),i.let(ee.default.vErrors,null),i.let(ee.default.errors,0),n.unevaluated&&GU(t),ux(t),FU(t)})}function GU(t){let{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,B._)`${n}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function nx(t,e){let n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${n} */`:B.nil}function $U(t,e){if(ox(t)&&(lx(t),sx(t))){NU(t,e);return}(0,ax.boolOrEmptySchema)(t,e)}function sx({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let n in t)if(e.RULES.all[n])return!0;return!1}function ox(t){return typeof t.schema!="boolean"}function NU(t,e){let{schema:n,gen:i,opts:a}=t;a.$comment&&n.$comment&&cx(t),WU(t),BU(t);let r=i.const("_errs",ee.default.errors);ux(t,r),i.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function lx(t){(0,lt.checkUnknownRules)(t),UU(t)}function ux(t,e){if(t.opts.jtd)return ix(t,[],!1,e);let n=(0,ex.getSchemaTypes)(t.schema),i=(0,ex.coerceAndCheckDataType)(t,n);ix(t,n,!i,e)}function UU(t){let{schema:e,errSchemaPath:n,opts:i,self:a}=t;e.$ref&&i.ignoreKeywordsWithRef&&(0,lt.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function LU(t){let{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,lt.checkStrictMode)(t,"default is ignored in the schema root")}function WU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,HU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function BU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function cx({gen:t,schemaEnv:e,schema:n,errSchemaPath:i,opts:a}){let r=n.$comment;if(a.$comment===!0)t.code((0,B._)`${ee.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,B.str)`${i}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${ee.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function FU(t){let{gen:e,schemaEnv:n,validateName:i,ValidationError:a,opts:r}=t;n.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${i}.errors`,ee.default.vErrors),r.unevaluated&&VU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function VU({gen:t,evaluated:e,props:n,items:i}){n instanceof B.Name&&t.assign((0,B._)`${e}.props`,n),i instanceof B.Name&&t.assign((0,B._)`${e}.items`,i)}function ix(t,e,n,i){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:u}=t,{RULES:c}=u;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,lt.schemaHasRulesButRef)(r,c))){a.block(()=>dx(t,"$ref",c.all.$ref.definition));return}l.jtd||JU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,sf.shouldUseGroup)(r,d)&&(d.type?(a.if((0,tc.checkDataType)(d.type,s,l.strictNumbers)),tx(t,d),e.length===1&&e[0]===d.type&&n&&(a.else(),(0,tc.reportTypeError)(t)),a.endIf()):tx(t,d),o||a.if((0,B._)`${ee.default.errors} === ${i||0}`))}}function tx(t,e){let{gen:n,schema:i,opts:{useDefaults:a}}=t;a&&(0,_U.assignDefaults)(t,e.type),n.block(()=>{for(let r of e.rules)(0,sf.shouldUseRule)(i,r)&&dx(t,r.keyword,r.definition,e.type)})}function JU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(ZU(t,e),t.opts.allowUnionTypes||KU(t,e),QU(t,t.dataTypes))}function ZU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{px(t.dataTypes,n)||of(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),XU(t,e)}}function KU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&of(t,"use allowUnionTypes to allow union type keyword")}function QU(t,e){let n=t.self.RULES.all;for(let i in n){let a=n[i];if(typeof a=="object"&&(0,sf.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>YU(e,s))&&of(t,`missing type "${r.join(",")}" for keyword "${i}"`)}}}function YU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function px(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function XU(t,e){let n=[];for(let i of t.dataTypes)px(e,i)?n.push(i):e.includes("integer")&&i==="number"&&n.push("integer");t.dataTypes=n}function of(t,e){let n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,lt.checkStrictMode)(t,e,t.opts.strictTypes)}var ac=class{constructor(e,n,i){if((0,fo.validateKeywordUsage)(e,n,i),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=i,this.data=e.data,this.schema=e.schema[i],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,lt.schemaRefOrVal)(e,this.schema,i,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",hx(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,fo.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,n,i){this.failResult((0,B.not)(e),n,i)}failResult(e,n,i){this.gen.if(e),i?i():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,B.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:n}=this;this.fail((0,B._)`${n} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,n,i){if(n){this.setParams(n),this._error(e,i),this.setParams({});return}this._error(e,i)}_error(e,n){(e?mo.reportExtraError:mo.reportError)(this,this.def.error,n)}$dataError(){(0,mo.reportError)(this,this.def.$dataError||mo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,mo.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,i=B.nil){this.gen.block(()=>{this.check$data(e,i),n()})}check$data(e=B.nil,n=B.nil){if(!this.$data)return;let{gen:i,schemaCode:a,schemaType:r,def:s}=this;i.if((0,B.or)((0,B._)`${a} === undefined`,n)),e!==B.nil&&i.assign(e,!0),(r.length||s.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&i.assign(e,!1)),i.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:i,def:a,it:r}=this;return(0,B.or)(s(),o());function s(){if(i.length){if(!(n instanceof B.Name))throw new Error("ajv implementation error");let l=Array.isArray(i)?i:[i];return(0,B._)`${(0,tc.checkDataTypes)(l,n,r.opts.strictNumbers,tc.DataType.Wrong)}`}return B.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${l}(${n})`}return B.nil}}subschema(e,n){let i=(0,rf.getSubschema)(this.it,e);(0,rf.extendSubschemaData)(i,this.it,e),(0,rf.extendSubschemaMode)(i,e);let a={...this.it,...i,items:void 0,props:void 0};return $U(a,n),a}mergeEvaluated(e,n){let{it:i,gen:a}=this;i.opts.unevaluated&&(i.props!==!0&&e.props!==void 0&&(i.props=lt.mergeEvaluated.props(a,e.props,i.props,n)),i.items!==!0&&e.items!==void 0&&(i.items=lt.mergeEvaluated.items(a,e.items,i.items,n)))}mergeValidEvaluated(e,n){let{it:i,gen:a}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return a.if(n,()=>this.mergeEvaluated(e,B.Name)),!0}};Ht.KeywordCxt=ac;function dx(t,e,n,i){let a=new ac(t,n,e);"code"in n?n.code(a,i):a.$data&&n.validate?(0,fo.funcKeywordCode)(a,n):"macro"in n?(0,fo.macroKeywordCode)(a,n):(n.compile||n.validate)&&(0,fo.funcKeywordCode)(a,n)}var eL=/^\/(?:[^~]|~0|~1)*$/,nL=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function hx(t,{dataLevel:e,dataNames:n,dataPathArr:i}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!eL.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=nL.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return i[e-c]}if(c>e)throw new Error(l("data",c));if(r=n[e-c],!a)return r}let s=r,o=a.split("/");for(let u of o)u&&(r=(0,B._)`${r}${(0,B.getProperty)((0,lt.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}Ht.getData=hx});var rc=v(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var lf=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};uf.default=lf});var vo=v(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var cf=go(),pf=class extends Error{constructor(e,n,i,a){super(a||`can't resolve reference ${i} from id ${n}`),this.missingRef=(0,cf.resolveUrl)(e,n,i),this.missingSchema=(0,cf.normalizeId)((0,cf.getFullPath)(e,this.missingRef))}};df.default=pf});var oc=v(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.resolveSchema=di.getCompilingSchema=di.resolveRef=di.compileSchema=di.SchemaEnv=void 0;var yi=re(),iL=rc(),Oa=ot(),Pi=go(),gx=we(),tL=wo(),kr=class{constructor(e){var n;this.refs={},this.dynamicAnchors={};let i;typeof e.schema=="object"&&(i=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,Pi.normalizeId)(i?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=i?.$async,this.refs={}}};di.SchemaEnv=kr;function gf(t){let e=mx.call(this,t);if(e)return e;let n=(0,Pi.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:i,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new yi.CodeGen(this.scope,{es5:i,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:iL.default,code:(0,yi._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let u={gen:s,allErrors:this.opts.allErrors,data:Oa.default.data,parentData:Oa.default.parentData,parentDataProperty:Oa.default.parentDataProperty,dataNames:[Oa.default.data],dataPathArr:[yi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,yi.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:yi.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,yi._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,tL.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(Oa.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${Oa.default.self}`,`${Oa.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=u;h.evaluated={props:g instanceof yi.Name?void 0:g,items:m instanceof yi.Name?void 0:m,dynamicProps:g instanceof yi.Name,dynamicItems:m instanceof yi.Name},h.source&&(h.source.evaluated=(0,yi.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}di.compileSchema=gf;function aL(t,e,n){var i;n=(0,Pi.resolveUrl)(this.opts.uriResolver,e,n);let a=t.refs[n];if(a)return a;let r=oL.call(this,t,n);if(r===void 0){let s=(i=t.localRefs)===null||i===void 0?void 0:i[n],{schemaId:o}=this.opts;s&&(r=new kr({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[n]=rL.call(this,r)}di.resolveRef=aL;function rL(t){return(0,Pi.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:gf.call(this,t)}function mx(t){for(let e of this._compilations)if(sL(e,t))return e}di.getCompilingSchema=mx;function sL(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function oL(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||sc.call(this,t,e)}function sc(t,e){let n=this.opts.uriResolver.parse(e),i=(0,Pi._getFullPath)(this.opts.uriResolver,n),a=(0,Pi.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===a)return hf.call(this,n,t);let r=(0,Pi.normalizeId)(i),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=sc.call(this,t,s);return typeof o?.schema!="object"?void 0:hf.call(this,n,o)}if(typeof s?.schema=="object"){if(s.validate||gf.call(this,s),r===(0,Pi.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,u=o[l];return u&&(a=(0,Pi.resolveUrl)(this.opts.uriResolver,a,u)),new kr({schema:o,schemaId:l,root:t,baseId:a})}return hf.call(this,n,s)}}di.resolveSchema=sc;var lL=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function hf(t,{baseId:e,schema:n,root:i}){var a;if(((a=t.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(let o of t.fragment.slice(1).split("/")){if(typeof n=="boolean")return;let l=n[(0,gx.unescapeFragment)(o)];if(l===void 0)return;n=l;let u=typeof n=="object"&&n[this.opts.schemaId];!lL.has(o)&&u&&(e=(0,Pi.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof n!="boolean"&&n.$ref&&!(0,gx.schemaHasRulesButRef)(n,this.RULES)){let o=(0,Pi.resolveUrl)(this.opts.uriResolver,e,n.$ref);r=sc.call(this,i,o)}let{schemaId:s}=this.opts;if(r=r||new kr({schema:n,schemaId:s,root:i,baseId:e}),r.schema!==r.root.schema)return r}});var fx=v((wre,uL)=>{uL.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var wf=v((vre,yx)=>{"use strict";var cL=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),vx=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),mf=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Cx=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),pL=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function ff(t){let e="",n=0,i=0;for(i=0;i=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";e+=t[i];break}for(i+=1;i=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";e+=t[i]}return e}var dL=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function wx(t){return t.length=0,!0}function hL(t,e,n){if(t.length){let i=ff(t);if(i!=="")e.push(i);else return n.error=!0,!1;t.length=0}return!0}function gL(t){let e=0,n={error:!1,address:"",zone:""},i=[],a=[],r=!1,s=!1,o=hL;for(let l=0;l7){n.error=!0;break}l>0&&t[l-1]===":"&&(r=!0),i.push(":");continue}else if(u==="%"){if(!o(a,i,n))break;o=wx}else{a.push(u);continue}}return a.length&&(o===wx?n.zone=a.join(""):s?i.push(a.join("")):i.push(ff(a))),n.address=i.join(""),n}function Ax(t){if(mL(t,":")<2)return{host:t,isIPV6:!1};let e=gL(t);if(e.error)return{host:t,isIPV6:!1};{let n=e.address,i=e.address;return e.zone&&(n+="%"+e.zone,i+="%25"+e.zone),{host:n,isIPV6:!0,escapedHost:i}}}function mL(t,e){let n=0;for(let i=0;iwL[i])}function AL(t,e=!1){if(t.indexOf("%")===-1)return t;let n="";for(let i=0;i{"use strict";var{isUUID:jL}=wf(),SL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,OL=["http","https","ws","wss","urn","urn:uuid"];function xL(t){return OL.indexOf(t)!==-1}function vf(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function Px(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function jx(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function TL(t){return t.secure=vf(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function ML(t){if((t.port===(vf(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,n]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=n,t.resourceName=void 0}return t.fragment=void 0,t}function EL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let n=t.path.match(SL);if(n){let i=e.scheme||t.scheme||"urn";t.nid=n[1].toLowerCase(),t.nss=n[2];let a=`${i}:${e.nid||t.nid}`,r=Cf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function qL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let n=e.scheme||t.scheme||"urn",i=t.nid.toLowerCase(),a=`${n}:${e.nid||i}`,r=Cf(a);r&&(t=r.serialize(t,e));let s=t,o=t.nss;return s.path=`${i||e.nid}:${o}`,e.skipEscape=!0,s}function kL(t,e){let n=t;return n.uuid=n.nss,n.nss=void 0,!e.tolerant&&(!n.uuid||!jL(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function _L(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var Sx={scheme:"http",domainHost:!0,parse:Px,serialize:jx},HL={scheme:"https",domainHost:Sx.domainHost,parse:Px,serialize:jx},lc={scheme:"ws",domainHost:!0,parse:TL,serialize:ML},RL={scheme:"wss",domainHost:lc.domainHost,parse:lc.parse,serialize:lc.serialize},IL={scheme:"urn",parse:EL,serialize:qL,skipNormalize:!0},zL={scheme:"urn:uuid",parse:kL,serialize:_L,skipNormalize:!0},uc={http:Sx,https:HL,ws:lc,wss:RL,urn:IL,"urn:uuid":zL};Object.setPrototypeOf(uc,null);function Cf(t){return t&&(uc[t]||uc[t.toLowerCase()])||void 0}Ox.exports={wsIsSecure:vf,SCHEMES:uc,isValidSchemeName:xL,getSchemeHandler:Cf}});var _x=v((Are,cc)=>{"use strict";var{normalizeIPv6:DL,removeDotSegments:Co,recomposeAuthority:GL,normalizePercentEncoding:$L,normalizePathEncoding:NL,escapePreservingEscapes:UL,reescapeHostDelimiters:LL,isIPv4:WL,nonSimpleDomain:BL}=wf(),{SCHEMES:FL,getSchemeHandler:Mx}=xx();function VL(t,e){return typeof t=="string"?t=YL(t,e):typeof t=="object"&&(t=_r(xa(t,e),e)),t}function JL(t,e,n){let i=n?Object.assign({scheme:"null"},n):{scheme:"null"},a=Ex(_r(t,i),_r(e,i),i,!0);return i.skipEscape=!0,xa(a,i)}function Ex(t,e,n,i){let a={};return i||(t=_r(xa(t,n),n),e=_r(xa(e,n),n)),n=n||{},!n.tolerant&&e.scheme?(a.scheme=e.scheme,a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=Co(e.path||""),a.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=Co(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=Co(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?a.path="/"+e.path:t.path?a.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:a.path=e.path,a.path=Co(a.path)),a.query=e.query):(a.path=t.path,e.query!==void 0?a.query=e.query:a.query=t.query),a.userinfo=t.userinfo,a.host=t.host,a.port=t.port),a.scheme=t.scheme),a.fragment=e.fragment,a}function ZL(t,e,n){let i=Tx(t,n),a=Tx(e,n);return i!==void 0&&a!==void 0&&i.toLowerCase()===a.toLowerCase()}function xa(t,e){let n={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},i=Object.assign({},e),a=[],r=Mx(i.scheme||n.scheme);r&&r.serialize&&r.serialize(n,i),n.path!==void 0&&(i.skipEscape?n.path=$L(n.path):(n.path=UL(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),i.reference!=="suffix"&&n.scheme&&a.push(n.scheme,":");let s=GL(n);if(s!==void 0&&(i.reference!=="suffix"&&a.push("//"),a.push(s),n.path&&n.path[0]!=="/"&&a.push("/")),n.path!==void 0){let o=n.path;!i.absolutePath&&(!r||!r.absolutePath)&&(o=Co(o)),s===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),a.push(o)}return n.query!==void 0&&a.push("?",n.query),n.fragment!==void 0&&a.push("#",n.fragment),a.join("")}var KL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function QL(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function qx(t,e){let n=Object.assign({},e),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,r=!1;n.reference==="suffix"&&(n.scheme?t=n.scheme+":"+t:t="//"+t);let s=t.match(KL);if(s){i.scheme=s[1],i.userinfo=s[3],i.host=s[4],i.port=parseInt(s[5],10),i.path=s[6]||"",i.query=s[7],i.fragment=s[8],isNaN(i.port)&&(i.port=s[5]);let o=QL(i,s);if(o!==void 0&&(i.error=i.error||o,a=!0),i.host)if(WL(i.host)===!1){let c=DL(i.host);i.host=c.host.toLowerCase(),r=c.isIPV6}else r=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==i.reference&&(i.error=i.error||"URI is not a "+n.reference+" reference.");let l=Mx(n.scheme||i.scheme);if(!n.unicodeSupport&&(!l||!l.unicodeSupport)&&i.host&&(n.domainHost||l&&l.domainHost)&&r===!1&&BL(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(u){i.error=i.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(t.indexOf("%")!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=LL(unescape(i.host),r))),i.path&&(i.path=NL(i.path)),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||"URI malformed"}l&&l.parse&&l.parse(i,n)}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:a}}function _r(t,e){return qx(t,e).parsed}function YL(t,e){return kx(t,e).normalized}function kx(t,e){let{parsed:n,malformedAuthorityOrPort:i}=qx(t,e);return{normalized:i?t:xa(n,e),malformedAuthorityOrPort:i}}function Tx(t,e){if(typeof t=="string"){let{normalized:n,malformedAuthorityOrPort:i}=kx(t,e);return i?void 0:n}if(typeof t=="object")return xa(t,e)}var Af={SCHEMES:FL,normalize:VL,resolve:JL,resolveComponent:Ex,equal:ZL,serialize:xa,parse:_r};cc.exports=Af;cc.exports.default=Af;cc.exports.fastUri=Af});var Rx=v(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var Hx=_x();Hx.code='require("ajv/dist/runtime/uri").default';bf.default=Hx});var Lx=v(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.CodeGen=Pn.Name=Pn.nil=Pn.stringify=Pn.str=Pn._=Pn.KeywordCxt=void 0;var XL=wo();Object.defineProperty(Pn,"KeywordCxt",{enumerable:!0,get:function(){return XL.KeywordCxt}});var Hr=re();Object.defineProperty(Pn,"_",{enumerable:!0,get:function(){return Hr._}});Object.defineProperty(Pn,"str",{enumerable:!0,get:function(){return Hr.str}});Object.defineProperty(Pn,"stringify",{enumerable:!0,get:function(){return Hr.stringify}});Object.defineProperty(Pn,"nil",{enumerable:!0,get:function(){return Hr.nil}});Object.defineProperty(Pn,"Name",{enumerable:!0,get:function(){return Hr.Name}});Object.defineProperty(Pn,"CodeGen",{enumerable:!0,get:function(){return Hr.CodeGen}});var eW=rc(),$x=vo(),nW=Jm(),Ao=oc(),iW=re(),bo=go(),pc=ho(),Pf=we(),Ix=fx(),tW=Rx(),Nx=(t,e)=>new RegExp(t,e);Nx.code="new RegExp";var aW=["removeAdditional","useDefaults","coerceTypes"],rW=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),sW={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},oW={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},zx=200;function lW(t){var e,n,i,a,r,s,o,l,u,c,p,d,h,g,m,f,w,b,A,y,O,$,N,X,F;let q=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=Q===!0||Q===void 0?1:Q||0,ne=(i=(n=t.code)===null||n===void 0?void 0:n.regExp)!==null&&i!==void 0?i:Nx,se=(a=t.uriResolver)!==null&&a!==void 0?a:tW.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:q)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:q)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:q)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=t.strictTuples)!==null&&p!==void 0?p:q)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:q)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Z,regExp:ne}:{optimize:Z,regExp:ne},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:zx,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:zx,meta:(w=t.meta)!==null&&w!==void 0?w:!0,messages:(b=t.messages)!==null&&b!==void 0?b:!0,inlineRefs:(A=t.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(y=t.schemaId)!==null&&y!==void 0?y:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(X=t.unicodeRegExp)!==null&&X!==void 0?X:!0,int32range:(F=t.int32range)!==null&&F!==void 0?F:!0,uriResolver:se}}var yo=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...lW(e)};let{es5:n,lines:i}=this.opts.code;this.scope=new iW.ValueScope({scope:{},prefixes:rW,es5:n,lines:i}),this.logger=gW(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,nW.getRules)(),Dx.call(this,sW,e,"NOT SUPPORTED"),Dx.call(this,oW,e,"DEPRECATED","warn"),this._metaOpts=dW.call(this),e.formats&&cW.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&pW.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),uW.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:i}=this.opts,a=Ix;i==="id"&&(a={...Ix},a.id=a.$id,delete a.$id),n&&e&&this.addMetaSchema(a,a[i],!1)}defaultMeta(){let{meta:e,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[n]||e:void 0}validate(e,n){let i;if(typeof e=="string"){if(i=this.getSchema(e),!i)throw new Error(`no schema with key or ref "${e}"`)}else i=this.compile(e);let a=i(n);return"$async"in i||(this.errors=i.errors),a}compile(e,n){let i=this._addSchema(e,n);return i.validate||this._compileSchemaEnv(i)}compileAsync(e,n){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return a.call(this,e,n);async function a(c,p){await r.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||s.call(this,d)}async function r(c){c&&!this.getSchema(c)&&await a.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof $x.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,n)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=i(c))}finally{delete this._loading[c]}}}addSchema(e,n,i,a=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,i,a);return this}let r;if(typeof e=="object"){let{schemaId:s}=this.opts;if(r=e[s],r!==void 0&&typeof r!="string")throw new Error(`schema ${s} must be string`)}return n=(0,bo.normalizeId)(n||r),this._checkUnique(n),this.schemas[n]=this._addSchema(e,i,n,a,!0),this}addMetaSchema(e,n,i=this.opts.validateSchema){return this.addSchema(e,n,!0,i),this}validateSchema(e,n){if(typeof e=="boolean")return!0;let i;if(i=e.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(i,e);if(!a&&n){let r="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(r);else throw new Error(r)}return a}getSchema(e){let n;for(;typeof(n=Gx.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:i}=this.opts,a=new Ao.SchemaEnv({schema:{},schemaId:i});if(n=Ao.resolveSchema.call(this,a,e),!n)return;this.refs[e]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let n=Gx.call(this,e);return typeof n=="object"&&this._cache.delete(n.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let n=e;this._cache.delete(n);let i=e[this.opts.schemaId];return i&&(i=(0,bo.normalizeId)(i),delete this.schemas[i],delete this.refs[i]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let n of e)this.addKeyword(n);return this}addKeyword(e,n){let i;if(typeof e=="string")i=e,typeof n=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),n.keyword=i);else if(typeof e=="object"&&n===void 0){if(n=e,i=n.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(fW.call(this,i,n),!n)return(0,Pf.eachItem)(i,r=>yf.call(this,r)),this;vW.call(this,n);let a={...n,type:(0,pc.getJSONTypes)(n.type),schemaType:(0,pc.getJSONTypes)(n.schemaType)};return(0,Pf.eachItem)(i,a.type.length===0?r=>yf.call(this,r,a):r=>a.type.forEach(s=>yf.call(this,r,a,s))),this}getKeyword(e){let n=this.RULES.all[e];return typeof n=="object"?n.definition:!!n}removeKeyword(e){let{RULES:n}=this;delete n.keywords[e],delete n.all[e];for(let i of n.rules){let a=i.rules.findIndex(r=>r.keyword===e);a>=0&&i.rules.splice(a,1)}return this}addFormat(e,n){return typeof n=="string"&&(n=new RegExp(n)),this.formats[e]=n,this}errorsText(e=this.errors,{separator:n=", ",dataVar:i="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${i}${a.instancePath} ${a.message}`).reduce((a,r)=>a+n+r)}$dataMetaSchema(e,n){let i=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of n){let r=a.split("/").slice(1),s=e;for(let o of r)s=s[o];for(let o in i){let l=i[o];if(typeof l!="object")continue;let{$data:u}=l.definition,c=s[o];u&&c&&(s[o]=Ux(c))}}return e}_removeAllSchemas(e,n){for(let i in e){let a=e[i];(!n||n.test(i))&&(typeof a=="string"?delete e[i]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[i]))}}_addSchema(e,n,i,a=this.opts.validateSchema,r=this.opts.addUsedSchema){let s,{schemaId:o}=this.opts;if(typeof e=="object")s=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(e);if(l!==void 0)return l;i=(0,bo.normalizeId)(s||i);let u=bo.getSchemaRefs.call(this,e,i);return l=new Ao.SchemaEnv({schema:e,schemaId:o,meta:n,baseId:i,localRefs:u}),this._cache.set(l.schema,l),r&&!i.startsWith("#")&&(i&&this._checkUnique(i),this.refs[i]=l),a&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Ao.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let n=this.opts;this.opts=this._metaOpts;try{Ao.compileSchema.call(this,e)}finally{this.opts=n}}};yo.ValidationError=eW.default;yo.MissingRefError=$x.default;Pn.default=yo;function Dx(t,e,n,i="error"){for(let a in t){let r=a;r in e&&this.logger[i](`${n}: option ${a}. ${t[r]}`)}}function Gx(t){return t=(0,bo.normalizeId)(t),this.schemas[t]||this.refs[t]}function uW(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function cW(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function pW(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let n=t[e];n.keyword||(n.keyword=e),this.addKeyword(n)}}function dW(){let t={...this.opts};for(let e of aW)delete t[e];return t}var hW={log(){},warn(){},error(){}};function gW(t){if(t===!1)return hW;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var mW=/^[a-z_$][a-z0-9_$:-]*$/i;function fW(t,e){let{RULES:n}=this;if((0,Pf.eachItem)(t,i=>{if(n.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!mW.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function yf(t,e,n){var i;let a=e?.post;if(n&&a)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:r}=this,s=a?r.post:r.rules.find(({type:l})=>l===n);if(s||(s={type:n,rules:[]},r.rules.push(s)),r.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,pc.getJSONTypes)(e.type),schemaType:(0,pc.getJSONTypes)(e.schemaType)}};e.before?wW.call(this,s,o,e.before):s.rules.push(o),r.all[t]=o,(i=e.implements)===null||i===void 0||i.forEach(l=>this.addKeyword(l))}function wW(t,e,n){let i=t.rules.findIndex(a=>a.keyword===n);i>=0?t.rules.splice(i,0,e):(t.rules.push(e),this.logger.warn(`rule ${n} is not defined`))}function vW(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Ux(e)),t.validateSchema=this.compile(e,!0))}var CW={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ux(t){return{anyOf:[t,CW]}}});var Wx=v(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var AW={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};jf.default=AW});var Jx=v(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.callRef=Ta.getValidate=void 0;var bW=vo(),Bx=pi(),Wn=re(),Rr=ot(),Fx=oc(),dc=we(),yW={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:n,it:i}=t,{baseId:a,schemaEnv:r,validateName:s,opts:o,self:l}=i,{root:u}=r;if((n==="#"||n==="#/")&&a===u.baseId)return p();let c=Fx.resolveRef.call(l,u,a,n);if(c===void 0)throw new bW.default(i.opts.uriResolver,a,n);if(c instanceof Fx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return hc(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return hc(t,(0,Wn._)`${g}.validate`,u,u.$async)}function d(g){let m=Vx(t,g);hc(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Wn.stringify)(g)}:{ref:g}),f=e.name("valid"),w=t.subschema({schema:g,dataTypes:[],schemaPath:Wn.nil,topSchemaRef:m,errSchemaPath:n},f);t.mergeEvaluated(w),t.ok(f)}}};function Vx(t,e){let{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,Wn._)`${n.scopeValue("wrapper",{ref:e})}.validate`}Ta.getValidate=Vx;function hc(t,e,n,i){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?Rr.default.this:Wn.nil;i?c():p();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,Wn._)`await ${(0,Bx.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Wn._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,Bx.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Wn._)`${g}.errors`;a.assign(Rr.default.vErrors,(0,Wn._)`${Rr.default.vErrors} === null ? ${m} : ${Rr.default.vErrors}.concat(${m})`),a.assign(Rr.default.errors,(0,Wn._)`${Rr.default.vErrors}.length`)}function h(g){var m;if(!r.opts.unevaluated)return;let f=(m=n?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(f&&!f.dynamicProps)f.props!==void 0&&(r.props=dc.mergeEvaluated.props(a,f.props,r.props));else{let w=a.var("props",(0,Wn._)`${g}.evaluated.props`);r.props=dc.mergeEvaluated.props(a,w,r.props,Wn.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=dc.mergeEvaluated.items(a,f.items,r.items));else{let w=a.var("items",(0,Wn._)`${g}.evaluated.items`);r.items=dc.mergeEvaluated.items(a,w,r.items,Wn.Name)}}}Ta.callRef=hc;Ta.default=yW});var Zx=v(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var PW=Wx(),jW=Jx(),SW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",PW.default,jW.default];Sf.default=SW});var Kx=v(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var gc=re(),Rt=gc.operators,mc={maximum:{okStr:"<=",ok:Rt.LTE,fail:Rt.GT},minimum:{okStr:">=",ok:Rt.GTE,fail:Rt.LT},exclusiveMaximum:{okStr:"<",ok:Rt.LT,fail:Rt.GTE},exclusiveMinimum:{okStr:">",ok:Rt.GT,fail:Rt.LTE}},OW={message:({keyword:t,schemaCode:e})=>(0,gc.str)`must be ${mc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,gc._)`{comparison: ${mc[t].okStr}, limit: ${e}}`},xW={keyword:Object.keys(mc),type:"number",schemaType:"number",$data:!0,error:OW,code(t){let{keyword:e,data:n,schemaCode:i}=t;t.fail$data((0,gc._)`${n} ${mc[e].fail} ${i} || isNaN(${n})`)}};Of.default=xW});var Qx=v(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var Po=re(),TW={message:({schemaCode:t})=>(0,Po.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Po._)`{multipleOf: ${t}}`},MW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:TW,code(t){let{gen:e,data:n,schemaCode:i,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,Po._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,Po._)`${s} !== parseInt(${s})`;t.fail$data((0,Po._)`(${i} === 0 || (${s} = ${n}/${i}, ${o}))`)}};xf.default=MW});var Xx=v(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});function Yx(t){let e=t.length,n=0,i=0,a;for(;i=55296&&a<=56319&&i{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var Ma=re(),EW=we(),qW=Xx(),kW={message({keyword:t,schemaCode:e}){let n=t==="maxLength"?"more":"fewer";return(0,Ma.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>(0,Ma._)`{limit: ${t}}`},_W={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:kW,code(t){let{keyword:e,data:n,schemaCode:i,it:a}=t,r=e==="maxLength"?Ma.operators.GT:Ma.operators.LT,s=a.opts.unicode===!1?(0,Ma._)`${n}.length`:(0,Ma._)`${(0,EW.useFunc)(t.gen,qW.default)}(${n})`;t.fail$data((0,Ma._)`${s} ${r} ${i}`)}};Mf.default=_W});var nT=v(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var HW=pi(),RW=we(),Ir=re(),IW={message:({schemaCode:t})=>(0,Ir.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Ir._)`{pattern: ${t}}`},zW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:IW,code(t){let{gen:e,data:n,$data:i,schema:a,schemaCode:r,it:s}=t,o=s.opts.unicodeRegExp?"u":"";if(i){let{regExp:l}=s.opts.code,u=l.code==="new RegExp"?(0,Ir._)`new RegExp`:(0,RW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,Ir._)`${u}(${r}, ${o}).test(${n})`),()=>e.assign(c,!1)),t.fail$data((0,Ir._)`!${c}`)}else{let l=(0,HW.usePattern)(t,a);t.fail$data((0,Ir._)`!${l}.test(${n})`)}}};Ef.default=zW});var iT=v(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var jo=re(),DW={message({keyword:t,schemaCode:e}){let n=t==="maxProperties"?"more":"fewer";return(0,jo.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,jo._)`{limit: ${t}}`},GW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:DW,code(t){let{keyword:e,data:n,schemaCode:i}=t,a=e==="maxProperties"?jo.operators.GT:jo.operators.LT;t.fail$data((0,jo._)`Object.keys(${n}).length ${a} ${i}`)}};qf.default=GW});var tT=v(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var So=pi(),Oo=re(),$W=we(),NW={message:({params:{missingProperty:t}})=>(0,Oo.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Oo._)`{missingProperty: ${t}}`},UW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:NW,code(t){let{gen:e,schema:n,schemaCode:i,data:a,$data:r,it:s}=t,{opts:o}=s;if(!r&&n.length===0)return;let l=n.length>=o.loopRequired;if(s.allErrors?u():c(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let m of n)if(h?.[m]===void 0&&!g.has(m)){let f=s.schemaEnv.baseId+s.errSchemaPath,w=`required property "${m}" is not defined at "${f}" (strictRequired)`;(0,$W.checkStrictMode)(s,w,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(Oo.nil,p);else for(let h of n)(0,So.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(l||r){let g=e.let("valid",!0);t.block$data(g,()=>d(h,g)),t.ok(g)}else e.if((0,So.checkMissingProp)(t,n,h)),(0,So.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",i,h=>{t.setParams({missingProperty:h}),e.if((0,So.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,i,()=>{e.assign(g,(0,So.propertyInData)(e,a,h,o.ownProperties)),e.if((0,Oo.not)(g),()=>{t.error(),e.break()})},Oo.nil)}}};kf.default=UW});var aT=v(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var xo=re(),LW={message({keyword:t,schemaCode:e}){let n=t==="maxItems"?"more":"fewer";return(0,xo.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,xo._)`{limit: ${t}}`},WW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:LW,code(t){let{keyword:e,data:n,schemaCode:i}=t,a=e==="maxItems"?xo.operators.GT:xo.operators.LT;t.fail$data((0,xo._)`${n}.length ${a} ${i}`)}};_f.default=WW});var fc=v(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var rT=tf();rT.code='require("ajv/dist/runtime/equal").default';Hf.default=rT});var sT=v(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var Rf=ho(),jn=re(),BW=we(),FW=fc(),VW={message:({params:{i:t,j:e}})=>(0,jn.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,jn._)`{i: ${t}, j: ${e}}`},JW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:VW,code(t){let{gen:e,data:n,$data:i,schema:a,parentSchema:r,schemaCode:s,it:o}=t;if(!i&&!a)return;let l=e.let("valid"),u=r.items?(0,Rf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,jn._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,jn._)`${n}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,jn._)`${g} > 1`,()=>(p()?d:h)(g,m))}function p(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function d(g,m){let f=e.name("item"),w=(0,Rf.checkDataTypes)(u,f,o.opts.strictNumbers,Rf.DataType.Wrong),b=e.const("indices",(0,jn._)`{}`);e.for((0,jn._)`;${g}--;`,()=>{e.let(f,(0,jn._)`${n}[${g}]`),e.if(w,(0,jn._)`continue`),u.length>1&&e.if((0,jn._)`typeof ${f} == "string"`,(0,jn._)`${f} += "_"`),e.if((0,jn._)`typeof ${b}[${f}] == "number"`,()=>{e.assign(m,(0,jn._)`${b}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,jn._)`${b}[${f}] = ${g}`)})}function h(g,m){let f=(0,BW.useFunc)(e,FW.default),w=e.name("outer");e.label(w).for((0,jn._)`;${g}--;`,()=>e.for((0,jn._)`${m} = ${g}; ${m}--;`,()=>e.if((0,jn._)`${f}(${n}[${g}], ${n}[${m}])`,()=>{t.error(),e.assign(l,!1).break(w)})))}}};If.default=JW});var oT=v(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var zf=re(),ZW=we(),KW=fc(),QW={message:"must be equal to constant",params:({schemaCode:t})=>(0,zf._)`{allowedValue: ${t}}`},YW={keyword:"const",$data:!0,error:QW,code(t){let{gen:e,data:n,$data:i,schemaCode:a,schema:r}=t;i||r&&typeof r=="object"?t.fail$data((0,zf._)`!${(0,ZW.useFunc)(e,KW.default)}(${n}, ${a})`):t.fail((0,zf._)`${r} !== ${n}`)}};Df.default=YW});var lT=v(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var To=re(),XW=we(),eB=fc(),nB={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,To._)`{allowedValues: ${t}}`},iB={keyword:"enum",schemaType:"array",$data:!0,error:nB,code(t){let{gen:e,data:n,$data:i,schema:a,schemaCode:r,it:s}=t;if(!i&&a.length===0)throw new Error("enum must have non-empty array");let o=a.length>=s.opts.loopEnum,l,u=()=>l??(l=(0,XW.useFunc)(e,eB.default)),c;if(o||i)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=e.const("vSchema",r);c=(0,To.or)(...a.map((g,m)=>d(h,m)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",r,h=>e.if((0,To._)`${u()}(${n}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,To._)`${u()}(${n}, ${h}[${g}])`:(0,To._)`${n} === ${m}`}}};Gf.default=iB});var uT=v($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var tB=Kx(),aB=Qx(),rB=eT(),sB=nT(),oB=iT(),lB=tT(),uB=aT(),cB=sT(),pB=oT(),dB=lT(),hB=[tB.default,aB.default,rB.default,sB.default,oB.default,lB.default,uB.default,cB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},pB.default,dB.default];$f.default=hB});var Uf=v(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.validateAdditionalItems=void 0;var Ea=re(),Nf=we(),gB={message:({params:{len:t}})=>(0,Ea.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ea._)`{limit: ${t}}`},mB={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:gB,code(t){let{parentSchema:e,it:n}=t,{items:i}=e;if(!Array.isArray(i)){(0,Nf.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}cT(t,i)}};function cT(t,e){let{gen:n,schema:i,data:a,keyword:r,it:s}=t;s.items=!0;let o=n.const("len",(0,Ea._)`${a}.length`);if(i===!1)t.setParams({len:e.length}),t.pass((0,Ea._)`${o} <= ${e.length}`);else if(typeof i=="object"&&!(0,Nf.alwaysValidSchema)(s,i)){let u=n.var("valid",(0,Ea._)`${o} <= ${e.length}`);n.if((0,Ea.not)(u),()=>l(u)),t.ok(u)}function l(u){n.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:Nf.Type.Num},u),s.allErrors||n.if((0,Ea.not)(u),()=>n.break())})}}Mo.validateAdditionalItems=cT;Mo.default=mB});var Lf=v(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.validateTuple=void 0;var pT=re(),wc=we(),fB=pi(),wB={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:n}=t;if(Array.isArray(e))return dT(t,"additionalItems",e);n.items=!0,!(0,wc.alwaysValidSchema)(n,e)&&t.ok((0,fB.validateArray)(t))}};function dT(t,e,n=t.schema){let{gen:i,parentSchema:a,data:r,keyword:s,it:o}=t;c(a),o.opts.unevaluated&&n.length&&o.items!==!0&&(o.items=wc.mergeEvaluated.items(i,n.length,o.items));let l=i.name("valid"),u=i.const("len",(0,pT._)`${r}.length`);n.forEach((p,d)=>{(0,wc.alwaysValidSchema)(o,p)||(i.if((0,pT._)`${u} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},l)),t.ok(l))});function c(p){let{opts:d,errSchemaPath:h}=o,g=n.length,m=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(d.strictTuples&&!m){let f=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,wc.checkStrictMode)(o,f,d.strictTuples)}}}Eo.validateTuple=dT;Eo.default=wB});var hT=v(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var vB=Lf(),CB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,vB.validateTuple)(t,"items")};Wf.default=CB});var mT=v(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var gT=re(),AB=we(),bB=pi(),yB=Uf(),PB={message:({params:{len:t}})=>(0,gT.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,gT._)`{limit: ${t}}`},jB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:PB,code(t){let{schema:e,parentSchema:n,it:i}=t,{prefixItems:a}=n;i.items=!0,!(0,AB.alwaysValidSchema)(i,e)&&(a?(0,yB.validateAdditionalItems)(t,a):t.ok((0,bB.validateArray)(t)))}};Bf.default=jB});var fT=v(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var hi=re(),vc=we(),SB={message:({params:{min:t,max:e}})=>e===void 0?(0,hi.str)`must contain at least ${t} valid item(s)`:(0,hi.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,hi._)`{minContains: ${t}}`:(0,hi._)`{minContains: ${t}, maxContains: ${e}}`},OB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:SB,code(t){let{gen:e,schema:n,parentSchema:i,data:a,it:r}=t,s,o,{minContains:l,maxContains:u}=i;r.opts.next?(s=l===void 0?1:l,o=u):s=1;let c=e.const("len",(0,hi._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,vc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,vc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,vc.alwaysValidSchema)(r,n)){let m=(0,hi._)`${c} >= ${s}`;o!==void 0&&(m=(0,hi._)`${m} && ${c} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,hi._)`${a}.length > 0`,d)):(e.let(p,!1),d()),t.result(p,()=>t.reset());function d(){let m=e.name("_valid"),f=e.let("count",0);h(m,()=>e.if(m,()=>g(f)))}function h(m,f){e.forRange("i",0,c,w=>{t.subschema({keyword:"contains",dataProp:w,dataPropType:vc.Type.Num,compositeRule:!0},m),f()})}function g(m){e.code((0,hi._)`${m}++`),o===void 0?e.if((0,hi._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,hi._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,hi._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};Ff.default=OB});var CT=v(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.validateSchemaDeps=zi.validatePropertyDeps=zi.error=void 0;var Vf=re(),xB=we(),qo=pi();zi.error={message:({params:{property:t,depsCount:e,deps:n}})=>{let i=e===1?"property":"properties";return(0,Vf.str)`must have ${i} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:i}})=>(0,Vf._)`{property: ${t}, + missingProperty: ${i}, depsCount: ${e}, - deps: ${r}}`};var pP={keyword:"dependencies",type:"object",schemaType:"object",error:_t.error,code(t){let[e,r]=fP(t);g_(t,e),__(t,r)}};function fP({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let o=Array.isArray(t[n])?e:r;o[n]=t[n]}return[e,r]}function g_(t,e=t.schema){let{gen:r,data:n,it:o}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let i in e){let a=e[i];if(a.length===0)continue;let c=(0,To.propertyInData)(r,n,i,o.opts.ownProperties);t.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let u of a)(0,To.checkReportMissingProp)(t,u)}):(r.if((0,Vl._)`${c} && (${(0,To.checkMissingProp)(t,a,s)})`),(0,To.reportMissingProp)(t,s),r.else())}}_t.validatePropertyDeps=g_;function __(t,e=t.schema){let{gen:r,data:n,keyword:o,it:s}=t,i=r.name("valid");for(let a in e)(0,dP.alwaysValidSchema)(s,e[a])||(r.if((0,To.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=t.subschema({keyword:o,schemaProp:a},i);t.mergeValidEvaluated(c,i)},()=>r.var(i,!0)),t.ok(i))}_t.validateSchemaDeps=__;_t.default=pP});var b_=w(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var v_=U(),mP=W(),hP={message:"property name must be valid",params:({params:t})=>(0,v_._)`{propertyName: ${t.propertyName}}`},gP={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:hP,code(t){let{gen:e,schema:r,data:n,it:o}=t;if((0,mP.alwaysValidSchema)(o,r))return;let s=e.name("valid");e.forIn("key",n,i=>{t.setParams({propertyName:i}),t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),e.if((0,v_.not)(s),()=>{t.error(!0),o.allErrors||e.break()})}),t.ok(s)}};Hl.default=gP});var Bl=w(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var ai=et(),ut=U(),_P=Et(),ci=W(),yP={message:"must NOT have additional properties",params:({params:t})=>(0,ut._)`{additionalProperty: ${t.additionalProperty}}`},vP={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yP,code(t){let{gen:e,schema:r,parentSchema:n,data:o,errsCount:s,it:i}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,ci.alwaysValidSchema)(i,r))return;let u=(0,ai.allSchemaProperties)(n.properties),l=(0,ai.allSchemaProperties)(n.patternProperties);d(),t.ok((0,ut._)`${s} === ${_P.default.errors}`);function d(){e.forIn("key",o,y=>{!u.length&&!l.length?m(y):e.if(p(y),()=>m(y))})}function p(y){let $;if(u.length>8){let j=(0,ci.schemaRefOrVal)(i,n.properties,"properties");$=(0,ai.isOwnProperty)(e,j,y)}else u.length?$=(0,ut.or)(...u.map(j=>(0,ut._)`${y} === ${j}`)):$=ut.nil;return l.length&&($=(0,ut.or)($,...l.map(j=>(0,ut._)`${(0,ai.usePattern)(t,j)}.test(${y})`))),(0,ut.not)($)}function f(y){e.code((0,ut._)`delete ${o}[${y}]`)}function m(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){f(y);return}if(r===!1){t.setParams({additionalProperty:y}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,ci.alwaysValidSchema)(i,r)){let $=e.name("valid");c.removeAdditional==="failing"?(_(y,$,!1),e.if((0,ut.not)($),()=>{t.reset(),f(y)})):(_(y,$),a||e.if((0,ut.not)($),()=>e.break()))}}function _(y,$,j){let E={keyword:"additionalProperties",dataProp:y,dataPropType:ci.Type.Str};j===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(E,$)}}};Jl.default=vP});var w_=w(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var bP=mo(),x_=et(),Kl=W(),$_=Bl(),xP={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:o,it:s}=t;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&$_.default.code(new bP.KeywordCxt(s,$_.default,"additionalProperties"));let i=(0,x_.allSchemaProperties)(r);for(let d of i)s.definedProperties.add(d);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Kl.mergeEvaluated.props(e,(0,Kl.toHash)(i),s.props));let a=i.filter(d=>!(0,Kl.alwaysValidSchema)(s,r[d]));if(a.length===0)return;let c=e.name("valid");for(let d of a)u(d)?l(d):(e.if((0,x_.propertyInData)(e,o,d,s.opts.ownProperties)),l(d),s.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(d),t.ok(c);function u(d){return s.opts.useDefaults&&!s.compositeRule&&r[d].default!==void 0}function l(d){t.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};Gl.default=xP});var P_=w(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var k_=et(),ui=U(),z_=W(),S_=W(),$P={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:o,it:s}=t,{opts:i}=s,a=(0,k_.allSchemaProperties)(r),c=a.filter(_=>(0,z_.alwaysValidSchema)(s,r[_]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,l=e.name("valid");s.props!==!0&&!(s.props instanceof ui.Name)&&(s.props=(0,S_.evaluatedPropsToName)(e,s.props));let{props:d}=s;p();function p(){for(let _ of a)u&&f(_),s.allErrors?m(_):(e.var(l,!0),m(_),e.if(l))}function f(_){for(let y in u)new RegExp(_).test(y)&&(0,z_.checkStrictMode)(s,`property ${y} matches pattern ${_} (use allowMatchingProperties)`)}function m(_){e.forIn("key",n,y=>{e.if((0,ui._)`${(0,k_.usePattern)(t,_)}.test(${y})`,()=>{let $=c.includes(_);$||t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:y,dataPropType:S_.Type.Str},l),s.opts.unevaluated&&d!==!0?e.assign((0,ui._)`${d}[${y}]`,!0):!$&&!s.allErrors&&e.if((0,ui.not)(l),()=>e.break())})})}}};Wl.default=$P});var T_=w(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var wP=W(),kP={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,wP.alwaysValidSchema)(n,r)){t.fail();return}let o=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Xl.default=kP});var E_=w(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var zP=et(),SP={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:zP.validateUnion,error:{message:"must match a schema in anyOf"}};Yl.default=SP});var R_=w(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var li=U(),PP=W(),TP={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,li._)`{passingSchemas: ${t.passing}}`},EP={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:TP,code(t){let{gen:e,schema:r,parentSchema:n,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let s=r,i=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(u),t.result(i,()=>t.reset(),()=>t.error(!0));function u(){s.forEach((l,d)=>{let p;(0,PP.alwaysValidSchema)(o,l)?e.var(c,!0):p=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&e.if((0,li._)`${c} && ${i}`).assign(i,!1).assign(a,(0,li._)`[${a}, ${d}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(a,d),p&&t.mergeEvaluated(p,li.Name)})})}}};Ql.default=EP});var I_=w(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var RP=W(),IP={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=e.name("valid");r.forEach((s,i)=>{if((0,RP.alwaysValidSchema)(n,s))return;let a=t.subschema({keyword:"allOf",schemaProp:i},o);t.ok(o),t.mergeEvaluated(a)})}};ed.default=IP});var N_=w(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var di=U(),Z_=W(),OP={message:({params:t})=>(0,di.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,di._)`{failingKeyword: ${t.ifClause}}`},ZP={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:OP,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,Z_.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=O_(n,"then"),s=O_(n,"else");if(!o&&!s)return;let i=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),o&&s){let l=e.let("ifClause");t.setParams({ifClause:l}),e.if(a,u("then",l),u("else",l))}else o?e.if(a,u("then")):e.if((0,di.not)(a),u("else"));t.pass(i,()=>t.error(!0));function c(){let l=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(l)}function u(l,d){return()=>{let p=t.subschema({keyword:l},a);e.assign(i,a),t.mergeValidEvaluated(p,i),d?e.assign(d,(0,di._)`${l}`):t.setParams({ifClause:l})}}}};function O_(t,e){let r=t.schema[e];return r!==void 0&&!(0,Z_.alwaysValidSchema)(t,r)}td.default=ZP});var j_=w(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var NP=W(),jP={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,NP.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};rd.default=jP});var C_=w(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var CP=Dl(),AP=p_(),MP=ql(),DP=m_(),qP=h_(),LP=y_(),UP=b_(),FP=Bl(),VP=w_(),HP=P_(),JP=T_(),BP=E_(),KP=R_(),GP=I_(),WP=N_(),XP=j_();function YP(t=!1){let e=[JP.default,BP.default,KP.default,GP.default,WP.default,XP.default,UP.default,FP.default,LP.default,VP.default,HP.default];return t?e.push(AP.default,DP.default):e.push(CP.default,MP.default),e.push(qP.default),e}nd.default=YP});var A_=w(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var he=U(),QP={message:({schemaCode:t})=>(0,he.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,he._)`{format: ${t}}`},eT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:QP,code(t,e){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=t,{opts:c,errSchemaPath:u,schemaEnv:l,self:d}=a;if(!c.validateFormats)return;o?p():f();function p(){let m=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),_=r.const("fDef",(0,he._)`${m}[${i}]`),y=r.let("fType"),$=r.let("format");r.if((0,he._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>r.assign(y,(0,he._)`${_}.type || "string"`).assign($,(0,he._)`${_}.validate`),()=>r.assign(y,(0,he._)`"string"`).assign($,_)),t.fail$data((0,he.or)(j(),E()));function j(){return c.strictSchema===!1?he.nil:(0,he._)`${i} && !${$}`}function E(){let Z=l.$async?(0,he._)`(${_}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,he._)`${$}(${n})`,S=(0,he._)`(typeof ${$} == "function" ? ${Z} : ${$}.test(${n}))`;return(0,he._)`${$} && ${$} !== true && ${y} === ${e} && !${S}`}}function f(){let m=d.formats[s];if(!m){j();return}if(m===!0)return;let[_,y,$]=E(m);_===e&&t.pass(Z());function j(){if(c.strictSchema===!1){d.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${u}"`}}function E(S){let qe=S instanceof RegExp?(0,he.regexpCode)(S):c.code.formats?(0,he._)`${c.code.formats}${(0,he.getProperty)(s)}`:void 0,He=r.scopeValue("formats",{key:s,ref:S,code:qe});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,he._)`${He}.validate`]:["string",S,He]}function Z(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,he._)`await ${$}(${n})`}return typeof y=="function"?(0,he._)`${$}(${n})`:(0,he._)`${$}.test(${n})`}}}};od.default=eT});var M_=w(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var tT=A_(),rT=[tT.default];sd.default=rT});var D_=w(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.contentVocabulary=dn.metadataVocabulary=void 0;dn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var L_=w(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var nT=Kg(),oT=c_(),sT=C_(),iT=M_(),q_=D_(),aT=[nT.default,oT.default,(0,sT.default)(),iT.default,q_.metadataVocabulary,q_.contentVocabulary];id.default=aT});var F_=w(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.DiscrError=void 0;var U_;(function(t){t.Tag="tag",t.Mapping="mapping"})(U_||(pi.DiscrError=U_={}))});var H_=w(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var pn=U(),ad=F_(),V_=Gs(),cT=ho(),uT=W(),lT={message:({params:{discrError:t,tagName:e}})=>t===ad.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,pn._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},dT={keyword:"discriminator",type:"object",schemaType:"object",error:lT,code(t){let{gen:e,data:r,schema:n,parentSchema:o,it:s}=t,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),u=e.const("tag",(0,pn._)`${r}${(0,pn.getProperty)(a)}`);e.if((0,pn._)`typeof ${u} == "string"`,()=>l(),()=>t.error(!1,{discrError:ad.DiscrError.Tag,tag:u,tagName:a})),t.ok(c);function l(){let f=p();e.if(!1);for(let m in f)e.elseIf((0,pn._)`${u} === ${m}`),e.assign(c,d(f[m]));e.else(),t.error(!1,{discrError:ad.DiscrError.Mapping,tag:u,tagName:a}),e.endIf()}function d(f){let m=e.name("valid"),_=t.subschema({keyword:"oneOf",schemaProp:f},m);return t.mergeEvaluated(_,pn.Name),m}function p(){var f;let m={},_=$(o),y=!0;for(let Z=0;Z{pT.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var ld=w((ue,ud)=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.MissingRefError=ue.ValidationError=ue.CodeGen=ue.Name=ue.nil=ue.stringify=ue.str=ue._=ue.KeywordCxt=ue.Ajv=void 0;var fT=Ug(),mT=L_(),hT=H_(),B_=J_(),gT=["/properties"],fi="http://json-schema.org/draft-07/schema",fn=class extends fT.default{_addVocabularies(){super._addVocabularies(),mT.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(hT.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(B_,gT):B_;this.addMetaSchema(e,fi,!1),this.refs["http://json-schema.org/schema"]=fi}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fi)?fi:void 0)}};ue.Ajv=fn;ud.exports=ue=fn;ud.exports.Ajv=fn;Object.defineProperty(ue,"__esModule",{value:!0});ue.default=fn;var _T=mo();Object.defineProperty(ue,"KeywordCxt",{enumerable:!0,get:function(){return _T.KeywordCxt}});var mn=U();Object.defineProperty(ue,"_",{enumerable:!0,get:function(){return mn._}});Object.defineProperty(ue,"str",{enumerable:!0,get:function(){return mn.str}});Object.defineProperty(ue,"stringify",{enumerable:!0,get:function(){return mn.stringify}});Object.defineProperty(ue,"nil",{enumerable:!0,get:function(){return mn.nil}});Object.defineProperty(ue,"Name",{enumerable:!0,get:function(){return mn.Name}});Object.defineProperty(ue,"CodeGen",{enumerable:!0,get:function(){return mn.CodeGen}});var yT=Bs();Object.defineProperty(ue,"ValidationError",{enumerable:!0,get:function(){return yT.default}});var vT=ho();Object.defineProperty(ue,"MissingRefError",{enumerable:!0,get:function(){return vT.default}})});var ty=w(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.formatNames=vt.fastFormats=vt.fullFormats=void 0;function yt(t,e){return{validate:t,compare:e}}vt.fullFormats={date:yt(X_,md),time:yt(pd(!0),hd),"date-time":yt(K_(!0),Q_),"iso-time":yt(pd(),Y_),"iso-date-time":yt(K_(),ey),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:zT,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:OT,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:ST,int32:{type:"number",validate:ET},int64:{type:"number",validate:RT},float:{type:"number",validate:W_},double:{type:"number",validate:W_},password:!0,binary:!0};vt.fastFormats={...vt.fullFormats,date:yt(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,md),time:yt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,hd),"date-time":yt(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Q_),"iso-time":yt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Y_),"iso-date-time":yt(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ey),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};vt.formatNames=Object.keys(vt.fullFormats);function bT(t){return t%4===0&&(t%100!==0||t%400===0)}var xT=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,$T=[0,31,28,31,30,31,30,31,31,30,31,30,31];function X_(t){let e=xT.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],o=+e[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&bT(r)?29:$T[n])}function md(t,e){if(t&&e)return t>e?1:t23||l>59||t&&!a)return!1;if(o<=23&&s<=59&&i<60)return!0;let d=s-l*c,p=o-u*c-(d<0?1:0);return(p===23||p===-1)&&(d===59||d===-1)&&i<61}}function hd(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(r&&n)return r-n}function Y_(t,e){if(!(t&&e))return;let r=dd.exec(t),n=dd.exec(e);if(r&&n)return t=r[1]+r[2]+r[3],e=n[1]+n[2]+n[3],t>e?1:t=PT}function RT(t){return Number.isInteger(t)}function W_(){return!0}var IT=/[^\\]\\Z/;function OT(t){if(IT.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var ry=w(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.formatLimitDefinition=void 0;var ZT=ld(),lt=U(),Wt=lt.operators,mi={formatMaximum:{okStr:"<=",ok:Wt.LTE,fail:Wt.GT},formatMinimum:{okStr:">=",ok:Wt.GTE,fail:Wt.LT},formatExclusiveMaximum:{okStr:"<",ok:Wt.LT,fail:Wt.GTE},formatExclusiveMinimum:{okStr:">",ok:Wt.GT,fail:Wt.LTE}},NT={message:({keyword:t,schemaCode:e})=>(0,lt.str)`should be ${mi[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,lt._)`{comparison: ${mi[t].okStr}, limit: ${e}}`};hn.formatLimitDefinition={keyword:Object.keys(mi),type:"string",schemaType:"string",$data:!0,error:NT,code(t){let{gen:e,data:r,schemaCode:n,keyword:o,it:s}=t,{opts:i,self:a}=s;if(!i.validateFormats)return;let c=new ZT.KeywordCxt(s,a.RULES.all.format.definition,"format");c.$data?u():l();function u(){let p=e.scopeValue("formats",{ref:a.formats,code:i.code.formats}),f=e.const("fmt",(0,lt._)`${p}[${c.schemaCode}]`);t.fail$data((0,lt.or)((0,lt._)`typeof ${f} != "object"`,(0,lt._)`${f} instanceof RegExp`,(0,lt._)`typeof ${f}.compare != "function"`,d(f)))}function l(){let p=c.schema,f=a.formats[p];if(!f||f===!0)return;if(typeof f!="object"||f instanceof RegExp||typeof f.compare!="function")throw new Error(`"${o}": format "${p}" does not define "compare" function`);let m=e.scopeValue("formats",{key:p,ref:f,code:i.code.formats?(0,lt._)`${i.code.formats}${(0,lt.getProperty)(p)}`:void 0});t.fail$data(d(m))}function d(p){return(0,lt._)`${p}.compare(${r}, ${n}) ${mi[o].fail} 0`}},dependencies:["format"]};var jT=t=>(t.addKeyword(hn.formatLimitDefinition),t);hn.default=jT});var iy=w((Eo,sy)=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var gn=ty(),CT=ry(),gd=U(),ny=new gd.Name("fullFormats"),AT=new gd.Name("fastFormats"),_d=(t,e={keywords:!0})=>{if(Array.isArray(e))return oy(t,e,gn.fullFormats,ny),t;let[r,n]=e.mode==="fast"?[gn.fastFormats,AT]:[gn.fullFormats,ny],o=e.formats||gn.formatNames;return oy(t,o,r,n),e.keywords&&(0,CT.default)(t),t};_d.get=(t,e="full")=>{let n=(e==="fast"?gn.fastFormats:gn.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function oy(t,e,r,n){var o,s;(o=(s=t.opts.code).formats)!==null&&o!==void 0||(s.formats=(0,gd._)`require("ajv-formats/dist/formats").${n}`);for(let i of e)t.addFormat(i,r[i])}sy.exports=Eo=_d;Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=_d});var Dr={};zi(Dr,{BRAND:()=>Qy,DIRTY:()=>Yt,EMPTY_PATH:()=>Iy,INVALID:()=>C,NEVER:()=>Cv,OK:()=>ke,ParseStatus:()=>ve,Schema:()=>L,ZodAny:()=>Zt,ZodArray:()=>wt,ZodBigInt:()=>er,ZodBoolean:()=>tr,ZodBranded:()=>bn,ZodCatch:()=>pr,ZodDate:()=>rr,ZodDefault:()=>dr,ZodDiscriminatedUnion:()=>Zo,ZodEffects:()=>Ke,ZodEnum:()=>ur,ZodError:()=>Ze,ZodFirstPartyTypeKind:()=>b,ZodFunction:()=>jo,ZodIntersection:()=>ir,ZodIssueCode:()=>v,ZodLazy:()=>ar,ZodLiteral:()=>cr,ZodMap:()=>Cr,ZodNaN:()=>Mr,ZodNativeEnum:()=>lr,ZodNever:()=>nt,ZodNull:()=>or,ZodNullable:()=>ft,ZodNumber:()=>Qt,ZodObject:()=>Ne,ZodOptional:()=>Je,ZodParsedType:()=>k,ZodPipeline:()=>xn,ZodPromise:()=>Nt,ZodReadonly:()=>fr,ZodRecord:()=>No,ZodSchema:()=>L,ZodSet:()=>Ar,ZodString:()=>Ot,ZodSymbol:()=>Nr,ZodTransformer:()=>Ke,ZodTuple:()=>pt,ZodType:()=>L,ZodUndefined:()=>nr,ZodUnion:()=>sr,ZodUnknown:()=>$t,ZodVoid:()=>jr,addIssueToContext:()=>x,any:()=>cv,array:()=>pv,bigint:()=>nv,boolean:()=>jd,coerce:()=>jv,custom:()=>Od,date:()=>ov,datetimeRegex:()=>Rd,defaultErrorMap:()=>bt,discriminatedUnion:()=>hv,effect:()=>Pv,enum:()=>kv,function:()=>xv,getErrorMap:()=>Ir,getParsedType:()=>dt,instanceof:()=>tv,intersection:()=>gv,isAborted:()=>Io,isAsync:()=>Or,isDirty:()=>Oo,isValid:()=>It,late:()=>ev,lazy:()=>$v,literal:()=>wv,makeIssue:()=>vn,map:()=>vv,nan:()=>rv,nativeEnum:()=>zv,never:()=>lv,null:()=>av,nullable:()=>Ev,number:()=>Nd,object:()=>Ri,objectUtil:()=>Pi,oboolean:()=>Nv,onumber:()=>Zv,optional:()=>Tv,ostring:()=>Ov,pipeline:()=>Iv,preprocess:()=>Rv,promise:()=>Sv,quotelessJson:()=>Ty,record:()=>yv,set:()=>bv,setErrorMap:()=>Ry,strictObject:()=>fv,string:()=>Zd,symbol:()=>sv,transformer:()=>Pv,tuple:()=>_v,undefined:()=>iv,union:()=>mv,unknown:()=>uv,util:()=>H,void:()=>dv});var H;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function r(o){throw new Error}t.assertNever=r,t.arrayToEnum=o=>{let s={};for(let i of o)s[i]=i;return s},t.getValidEnumValues=o=>{let s=t.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(let a of s)i[a]=o[a];return t.objectValues(i)},t.objectValues=o=>t.objectKeys(o).map(function(s){return o[s]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let s=[];for(let i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},t.find=(o,s)=>{for(let i of o)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(H||(H={}));var Pi;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Pi||(Pi={}));var k=H.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dt=t=>{switch(typeof t){case"undefined":return k.undefined;case"string":return k.string;case"number":return Number.isNaN(t)?k.nan:k.number;case"boolean":return k.boolean;case"function":return k.function;case"bigint":return k.bigint;case"symbol":return k.symbol;case"object":return Array.isArray(t)?k.array:t===null?k.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?k.promise:typeof Map<"u"&&t instanceof Map?k.map:typeof Set<"u"&&t instanceof Set?k.set:typeof Date<"u"&&t instanceof Date?k.date:k.object;default:return k.unknown}};var v=H.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ty=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Ze=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},o=s=>{for(let i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let a=n,c=0;for(;cr.message){let r=Object.create(null),n=[];for(let o of this.issues)if(o.path.length>0){let s=o.path[0];r[s]=r[s]||[],r[s].push(e(o))}else n.push(e(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Ze.create=t=>new Ze(t);var Ey=(t,e)=>{let r;switch(t.code){case v.invalid_type:t.received===k.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case v.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,H.jsonStringifyReplacer)}`;break;case v.unrecognized_keys:r=`Unrecognized key(s) in object: ${H.joinValues(t.keys,", ")}`;break;case v.invalid_union:r="Invalid input";break;case v.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${H.joinValues(t.options)}`;break;case v.invalid_enum_value:r=`Invalid enum value. Expected ${H.joinValues(t.options)}, received '${t.received}'`;break;case v.invalid_arguments:r="Invalid function arguments";break;case v.invalid_return_type:r="Invalid function return type";break;case v.invalid_date:r="Invalid date";break;case v.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:H.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case v.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case v.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case v.custom:r="Invalid input";break;case v.invalid_intersection_types:r="Intersection results could not be merged";break;case v.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case v.not_finite:r="Number must be finite";break;default:r=e.defaultError,H.assertNever(t)}return{message:r}},bt=Ey;var zd=bt;function Ry(t){zd=t}function Ir(){return zd}var vn=t=>{let{data:e,path:r,errorMaps:n,issueData:o}=t,s=[...r,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(i,{data:e,defaultError:a}).message;return{...o,path:s,message:a}},Iy=[];function x(t,e){let r=Ir(),n=vn({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===bt?void 0:bt].filter(o=>!!o)});t.common.issues.push(n)}var ve=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let o of r){if(o.status==="aborted")return C;o.status==="dirty"&&e.dirty(),n.push(o.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let o of r){let s=await o.key,i=await o.value;n.push({key:s,value:i})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let o of r){let{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return C;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(n[s.value]=i.value)}return{status:e.value,value:n}}},C=Object.freeze({status:"aborted"}),Yt=t=>({status:"dirty",value:t}),ke=t=>({status:"valid",value:t}),Io=t=>t.status==="aborted",Oo=t=>t.status==="dirty",It=t=>t.status==="valid",Or=t=>typeof Promise<"u"&&t instanceof Promise;var P;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(P||(P={}));var Be=class{constructor(e,r,n,o){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Sd=(t,e)=>{if(It(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Ze(t.common.issues);return this._error=r,this._error}}};function D(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:o}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(i,a)=>{let{message:c}=t;return i.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:o}}var L=class{get description(){return this._def.description}_getType(e){return dt(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:dt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ve,ctx:{common:e.parent.common,data:e.data,parsedType:dt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Or(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:dt(e)},o=this._parseSync({data:e,path:n.path,parent:n});return Sd(n,o)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:dt(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return It(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>It(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:dt(e)},o=this._parse({data:e,path:n.path,parent:n}),s=await(Or(o)?o:Promise.resolve(o));return Sd(n,s)}refine(e,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{let i=e(o),a=()=>s.addIssue({code:v.custom,...n(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,o)=>e(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(e){return new Ke({schema:this,typeName:b.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Je.create(this,this._def)}nullable(){return ft.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wt.create(this)}promise(){return Nt.create(this,this._def)}or(e){return sr.create([this,e],this._def)}and(e){return ir.create(this,e,this._def)}transform(e){return new Ke({...D(this._def),schema:this,typeName:b.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new dr({...D(this._def),innerType:this,defaultValue:r,typeName:b.ZodDefault})}brand(){return new bn({typeName:b.ZodBranded,type:this,...D(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new pr({...D(this._def),innerType:this,catchValue:r,typeName:b.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return xn.create(this,e)}readonly(){return fr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Oy=/^c[^\s-]{8,}$/i,Zy=/^[0-9a-z]+$/,Ny=/^[0-9A-HJKMNP-TV-Z]{26}$/i,jy=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Cy=/^[a-z0-9_-]{21}$/i,Ay=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,My=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Dy=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,qy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ti,Ly=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Uy=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Fy=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Vy=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Hy=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Jy=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Td="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",By=new RegExp(`^${Td}$`);function Ed(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function Ky(t){return new RegExp(`^${Ed(t)}$`)}function Rd(t){let e=`${Td}T${Ed(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Gy(t,e){return!!((e==="v4"||!e)&&Ly.test(t)||(e==="v6"||!e)&&Fy.test(t))}function Wy(t,e){if(!Ay.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function Xy(t,e){return!!((e==="v4"||!e)&&Uy.test(t)||(e==="v6"||!e)&&Vy.test(t))}var Ot=class t extends L{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==k.string){let s=this._getOrReturnCtx(e);return x(s,{code:v.invalid_type,expected:k.string,received:s.parsedType}),C}let n=new ve,o;for(let s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(o=this._getOrReturnCtx(e,o),x(o,{code:v.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let i=e.data.length>s.value,a=e.data.lengthe.test(o),{validation:r,code:v.invalid_string,...P.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...P.errToObj(e)})}url(e){return this._addCheck({kind:"url",...P.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...P.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...P.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...P.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...P.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...P.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...P.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...P.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...P.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...P.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...P.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...P.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...P.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...P.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...P.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...P.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...P.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...P.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...P.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...P.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...P.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...P.errToObj(r)})}nonempty(e){return this.min(1,P.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Ot({checks:[],typeName:b.ZodString,coerce:t?.coerce??!1,...D(t)});function Yy(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,o=r>n?r:n,s=Number.parseInt(t.toFixed(o).replace(".","")),i=Number.parseInt(e.toFixed(o).replace(".",""));return s%i/10**o}var Qt=class t extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==k.number){let s=this._getOrReturnCtx(e);return x(s,{code:v.invalid_type,expected:k.number,received:s.parsedType}),C}let n,o=new ve;for(let s of this._def.checks)s.kind==="int"?H.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{code:v.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),x(n,{code:v.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?Yy(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),x(n,{code:v.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{code:v.not_finite,message:s.message}),o.dirty()):H.assertNever(s);return{status:o.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,P.toString(r))}gt(e,r){return this.setLimit("min",e,!1,P.toString(r))}lte(e,r){return this.setLimit("max",e,!0,P.toString(r))}lt(e,r){return this.setLimit("max",e,!1,P.toString(r))}setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:P.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:P.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:P.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:P.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:P.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:P.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:P.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&H.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.valuenew Qt({checks:[],typeName:b.ZodNumber,coerce:t?.coerce||!1,...D(t)});var er=class t extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==k.bigint)return this._getInvalidInput(e);let n,o=new ve;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),x(n,{code:v.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),x(n,{code:v.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):H.assertNever(s);return{status:o.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return x(r,{code:v.invalid_type,expected:k.bigint,received:r.parsedType}),C}gte(e,r){return this.setLimit("min",e,!0,P.toString(r))}gt(e,r){return this.setLimit("min",e,!1,P.toString(r))}lte(e,r){return this.setLimit("max",e,!0,P.toString(r))}lt(e,r){return this.setLimit("max",e,!1,P.toString(r))}setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:P.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:P.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:P.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew er({checks:[],typeName:b.ZodBigInt,coerce:t?.coerce??!1,...D(t)});var tr=class extends L{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==k.boolean){let n=this._getOrReturnCtx(e);return x(n,{code:v.invalid_type,expected:k.boolean,received:n.parsedType}),C}return ke(e.data)}};tr.create=t=>new tr({typeName:b.ZodBoolean,coerce:t?.coerce||!1,...D(t)});var rr=class t extends L{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==k.date){let s=this._getOrReturnCtx(e);return x(s,{code:v.invalid_type,expected:k.date,received:s.parsedType}),C}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return x(s,{code:v.invalid_date}),C}let n=new ve,o;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(o=this._getOrReturnCtx(e,o),x(o,{code:v.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):H.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:P.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:P.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew rr({checks:[],coerce:t?.coerce||!1,typeName:b.ZodDate,...D(t)});var Nr=class extends L{_parse(e){if(this._getType(e)!==k.symbol){let n=this._getOrReturnCtx(e);return x(n,{code:v.invalid_type,expected:k.symbol,received:n.parsedType}),C}return ke(e.data)}};Nr.create=t=>new Nr({typeName:b.ZodSymbol,...D(t)});var nr=class extends L{_parse(e){if(this._getType(e)!==k.undefined){let n=this._getOrReturnCtx(e);return x(n,{code:v.invalid_type,expected:k.undefined,received:n.parsedType}),C}return ke(e.data)}};nr.create=t=>new nr({typeName:b.ZodUndefined,...D(t)});var or=class extends L{_parse(e){if(this._getType(e)!==k.null){let n=this._getOrReturnCtx(e);return x(n,{code:v.invalid_type,expected:k.null,received:n.parsedType}),C}return ke(e.data)}};or.create=t=>new or({typeName:b.ZodNull,...D(t)});var Zt=class extends L{constructor(){super(...arguments),this._any=!0}_parse(e){return ke(e.data)}};Zt.create=t=>new Zt({typeName:b.ZodAny,...D(t)});var $t=class extends L{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ke(e.data)}};$t.create=t=>new $t({typeName:b.ZodUnknown,...D(t)});var nt=class extends L{_parse(e){let r=this._getOrReturnCtx(e);return x(r,{code:v.invalid_type,expected:k.never,received:r.parsedType}),C}};nt.create=t=>new nt({typeName:b.ZodNever,...D(t)});var jr=class extends L{_parse(e){if(this._getType(e)!==k.undefined){let n=this._getOrReturnCtx(e);return x(n,{code:v.invalid_type,expected:k.void,received:n.parsedType}),C}return ke(e.data)}};jr.create=t=>new jr({typeName:b.ZodVoid,...D(t)});var wt=class t extends L{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),o=this._def;if(r.parsedType!==k.array)return x(r,{code:v.invalid_type,expected:k.array,received:r.parsedType}),C;if(o.exactLength!==null){let i=r.data.length>o.exactLength.value,a=r.data.lengtho.maxLength.value&&(x(r,{code:v.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,a)=>o.type._parseAsync(new Be(r,i,r.path,a)))).then(i=>ve.mergeArray(n,i));let s=[...r.data].map((i,a)=>o.type._parseSync(new Be(r,i,r.path,a)));return ve.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:P.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:P.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:P.toString(r)}})}nonempty(e){return this.min(1,e)}};wt.create=(t,e)=>new wt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:b.ZodArray,...D(e)});function Zr(t){if(t instanceof Ne){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Je.create(Zr(n))}return new Ne({...t._def,shape:()=>e})}else return t instanceof wt?new wt({...t._def,type:Zr(t.element)}):t instanceof Je?Je.create(Zr(t.unwrap())):t instanceof ft?ft.create(Zr(t.unwrap())):t instanceof pt?pt.create(t.items.map(e=>Zr(e))):t}var Ne=class t extends L{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=H.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==k.object){let u=this._getOrReturnCtx(e);return x(u,{code:v.invalid_type,expected:k.object,received:u.parsedType}),C}let{status:n,ctx:o}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof nt&&this._def.unknownKeys==="strip"))for(let u in o.data)i.includes(u)||a.push(u);let c=[];for(let u of i){let l=s[u],d=o.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Be(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof nt){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:o.data[l]}});else if(u==="strict")a.length>0&&(x(o,{code:v.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let d=o.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Be(o,d,o.path,l)),alwaysSet:l in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let d=await l.key,p=await l.value;u.push({key:d,value:p,alwaysSet:l.alwaysSet})}return u}).then(u=>ve.mergeObjectSync(n,u)):ve.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return P.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:P.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:b.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of H.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of H.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return Zr(this)}partial(e){let r={};for(let n of H.objectKeys(this.shape)){let o=this.shape[n];e&&!e[n]?r[n]=o:r[n]=o.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of H.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Je;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return Id(H.objectKeys(this.shape))}};Ne.create=(t,e)=>new Ne({shape:()=>t,unknownKeys:"strip",catchall:nt.create(),typeName:b.ZodObject,...D(e)});Ne.strictCreate=(t,e)=>new Ne({shape:()=>t,unknownKeys:"strict",catchall:nt.create(),typeName:b.ZodObject,...D(e)});Ne.lazycreate=(t,e)=>new Ne({shape:t,unknownKeys:"strip",catchall:nt.create(),typeName:b.ZodObject,...D(e)});var sr=class extends L{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function o(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let i=s.map(a=>new Ze(a.ctx.common.issues));return x(r,{code:v.invalid_union,unionErrors:i}),C}if(r.common.async)return Promise.all(n.map(async s=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(o);{let s,i=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(c=>new Ze(c));return x(r,{code:v.invalid_union,unionErrors:a}),C}}get options(){return this._def.options}};sr.create=(t,e)=>new sr({options:t,typeName:b.ZodUnion,...D(e)});var xt=t=>t instanceof ar?xt(t.schema):t instanceof Ke?xt(t.innerType()):t instanceof cr?[t.value]:t instanceof ur?t.options:t instanceof lr?H.objectValues(t.enum):t instanceof dr?xt(t._def.innerType):t instanceof nr?[void 0]:t instanceof or?[null]:t instanceof Je?[void 0,...xt(t.unwrap())]:t instanceof ft?[null,...xt(t.unwrap())]:t instanceof bn||t instanceof fr?xt(t.unwrap()):t instanceof pr?xt(t._def.innerType):[],Zo=class t extends L{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==k.object)return x(r,{code:v.invalid_type,expected:k.object,received:r.parsedType}),C;let n=this.discriminator,o=r.data[n],s=this.optionsMap.get(o);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(x(r,{code:v.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let o=new Map;for(let s of r){let i=xt(s.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of i){if(o.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);o.set(a,s)}}return new t({typeName:b.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:o,...D(n)})}};function Ei(t,e){let r=dt(t),n=dt(e);if(t===e)return{valid:!0,data:t};if(r===k.object&&n===k.object){let o=H.objectKeys(e),s=H.objectKeys(t).filter(a=>o.indexOf(a)!==-1),i={...t,...e};for(let a of s){let c=Ei(t[a],e[a]);if(!c.valid)return{valid:!1};i[a]=c.data}return{valid:!0,data:i}}else if(r===k.array&&n===k.array){if(t.length!==e.length)return{valid:!1};let o=[];for(let s=0;s{if(Io(s)||Io(i))return C;let a=Ei(s.value,i.value);return a.valid?((Oo(s)||Oo(i))&&r.dirty(),{status:r.value,value:a.data}):(x(n,{code:v.invalid_intersection_types}),C)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ir.create=(t,e,r)=>new ir({left:t,right:e,typeName:b.ZodIntersection,...D(r)});var pt=class t extends L{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==k.array)return x(n,{code:v.invalid_type,expected:k.array,received:n.parsedType}),C;if(n.data.lengththis._def.items.length&&(x(n,{code:v.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((i,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new Be(n,i,n.path,a)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>ve.mergeArray(r,i)):ve.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};pt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pt({items:t,typeName:b.ZodTuple,rest:null,...D(e)})};var No=class t extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==k.object)return x(n,{code:v.invalid_type,expected:k.object,received:n.parsedType}),C;let o=[],s=this._def.keyType,i=this._def.valueType;for(let a in n.data)o.push({key:s._parse(new Be(n,a,n.path,a)),value:i._parse(new Be(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?ve.mergeObjectAsync(r,o):ve.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof L?new t({keyType:e,valueType:r,typeName:b.ZodRecord,...D(n)}):new t({keyType:Ot.create(),valueType:e,typeName:b.ZodRecord,...D(r)})}},Cr=class extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==k.map)return x(n,{code:v.invalid_type,expected:k.map,received:n.parsedType}),C;let o=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([a,c],u)=>({key:o._parse(new Be(n,a,n.path,[u,"key"])),value:s._parse(new Be(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of i){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return C;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of i){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return C;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};Cr.create=(t,e,r)=>new Cr({valueType:e,keyType:t,typeName:b.ZodMap,...D(r)});var Ar=class t extends L{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==k.set)return x(n,{code:v.invalid_type,expected:k.set,received:n.parsedType}),C;let o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(x(n,{code:v.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let s=this._def.valueType;function i(c){let u=new Set;for(let l of c){if(l.status==="aborted")return C;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new Be(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>i(c)):i(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:P.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:P.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Ar.create=(t,e)=>new Ar({valueType:t,minSize:null,maxSize:null,typeName:b.ZodSet,...D(e)});var jo=class t extends L{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==k.function)return x(r,{code:v.invalid_type,expected:k.function,received:r.parsedType}),C;function n(a,c){return vn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ir(),bt].filter(u=>!!u),issueData:{code:v.invalid_arguments,argumentsError:c}})}function o(a,c){return vn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ir(),bt].filter(u=>!!u),issueData:{code:v.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Nt){let a=this;return ke(async function(...c){let u=new Ze([]),l=await a._def.args.parseAsync(c,s).catch(f=>{throw u.addIssue(n(c,f)),u}),d=await Reflect.apply(i,this,l);return await a._def.returns._def.type.parseAsync(d,s).catch(f=>{throw u.addIssue(o(d,f)),u})})}else{let a=this;return ke(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new Ze([n(c,u.error)]);let l=Reflect.apply(i,this,u.data),d=a._def.returns.safeParse(l,s);if(!d.success)throw new Ze([o(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:pt.create(e).rest($t.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||pt.create([]).rest($t.create()),returns:r||$t.create(),typeName:b.ZodFunction,...D(n)})}},ar=class extends L{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};ar.create=(t,e)=>new ar({getter:t,typeName:b.ZodLazy,...D(e)});var cr=class extends L{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return x(r,{received:r.data,code:v.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}};cr.create=(t,e)=>new cr({value:t,typeName:b.ZodLiteral,...D(e)});function Id(t,e){return new ur({values:t,typeName:b.ZodEnum,...D(e)})}var ur=class t extends L{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return x(r,{expected:H.joinValues(n),received:r.parsedType,code:v.invalid_type}),C}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return x(r,{received:r.data,code:v.invalid_enum_value,options:n}),C}return ke(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};ur.create=Id;var lr=class extends L{_parse(e){let r=H.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==k.string&&n.parsedType!==k.number){let o=H.objectValues(r);return x(n,{expected:H.joinValues(o),received:n.parsedType,code:v.invalid_type}),C}if(this._cache||(this._cache=new Set(H.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let o=H.objectValues(r);return x(n,{received:n.data,code:v.invalid_enum_value,options:o}),C}return ke(e.data)}get enum(){return this._def.values}};lr.create=(t,e)=>new lr({values:t,typeName:b.ZodNativeEnum,...D(e)});var Nt=class extends L{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==k.promise&&r.common.async===!1)return x(r,{code:v.invalid_type,expected:k.promise,received:r.parsedType}),C;let n=r.parsedType===k.promise?r.data:Promise.resolve(r.data);return ke(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Nt.create=(t,e)=>new Nt({type:t,typeName:b.ZodPromise,...D(e)});var Ke=class extends L{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===b.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),o=this._def.effect||null,s={addIssue:i=>{x(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){let i=o.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async a=>{if(r.value==="aborted")return C;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?C:c.status==="dirty"?Yt(c.value):r.value==="dirty"?Yt(c.value):c});{if(r.value==="aborted")return C;let a=this._def.schema._parseSync({data:i,path:n.path,parent:n});return a.status==="aborted"?C:a.status==="dirty"?Yt(a.value):r.value==="dirty"?Yt(a.value):a}}if(o.type==="refinement"){let i=a=>{let c=o.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?C:(a.status==="dirty"&&r.dirty(),i(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?C:(a.status==="dirty"&&r.dirty(),i(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!It(i))return C;let a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>It(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:r.value,value:a})):C);H.assertNever(o)}};Ke.create=(t,e,r)=>new Ke({schema:t,typeName:b.ZodEffects,effect:e,...D(r)});Ke.createWithPreprocess=(t,e,r)=>new Ke({schema:e,effect:{type:"preprocess",transform:t},typeName:b.ZodEffects,...D(r)});var Je=class extends L{_parse(e){return this._getType(e)===k.undefined?ke(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Je.create=(t,e)=>new Je({innerType:t,typeName:b.ZodOptional,...D(e)});var ft=class extends L{_parse(e){return this._getType(e)===k.null?ke(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ft.create=(t,e)=>new ft({innerType:t,typeName:b.ZodNullable,...D(e)});var dr=class extends L{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===k.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};dr.create=(t,e)=>new dr({innerType:t,typeName:b.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...D(e)});var pr=class extends L{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Or(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ze(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ze(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};pr.create=(t,e)=>new pr({innerType:t,typeName:b.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...D(e)});var Mr=class extends L{_parse(e){if(this._getType(e)!==k.nan){let n=this._getOrReturnCtx(e);return x(n,{code:v.invalid_type,expected:k.nan,received:n.parsedType}),C}return{status:"valid",value:e.data}}};Mr.create=t=>new Mr({typeName:b.ZodNaN,...D(t)});var Qy=Symbol("zod_brand"),bn=class extends L{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},xn=class t extends L{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?C:s.status==="dirty"?(r.dirty(),Yt(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?C:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:b.ZodPipeline})}},fr=class extends L{_parse(e){let r=this._def.innerType._parse(e),n=o=>(It(o)&&(o.value=Object.freeze(o.value)),o);return Or(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};fr.create=(t,e)=>new fr({innerType:t,typeName:b.ZodReadonly,...D(e)});function Pd(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function Od(t,e={},r){return t?Zt.create().superRefine((n,o)=>{let s=t(n);if(s instanceof Promise)return s.then(i=>{if(!i){let a=Pd(e,n),c=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!s){let i=Pd(e,n),a=i.fatal??r??!0;o.addIssue({code:"custom",...i,fatal:a})}}):Zt.create()}var ev={object:Ne.lazycreate},b;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(b||(b={}));var tv=(t,e={message:`Input not instance of ${t.name}`})=>Od(r=>r instanceof t,e),Zd=Ot.create,Nd=Qt.create,rv=Mr.create,nv=er.create,jd=tr.create,ov=rr.create,sv=Nr.create,iv=nr.create,av=or.create,cv=Zt.create,uv=$t.create,lv=nt.create,dv=jr.create,pv=wt.create,Ri=Ne.create,fv=Ne.strictCreate,mv=sr.create,hv=Zo.create,gv=ir.create,_v=pt.create,yv=No.create,vv=Cr.create,bv=Ar.create,xv=jo.create,$v=ar.create,wv=cr.create,kv=ur.create,zv=lr.create,Sv=Nt.create,Pv=Ke.create,Tv=Je.create,Ev=ft.create,Rv=Ke.createWithPreprocess,Iv=xn.create,Ov=()=>Zd().optional(),Zv=()=>Nd().optional(),Nv=()=>jd().optional(),jv={string:(t=>Ot.create({...t,coerce:!0})),number:(t=>Qt.create({...t,coerce:!0})),boolean:(t=>tr.create({...t,coerce:!0})),bigint:(t=>er.create({...t,coerce:!0})),date:(t=>rr.create({...t,coerce:!0}))};var Cv=C;var Cd;function g(t,e,r){function n(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,c);let u=i.prototype,l=Object.keys(u);for(let d=0;dr?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(t)}),Object.defineProperty(i,"name",{value:t}),i}var yE=Symbol("zod_brand"),mt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},qr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Cd=globalThis).__zod_globalConfig??(Cd.__zod_globalConfig={});var Lr=globalThis.__zod_globalConfig;function Le(t){return t&&Object.assign(Lr,t),Lr}var J={};zi(J,{BIGINT_FORMAT_RANGES:()=>Dd,Class:()=>Oi,NUMBER_FORMAT_RANGES:()=>Di,aborted:()=>At,allowsEval:()=>ji,assert:()=>Uv,assertEqual:()=>Mv,assertIs:()=>qv,assertNever:()=>Lv,assertNotEqual:()=>Dv,assignProp:()=>jt,base64ToUint8Array:()=>Bd,base64urlToUint8Array:()=>Qv,cached:()=>Fr,captureStackTrace:()=>Mo,cleanEnum:()=>Yv,cleanRegex:()=>zn,clone:()=>Ue,cloneDef:()=>Vv,createTransparentProxy:()=>Wv,defineLazy:()=>Q,esc:()=>Ao,escapeRegex:()=>zt,explicitlyAborted:()=>qi,extend:()=>Ud,finalizeIssue:()=>Ge,floatSafeRemainder:()=>Zi,getElementAtPath:()=>Hv,getEnumValues:()=>wn,getLengthableOrigin:()=>Sn,getParsedType:()=>Gv,getSizableOrigin:()=>Jd,hexToUint8Array:()=>tb,isObject:()=>mr,isPlainObject:()=>Ct,issue:()=>Vr,joinValues:()=>Co,jsonStringifyReplacer:()=>Ur,merge:()=>Xv,mergeDefs:()=>kt,normalizeParams:()=>N,nullish:()=>kn,numKeys:()=>Kv,objectClone:()=>Fv,omit:()=>Ld,optionalKeys:()=>Mi,parsedType:()=>Li,partial:()=>Vd,pick:()=>qd,prefixIssues:()=>St,primitiveTypes:()=>Md,promiseAllObject:()=>Jv,propertyKeyTypes:()=>Ai,randomString:()=>Bv,required:()=>Hd,safeExtend:()=>Fd,shallowClone:()=>Ci,slugify:()=>Ni,stringifyPrimitive:()=>Do,uint8ArrayToBase64:()=>Kd,uint8ArrayToBase64url:()=>eb,uint8ArrayToHex:()=>rb,unwrapMessage:()=>$n});function Mv(t){return t}function Dv(t){return t}function qv(t){}function Lv(t){throw new Error("Unexpected value in exhaustive check")}function Uv(t){}function wn(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,o])=>e.indexOf(+n)===-1).map(([n,o])=>o)}function Co(t,e="|"){return t.map(r=>Do(r)).join(e)}function Ur(t,e){return typeof e=="bigint"?e.toString():e}function Fr(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function kn(t){return t==null}function zn(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Zi(t,e){let r=t/e,n=Math.round(r),o=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-n)r?.[n],t):t}function Jv(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(r).then(n=>{let o={};for(let s=0;s{};function mr(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var ji=Fr(()=>{if(Lr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Ct(t){if(mr(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(mr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Ci(t){return Ct(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Kv(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var Gv=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Ai=new Set(["string","number","symbol"]),Md=new Set(["string","number","bigint","boolean","symbol","undefined"]);function zt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ue(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(n._zod.parent=t),n}function N(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function Wv(t){let e;return new Proxy({},{get(r,n,o){return e??(e=t()),Reflect.get(e,n,o)},set(r,n,o,s){return e??(e=t()),Reflect.set(e,n,o,s)},has(r,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(r,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(r,n,o){return e??(e=t()),Reflect.defineProperty(e,n,o)}})}function Do(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Mi(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Di={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Dd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function qd(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let s=kt(t._zod.def,{get shape(){let i={};for(let a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(i[a]=r.shape[a])}return jt(this,"shape",i),i},checks:[]});return Ue(t,s)}function Ld(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let s=kt(t._zod.def,{get shape(){let i={...t._zod.def.shape};for(let a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete i[a]}return jt(this,"shape",i),i},checks:[]});return Ue(t,s)}function Ud(t,e){if(!Ct(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let s=t._zod.def.shape;for(let i in e)if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let o=kt(t._zod.def,{get shape(){let s={...t._zod.def.shape,...e};return jt(this,"shape",s),s}});return Ue(t,o)}function Fd(t,e){if(!Ct(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=kt(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return jt(this,"shape",n),n}});return Ue(t,r)}function Xv(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=kt(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return jt(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Ue(t,r)}function Vd(t,e,r){let o=e._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=kt(e._zod.def,{get shape(){let a=e._zod.def.shape,c={...a};if(r)for(let u in r){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=t?new t({type:"optional",innerType:a[u]}):a[u])}else for(let u in a)c[u]=t?new t({type:"optional",innerType:a[u]}):a[u];return jt(this,"shape",c),c},checks:[]});return Ue(e,i)}function Hd(t,e,r){let n=kt(e._zod.def,{get shape(){let o=e._zod.def.shape,s={...o};if(r)for(let i in r){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(s[i]=new t({type:"nonoptional",innerType:o[i]}))}else for(let i in o)s[i]=new t({type:"nonoptional",innerType:o[i]});return jt(this,"shape",s),s}});return Ue(e,n)}function At(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function $n(t){return typeof t=="string"?t:t?.message}function Ge(t,e,r){let n=t.message?t.message:$n(t.inst?._zod.def?.error?.(t))??$n(e?.error?.(t))??$n(r.customError?.(t))??$n(r.localeError?.(t))??"Invalid input",{inst:o,continue:s,input:i,...a}=t;return a.path??(a.path=[]),a.message=n,e?.reportInput&&(a.input=i),a}function Jd(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Sn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Li(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function Vr(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}function Yv(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Bd(t){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var Oi=class{constructor(...e){}};var Gd=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Ur,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},qo=g("$ZodError",Gd),Pn=g("$ZodError",Gd,{Parent:Error});function Wd(t,e=r=>r.message){let r={},n=[];for(let o of t.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(e(o))):n.push(e(o));return{formErrors:n,fieldErrors:r}}function Xd(t,e=r=>r.message){let r={_errors:[]},n=(o,s=[])=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a},[...s,...i.path]));else if(i.code==="invalid_key")n({issues:i.issues},[...s,...i.path]);else if(i.code==="invalid_element")n({issues:i.issues},[...s,...i.path]);else{let a=[...s,...i.path];if(a.length===0)r._errors.push(e(i));else{let c=r,u=0;for(;u(e,r,n,o)=>{let s=n?{...n,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},s);if(i instanceof Promise)throw new mt;if(i.issues.length){let a=new(o?.Err??t)(i.issues.map(c=>Ge(c,s,Le())));throw Mo(a,o?.callee),a}return i.value},Lo=Tn(Pn),En=t=>async(e,r,n,o)=>{let s=n?{...n,async:!0}:{async:!0},i=e._zod.run({value:r,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){let a=new(o?.Err??t)(i.issues.map(c=>Ge(c,s,Le())));throw Mo(a,o?.callee),a}return i.value},Uo=En(Pn),Rn=t=>(e,r,n)=>{let o=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new mt;return s.issues.length?{success:!1,error:new(t??qo)(s.issues.map(i=>Ge(i,o,Le())))}:{success:!0,data:s.value}},hr=Rn(Pn),In=t=>async(e,r,n)=>{let o=n?{...n,async:!0}:{async:!0},s=e._zod.run({value:r,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new t(s.issues.map(i=>Ge(i,o,Le())))}:{success:!0,data:s.value}},gr=In(Pn),Yd=t=>(e,r,n)=>{let o=n?{...n,direction:"backward"}:{direction:"backward"};return Tn(t)(e,r,o)};var Qd=t=>(e,r,n)=>Tn(t)(e,r,n);var ep=t=>async(e,r,n)=>{let o=n?{...n,direction:"backward"}:{direction:"backward"};return En(t)(e,r,o)};var tp=t=>async(e,r,n)=>En(t)(e,r,n);var rp=t=>(e,r,n)=>{let o=n?{...n,direction:"backward"}:{direction:"backward"};return Rn(t)(e,r,o)};var np=t=>(e,r,n)=>Rn(t)(e,r,n);var op=t=>async(e,r,n)=>{let o=n?{...n,direction:"backward"}:{direction:"backward"};return In(t)(e,r,o)};var sp=t=>async(e,r,n)=>In(t)(e,r,n);var ip=/^[cC][0-9a-z]{6,}$/,ap=/^[0-9a-z]+$/,cp=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,up=/^[0-9a-vA-V]{20}$/,lp=/^[A-Za-z0-9]{27}$/,dp=/^[a-zA-Z0-9_-]{21}$/,pp=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var fp=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ui=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var mp=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var ob="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hp(){return new RegExp(ob,"u")}var gp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_p=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var yp=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,vp=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,bp=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Fi=/^[A-Za-z0-9_-]*$/;var xp=/^https?$/,$p=/^\+[1-9]\d{6,14}$/,wp="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",kp=new RegExp(`^${wp}$`);function zp(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Sp(t){return new RegExp(`^${zp(t)}$`)}function Pp(t){let e=zp({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${r.join("|")})`;return new RegExp(`^${wp}T(?:${n})$`)}var Tp=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var Ep=/^-?\d+$/,Vi=/^-?\d+(?:\.\d+)?$/,Rp=/^(?:true|false)$/i,Ip=/^null$/i;var Op=/^[^A-Z]*$/,Zp=/^[^a-z]*$/;var _e=g("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),Np={number:"number",bigint:"bigint",object:"date"},Hi=g("$ZodCheckLessThan",(t,e)=>{_e.init(t,e);let r=Np[typeof e.value];t._zod.onattach.push(n=>{let o=n._zod.bag,s=(e.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{_e.init(t,e);let r=Np[typeof e.value];t._zod.onattach.push(n=>{let o=n._zod.bag,s=(e.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?o.minimum=e.value:o.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),jp=g("$ZodCheckMultipleOf",(t,e)=>{_e.init(t,e),t._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Zi(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),Cp=g("$ZodCheckNumberFormat",(t,e)=>{_e.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),n=r?"int":"number",[o,s]=Di[e.format];t._zod.onattach.push(i=>{let a=i._zod.bag;a.format=e.format,a.minimum=o,a.maximum=s,r&&(a.pattern=Ep)}),t._zod.check=i=>{let a=i.value;if(r){if(!Number.isInteger(a)){i.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?i.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,continue:!e.abort}):i.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,continue:!e.abort});return}}as&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:t,continue:!e.abort})}});var Ap=g("$ZodCheckMaxLength",(t,e)=>{var r;_e.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!kn(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let o=n.value;if(o.length<=e.maximum)return;let i=Sn(o);n.issues.push({origin:i,code:"too_big",maximum:e.maximum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Mp=g("$ZodCheckMinLength",(t,e)=>{var r;_e.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!kn(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>o&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let o=n.value;if(o.length>=e.minimum)return;let i=Sn(o);n.issues.push({origin:i,code:"too_small",minimum:e.minimum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Dp=g("$ZodCheckLengthEquals",(t,e)=>{var r;_e.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!kn(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=e.length,o.maximum=e.length,o.length=e.length}),t._zod.check=n=>{let o=n.value,s=o.length;if(s===e.length)return;let i=Sn(o),a=s>e.length;n.issues.push({origin:i,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Zn=g("$ZodCheckStringFormat",(t,e)=>{var r,n;_e.init(t,e),t._zod.onattach.push(o=>{let s=o._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:e.format,input:o.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),qp=g("$ZodCheckRegex",(t,e)=>{Zn.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Lp=g("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Op),Zn.init(t,e)}),Up=g("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Zp),Zn.init(t,e)}),Fp=g("$ZodCheckIncludes",(t,e)=>{_e.init(t,e);let r=zt(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(o=>{let s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),t._zod.check=o=>{o.value.includes(e.includes,e.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:o.value,inst:t,continue:!e.abort})}}),Vp=g("$ZodCheckStartsWith",(t,e)=>{_e.init(t,e);let r=new RegExp(`^${zt(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),Hp=g("$ZodCheckEndsWith",(t,e)=>{_e.init(t,e);let r=new RegExp(`.*${zt(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var Jp=g("$ZodCheckOverwrite",(t,e)=>{_e.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var Fo=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` -`).filter(i=>i),o=Math.min(...n.map(i=>i.length-i.trimStart().length)),s=n.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(let i of s)this.content.push(i)}compile(){let e=Function,r=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new e(...r,o.join(` -`))}};var Kp={major:4,minor:4,patch:3};var re=g("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Kp;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let o of n)for(let s of o._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let o=(i,a,c)=>{let u=At(i),l;for(let d of a){if(d._zod.def.when){if(qi(i)||!d._zod.def.when(i))continue}else if(u)continue;let p=i.issues.length,f=d._zod.check(i);if(f instanceof Promise&&c?.async===!1)throw new mt;if(l||f instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await f,i.issues.length!==p&&(u||(u=At(i,p)))});else{if(i.issues.length===p)continue;u||(u=At(i,p))}}return l?l.then(()=>i):i},s=(i,a,c)=>{if(At(i))return i.aborted=!0,i;let u=o(a,n,c);if(u instanceof Promise){if(c.async===!1)throw new mt;return u.then(l=>t._zod.parse(l,c))}return t._zod.parse(u,c)};t._zod.run=(i,a)=>{if(a.skipChecks)return t._zod.parse(i,a);if(a.direction==="backward"){let u=t._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(l=>s(l,i,a)):s(u,i,a)}let c=t._zod.parse(i,a);if(c instanceof Promise){if(a.async===!1)throw new mt;return c.then(u=>o(u,n,a))}return o(c,n,a)}}Q(t,"~standard",()=>({validate:o=>{try{let s=hr(t,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return gr(t,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Nn=g("$ZodString",(t,e)=>{re.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Tp(t._zod.bag),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),se=g("$ZodStringFormat",(t,e)=>{Zn.init(t,e),Nn.init(t,e)}),Ki=g("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=fp),se.init(t,e)}),Gi=g("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ui(n))}else e.pattern??(e.pattern=Ui());se.init(t,e)}),Wi=g("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=mp),se.init(t,e)}),Xi=g("$ZodURL",(t,e)=>{se.init(t,e),t._zod.check=r=>{try{let n=r.value.trim();if(!e.normalize&&e.protocol?.source===xp.source&&!/^https?:\/\//i.test(n)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:t,continue:!e.abort});return}let o=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),Yi=g("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=hp()),se.init(t,e)}),Qi=g("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=dp),se.init(t,e)}),ea=g("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=ip),se.init(t,e)}),ta=g("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=ap),se.init(t,e)}),ra=g("$ZodULID",(t,e)=>{e.pattern??(e.pattern=cp),se.init(t,e)}),na=g("$ZodXID",(t,e)=>{e.pattern??(e.pattern=up),se.init(t,e)}),oa=g("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=lp),se.init(t,e)}),nf=g("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Pp(e)),se.init(t,e)}),of=g("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=kp),se.init(t,e)}),sf=g("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=Sp(e)),se.init(t,e)}),af=g("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=pp),se.init(t,e)}),sa=g("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=gp),se.init(t,e),t._zod.bag.format="ipv4"}),ia=g("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=_p),se.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}});var aa=g("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=yp),se.init(t,e)}),ca=g("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=vp),se.init(t,e),t._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[o,s]=n;if(!s)throw new Error;let i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function cf(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var ua=g("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=bp),se.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{cf(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function sb(t){if(!Fi.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return cf(r)}var la=g("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Fi),se.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{sb(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),da=g("$ZodE164",(t,e)=>{e.pattern??(e.pattern=$p),se.init(t,e)});function ib(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||e&&(!("alg"in o)||o.alg!==e))}catch{return!1}}var pa=g("$ZodJWT",(t,e)=>{se.init(t,e),t._zod.check=r=>{ib(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}});var Jo=g("$ZodNumber",(t,e)=>{re.init(t,e),t._zod.pattern=t._zod.bag.pattern??Vi,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:t,...s?{received:s}:{}}),r}}),fa=g("$ZodNumberFormat",(t,e)=>{Cp.init(t,e),Jo.init(t,e)}),ma=g("$ZodBoolean",(t,e)=>{re.init(t,e),t._zod.pattern=Rp,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:t}),r}});var ha=g("$ZodNull",(t,e)=>{re.init(t,e),t._zod.pattern=Ip,t._zod.values=new Set([null]),t._zod.parse=(r,n)=>{let o=r.value;return o===null||r.issues.push({expected:"null",code:"invalid_type",input:o,inst:t}),r}});var ga=g("$ZodUnknown",(t,e)=>{re.init(t,e),t._zod.parse=r=>r}),_a=g("$ZodNever",(t,e)=>{re.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function Gp(t,e,r){t.issues.length&&e.issues.push(...St(r,t.issues)),e.value[r]=t.value}var ya=g("$ZodArray",(t,e)=>{re.init(t,e),t._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:t}),r;r.value=Array(o.length);let s=[];for(let i=0;iGp(u,r,i))):Gp(c,r,i)}return s.length?Promise.all(s).then(()=>r):r}});function Ho(t,e,r,n,o,s){let i=r in n;if(t.issues.length){if(o&&s&&!i)return;e.issues.push(...St(r,t.issues))}if(!i&&!o){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}t.value===void 0?i&&(e.value[r]=void 0):e.value[r]=t.value}function uf(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=Mi(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function lf(t,e,r,n,o,s){let i=[],a=o.keySet,c=o.catchall._zod,u=c.def.type,l=c.optin==="optional",d=c.optout==="optional";for(let p in e){if(p==="__proto__"||a.has(p))continue;if(u==="never"){i.push(p);continue}let f=c.run({value:e[p],issues:[]},n);f instanceof Promise?t.push(f.then(m=>Ho(m,r,p,e,l,d))):Ho(f,r,p,e,l,d)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:e,inst:s}),t.length?Promise.all(t).then(()=>r):r}var va=g("$ZodObject",(t,e)=>{if(re.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let a=e.shape;Object.defineProperty(e,"shape",{get:()=>{let c={...a};return Object.defineProperty(e,"shape",{value:c}),c}})}let n=Fr(()=>uf(e));Q(t._zod,"propValues",()=>{let a=e.shape,c={};for(let u in a){let l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let d of l.values)c[u].add(d)}}return c});let o=mr,s=e.catchall,i;t._zod.parse=(a,c)=>{i??(i=n.value);let u=a.value;if(!o(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),a;a.value={};let l=[],d=i.shape;for(let p of i.keys){let f=d[p],m=f._zod.optin==="optional",_=f._zod.optout==="optional",y=f._zod.run({value:u[p],issues:[]},c);y instanceof Promise?l.push(y.then($=>Ho($,a,p,u,m,_))):Ho(y,a,p,u,m,_)}return s?lf(l,u,a,c,n.value,t):l.length?Promise.all(l).then(()=>a):a}}),df=g("$ZodObjectJIT",(t,e)=>{va.init(t,e);let r=t._zod.parse,n=Fr(()=>uf(e)),o=p=>{let f=new Fo(["shape","payload","ctx"]),m=n.value,_=E=>{let Z=Ao(E);return`shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`};f.write("const input = payload.value;");let y=Object.create(null),$=0;for(let E of m.keys)y[E]=`key_${$++}`;f.write("const newResult = {};");for(let E of m.keys){let Z=y[E],S=Ao(E),qe=p[E],He=qe?._zod?.optin==="optional",_n=qe?._zod?.optout==="optional";f.write(`const ${Z} = ${_(E)};`),He&&_n?f.write(` - if (${Z}.issues.length) { - if (${S} in input) { - payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({ + deps: ${n}}`};var TB={keyword:"dependencies",type:"object",schemaType:"object",error:zi.error,code(t){let[e,n]=MB(t);wT(t,e),vT(t,n)}};function MB({schema:t}){let e={},n={};for(let i in t){if(i==="__proto__")continue;let a=Array.isArray(t[i])?e:n;a[i]=t[i]}return[e,n]}function wT(t,e=t.schema){let{gen:n,data:i,it:a}=t;if(Object.keys(e).length===0)return;let r=n.let("missing");for(let s in e){let o=e[s];if(o.length===0)continue;let l=(0,qo.propertyInData)(n,i,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?n.if(l,()=>{for(let u of o)(0,qo.checkReportMissingProp)(t,u)}):(n.if((0,Vf._)`${l} && (${(0,qo.checkMissingProp)(t,o,r)})`),(0,qo.reportMissingProp)(t,r),n.else())}}zi.validatePropertyDeps=wT;function vT(t,e=t.schema){let{gen:n,data:i,keyword:a,it:r}=t,s=n.name("valid");for(let o in e)(0,xB.alwaysValidSchema)(r,e[o])||(n.if((0,qo.propertyInData)(n,i,o,r.opts.ownProperties),()=>{let l=t.subschema({keyword:a,schemaProp:o},s);t.mergeValidEvaluated(l,s)},()=>n.var(s,!0)),t.ok(s))}zi.validateSchemaDeps=vT;zi.default=TB});var bT=v(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var AT=re(),EB=we(),qB={message:"property name must be valid",params:({params:t})=>(0,AT._)`{propertyName: ${t.propertyName}}`},kB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:qB,code(t){let{gen:e,schema:n,data:i,it:a}=t;if((0,EB.alwaysValidSchema)(a,n))return;let r=e.name("valid");e.forIn("key",i,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),e.if((0,AT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Jf.default=kB});var Kf=v(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var Cc=pi(),ji=re(),_B=ot(),Ac=we(),HB={message:"must NOT have additional properties",params:({params:t})=>(0,ji._)`{additionalProperty: ${t.additionalProperty}}`},RB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:HB,code(t){let{gen:e,schema:n,parentSchema:i,data:a,errsCount:r,it:s}=t;if(!r)throw new Error("ajv implementation error");let{allErrors:o,opts:l}=s;if(s.props=!0,l.removeAdditional!=="all"&&(0,Ac.alwaysValidSchema)(s,n))return;let u=(0,Cc.allSchemaProperties)(i.properties),c=(0,Cc.allSchemaProperties)(i.patternProperties);p(),t.ok((0,ji._)`${r} === ${_B.default.errors}`);function p(){e.forIn("key",a,f=>{!u.length&&!c.length?g(f):e.if(d(f),()=>g(f))})}function d(f){let w;if(u.length>8){let b=(0,Ac.schemaRefOrVal)(s,i.properties,"properties");w=(0,Cc.isOwnProperty)(e,b,f)}else u.length?w=(0,ji.or)(...u.map(b=>(0,ji._)`${f} === ${b}`)):w=ji.nil;return c.length&&(w=(0,ji.or)(w,...c.map(b=>(0,ji._)`${(0,Cc.usePattern)(t,b)}.test(${f})`))),(0,ji.not)(w)}function h(f){e.code((0,ji._)`delete ${a}[${f}]`)}function g(f){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){h(f);return}if(n===!1){t.setParams({additionalProperty:f}),t.error(),o||e.break();return}if(typeof n=="object"&&!(0,Ac.alwaysValidSchema)(s,n)){let w=e.name("valid");l.removeAdditional==="failing"?(m(f,w,!1),e.if((0,ji.not)(w),()=>{t.reset(),h(f)})):(m(f,w),o||e.if((0,ji.not)(w),()=>e.break()))}}function m(f,w,b){let A={keyword:"additionalProperties",dataProp:f,dataPropType:Ac.Type.Str};b===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,w)}}};Zf.default=RB});var jT=v(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var IB=wo(),yT=pi(),Qf=we(),PT=Kf(),zB={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:i,data:a,it:r}=t;r.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&PT.default.code(new IB.KeywordCxt(r,PT.default,"additionalProperties"));let s=(0,yT.allSchemaProperties)(n);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=Qf.mergeEvaluated.props(e,(0,Qf.toHash)(s),r.props));let o=s.filter(p=>!(0,Qf.alwaysValidSchema)(r,n[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)u(p)?c(p):(e.if((0,yT.propertyInData)(e,a,p,r.opts.ownProperties)),c(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function u(p){return r.opts.useDefaults&&!r.compositeRule&&n[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Yf.default=zB});var TT=v(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var ST=pi(),bc=re(),OT=we(),xT=we(),DB={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:i,parentSchema:a,it:r}=t,{opts:s}=r,o=(0,ST.allSchemaProperties)(n),l=o.filter(m=>(0,OT.alwaysValidSchema)(r,n[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&a.properties,c=e.name("valid");r.props!==!0&&!(r.props instanceof bc.Name)&&(r.props=(0,xT.evaluatedPropsToName)(e,r.props));let{props:p}=r;d();function d(){for(let m of o)u&&h(m),r.allErrors?g(m):(e.var(c,!0),g(m),e.if(c))}function h(m){for(let f in u)new RegExp(m).test(f)&&(0,OT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",i,f=>{e.if((0,bc._)`${(0,ST.usePattern)(t,m)}.test(${f})`,()=>{let w=l.includes(m);w||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:xT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,bc._)`${p}[${f}]`,!0):!w&&!r.allErrors&&e.if((0,bc.not)(c),()=>e.break())})})}}};Xf.default=DB});var MT=v(ew=>{"use strict";Object.defineProperty(ew,"__esModule",{value:!0});var GB=we(),$B={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:n,it:i}=t;if((0,GB.alwaysValidSchema)(i,n)){t.fail();return}let a=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),t.failResult(a,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};ew.default=$B});var ET=v(nw=>{"use strict";Object.defineProperty(nw,"__esModule",{value:!0});var NB=pi(),UB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:NB.validateUnion,error:{message:"must match a schema in anyOf"}};nw.default=UB});var qT=v(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});var yc=re(),LB=we(),WB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,yc._)`{passingSchemas: ${t.passing}}`},BB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:WB,code(t){let{gen:e,schema:n,parentSchema:i,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&i.discriminator)return;let r=n,s=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){r.forEach((c,p)=>{let d;(0,LB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,yc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,yc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,yc.Name)})})}}};iw.default=BB});var kT=v(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0});var FB=we(),VB={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:n,it:i}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");let a=e.name("valid");n.forEach((r,s)=>{if((0,FB.alwaysValidSchema)(i,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};tw.default=VB});var RT=v(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});var Pc=re(),HT=we(),JB={message:({params:t})=>(0,Pc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Pc._)`{failingKeyword: ${t.ifClause}}`},ZB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:JB,code(t){let{gen:e,parentSchema:n,it:i}=t;n.then===void 0&&n.else===void 0&&(0,HT.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let a=_T(i,"then"),r=_T(i,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,u("then",c),u("else",c))}else a?e.if(o,u("then")):e.if((0,Pc.not)(o),u("else"));t.pass(s,()=>t.error(!0));function l(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function u(c,p){return()=>{let d=t.subschema({keyword:c},o);e.assign(s,o),t.mergeValidEvaluated(d,s),p?e.assign(p,(0,Pc._)`${c}`):t.setParams({ifClause:c})}}}};function _T(t,e){let n=t.schema[e];return n!==void 0&&!(0,HT.alwaysValidSchema)(t,n)}aw.default=ZB});var IT=v(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0});var KB=we(),QB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,KB.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};rw.default=QB});var zT=v(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0});var YB=Uf(),XB=hT(),eF=Lf(),nF=mT(),iF=fT(),tF=CT(),aF=bT(),rF=Kf(),sF=jT(),oF=TT(),lF=MT(),uF=ET(),cF=qT(),pF=kT(),dF=RT(),hF=IT();function gF(t=!1){let e=[lF.default,uF.default,cF.default,pF.default,dF.default,hF.default,aF.default,rF.default,tF.default,sF.default,oF.default];return t?e.push(XB.default,nF.default):e.push(YB.default,eF.default),e.push(iF.default),e}sw.default=gF});var DT=v(ow=>{"use strict";Object.defineProperty(ow,"__esModule",{value:!0});var nn=re(),mF={message:({schemaCode:t})=>(0,nn.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,nn._)`{format: ${t}}`},fF={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:mF,code(t,e){let{gen:n,data:i,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=o;if(!l.validateFormats)return;a?d():h();function d(){let g=n.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=n.const("fDef",(0,nn._)`${g}[${s}]`),f=n.let("fType"),w=n.let("format");n.if((0,nn._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>n.assign(f,(0,nn._)`${m}.type || "string"`).assign(w,(0,nn._)`${m}.validate`),()=>n.assign(f,(0,nn._)`"string"`).assign(w,m)),t.fail$data((0,nn.or)(b(),A()));function b(){return l.strictSchema===!1?nn.nil:(0,nn._)`${s} && !${w}`}function A(){let y=c.$async?(0,nn._)`(${m}.async ? await ${w}(${i}) : ${w}(${i}))`:(0,nn._)`${w}(${i})`,O=(0,nn._)`(typeof ${w} == "function" ? ${y} : ${w}.test(${i}))`;return(0,nn._)`${w} && ${w} !== true && ${f} === ${e} && !${O}`}}function h(){let g=p.formats[r];if(!g){b();return}if(g===!0)return;let[m,f,w]=A(g);m===e&&t.pass(y());function b(){if(l.strictSchema===!1){p.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${r}" ignored in schema at path "${u}"`}}function A(O){let $=O instanceof RegExp?(0,nn.regexpCode)(O):l.code.formats?(0,nn._)`${l.code.formats}${(0,nn.getProperty)(r)}`:void 0,N=n.scopeValue("formats",{key:r,ref:O,code:$});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,nn._)`${N}.validate`]:["string",O,N]}function y(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,nn._)`await ${w}(${i})`}return typeof f=="function"?(0,nn._)`${w}(${i})`:(0,nn._)`${w}.test(${i})`}}}};ow.default=fF});var GT=v(lw=>{"use strict";Object.defineProperty(lw,"__esModule",{value:!0});var wF=DT(),vF=[wF.default];lw.default=vF});var $T=v(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.contentVocabulary=zr.metadataVocabulary=void 0;zr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];zr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var UT=v(uw=>{"use strict";Object.defineProperty(uw,"__esModule",{value:!0});var CF=Zx(),AF=uT(),bF=zT(),yF=GT(),NT=$T(),PF=[CF.default,AF.default,(0,bF.default)(),yF.default,NT.metadataVocabulary,NT.contentVocabulary];uw.default=PF});var WT=v(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.DiscrError=void 0;var LT;(function(t){t.Tag="tag",t.Mapping="mapping"})(LT||(jc.DiscrError=LT={}))});var FT=v(pw=>{"use strict";Object.defineProperty(pw,"__esModule",{value:!0});var Dr=re(),cw=WT(),BT=oc(),jF=vo(),SF=we(),OF={message:({params:{discrError:t,tagName:e}})=>t===cw.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,Dr._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},xF={keyword:"discriminator",type:"object",schemaType:"object",error:OF,code(t){let{gen:e,data:n,schema:i,parentSchema:a,it:r}=t,{oneOf:s}=a;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=i.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),u=e.const("tag",(0,Dr._)`${n}${(0,Dr.getProperty)(o)}`);e.if((0,Dr._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:cw.DiscrError.Tag,tag:u,tagName:o})),t.ok(l);function c(){let h=d();e.if(!1);for(let g in h)e.elseIf((0,Dr._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:cw.DiscrError.Mapping,tag:u,tagName:o}),e.endIf()}function p(h){let g=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(m,Dr.Name),g}function d(){var h;let g={},m=w(a),f=!0;for(let y=0;y{TF.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var hw=v((Ue,dw)=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.MissingRefError=Ue.ValidationError=Ue.CodeGen=Ue.Name=Ue.nil=Ue.stringify=Ue.str=Ue._=Ue.KeywordCxt=Ue.Ajv=void 0;var MF=Lx(),EF=UT(),qF=FT(),JT=VT(),kF=["/properties"],Sc="http://json-schema.org/draft-07/schema",Gr=class extends MF.default{_addVocabularies(){super._addVocabularies(),EF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(qF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(JT,kF):JT;this.addMetaSchema(e,Sc,!1),this.refs["http://json-schema.org/schema"]=Sc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Sc)?Sc:void 0)}};Ue.Ajv=Gr;dw.exports=Ue=Gr;dw.exports.Ajv=Gr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Gr;var _F=wo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return _F.KeywordCxt}});var $r=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return $r._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return $r.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return $r.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return $r.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return $r.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return $r.CodeGen}});var HF=rc();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return HF.default}});var RF=vo();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return RF.default}})});var iM=v(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.formatNames=Gi.fastFormats=Gi.fullFormats=void 0;function Di(t,e){return{validate:t,compare:e}}Gi.fullFormats={date:Di(YT,ww),time:Di(mw(!0),vw),"date-time":Di(ZT(!0),eM),"iso-time":Di(mw(),XT),"iso-date-time":Di(ZT(),nM),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:NF,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:JF,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:UF,int32:{type:"number",validate:BF},int64:{type:"number",validate:FF},float:{type:"number",validate:QT},double:{type:"number",validate:QT},password:!0,binary:!0};Gi.fastFormats={...Gi.fullFormats,date:Di(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,ww),time:Di(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,vw),"date-time":Di(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,eM),"iso-time":Di(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,XT),"iso-date-time":Di(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,nM),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Gi.formatNames=Object.keys(Gi.fullFormats);function IF(t){return t%4===0&&(t%100!==0||t%400===0)}var zF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,DF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function YT(t){let e=zF.exec(t);if(!e)return!1;let n=+e[1],i=+e[2],a=+e[3];return i>=1&&i<=12&&a>=1&&a<=(i===2&&IF(n)?29:DF[i])}function ww(t,e){if(t&&e)return t>e?1:t23||c>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-c*l,d=a-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&s<61}}function vw(t,e){if(!(t&&e))return;let n=new Date("2020-01-01T"+t).valueOf(),i=new Date("2020-01-01T"+e).valueOf();if(n&&i)return n-i}function XT(t,e){if(!(t&&e))return;let n=gw.exec(t),i=gw.exec(e);if(n&&i)return t=n[1]+n[2]+n[3],e=i[1]+i[2]+i[3],t>e?1:t=LF}function FF(t){return Number.isInteger(t)}function QT(){return!0}var VF=/[^\\]\\Z/;function JF(t){if(VF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var tM=v(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.formatLimitDefinition=void 0;var ZF=hw(),Si=re(),It=Si.operators,Oc={formatMaximum:{okStr:"<=",ok:It.LTE,fail:It.GT},formatMinimum:{okStr:">=",ok:It.GTE,fail:It.LT},formatExclusiveMaximum:{okStr:"<",ok:It.LT,fail:It.GTE},formatExclusiveMinimum:{okStr:">",ok:It.GT,fail:It.LTE}},KF={message:({keyword:t,schemaCode:e})=>(0,Si.str)`should be ${Oc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Si._)`{comparison: ${Oc[t].okStr}, limit: ${e}}`};Nr.formatLimitDefinition={keyword:Object.keys(Oc),type:"string",schemaType:"string",$data:!0,error:KF,code(t){let{gen:e,data:n,schemaCode:i,keyword:a,it:r}=t,{opts:s,self:o}=r;if(!s.validateFormats)return;let l=new ZF.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),h=e.const("fmt",(0,Si._)`${d}[${l.schemaCode}]`);t.fail$data((0,Si.or)((0,Si._)`typeof ${h} != "object"`,(0,Si._)`${h} instanceof RegExp`,(0,Si._)`typeof ${h}.compare != "function"`,p(h)))}function c(){let d=l.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${a}": format "${d}" does not define "compare" function`);let g=e.scopeValue("formats",{key:d,ref:h,code:s.code.formats?(0,Si._)`${s.code.formats}${(0,Si.getProperty)(d)}`:void 0});t.fail$data(p(g))}function p(d){return(0,Si._)`${d}.compare(${n}, ${i}) ${Oc[a].fail} 0`}},dependencies:["format"]};var QF=t=>(t.addKeyword(Nr.formatLimitDefinition),t);Nr.default=QF});var oM=v((ko,sM)=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});var Ur=iM(),YF=tM(),Cw=re(),aM=new Cw.Name("fullFormats"),XF=new Cw.Name("fastFormats"),Aw=(t,e={keywords:!0})=>{if(Array.isArray(e))return rM(t,e,Ur.fullFormats,aM),t;let[n,i]=e.mode==="fast"?[Ur.fastFormats,XF]:[Ur.fullFormats,aM],a=e.formats||Ur.formatNames;return rM(t,a,n,i),e.keywords&&(0,YF.default)(t),t};Aw.get=(t,e="full")=>{let i=(e==="fast"?Ur.fastFormats:Ur.fullFormats)[t];if(!i)throw new Error(`Unknown format "${t}"`);return i};function rM(t,e,n,i){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,Cw._)`require("ajv-formats/dist/formats").${i}`);for(let s of e)t.addFormat(s,n[s])}sM.exports=ko=Aw;Object.defineProperty(ko,"__esModule",{value:!0});ko.default=Aw});var EM=v((Bse,MM)=>{var TM=require("stream").Stream,bV=require("util");MM.exports=Oi;function Oi(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}bV.inherits(Oi,TM);Oi.create=function(t,e){var n=new this;e=e||{};for(var i in e)n[i]=e[i];n.source=t;var a=t.emit;return t.emit=function(){return n._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),n.pauseStream&&t.pause(),n};Object.defineProperty(Oi.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Oi.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Oi.prototype.resume=function(){this._released||this.release(),this.source.resume()};Oi.prototype.pause=function(){this.source.pause()};Oi.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Oi.prototype.pipe=function(){var t=TM.prototype.pipe.apply(this,arguments);return this.resume(),t};Oi.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Oi.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var HM=v((Fse,_M)=>{var yV=require("util"),kM=require("stream").Stream,qM=EM();_M.exports=Ke;function Ke(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}yV.inherits(Ke,kM);Ke.create=function(t){var e=new this;t=t||{};for(var n in t)e[n]=t[n];return e};Ke.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ke.prototype.append=function(t){var e=Ke.isStreamLike(t);if(e){if(!(t instanceof qM)){var n=qM.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=n}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ke.prototype.pipe=function(t,e){return kM.prototype.pipe.call(this,t,e),this.resume(),t};Ke.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ke.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(n){var i=Ke.isStreamLike(n);i&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Ke.prototype._pipeNext=function(t){this._currentStream=t;var e=Ke.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var n=t;this.write(n),this._getNext()};Ke.prototype._handleErrors=function(t){var e=this;t.on("error",function(n){e._emitError(n)})};Ke.prototype.write=function(t){this.emit("data",t)};Ke.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ke.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ke.prototype.end=function(){this._reset(),this.emit("end")};Ke.prototype.destroy=function(){this._reset(),this.emit("close")};Ke.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ke.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ke.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ke.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var RM=v((Vse,PV)=>{PV.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var zM=v((Jse,IM)=>{IM.exports=RM()});var $M=v(Bn=>{"use strict";var zc=zM(),jV=require("path").extname,DM=/^\s*([^;\s]*)(?:;|\s|$)/,SV=/^text\//i;Bn.charset=GM;Bn.charsets={lookup:GM};Bn.contentType=OV;Bn.extension=xV;Bn.extensions=Object.create(null);Bn.lookup=TV;Bn.types=Object.create(null);MV(Bn.extensions,Bn.types);function GM(t){if(!t||typeof t!="string")return!1;var e=DM.exec(t),n=e&&zc[e[1].toLowerCase()];return n&&n.charset?n.charset:e&&SV.test(e[1])?"UTF-8":!1}function OV(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Bn.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var n=Bn.charset(e);n&&(e+="; charset="+n.toLowerCase())}return e}function xV(t){if(!t||typeof t!="string")return!1;var e=DM.exec(t),n=e&&Bn.extensions[e[1].toLowerCase()];return!n||!n.length?!1:n[0]}function TV(t){if(!t||typeof t!="string")return!1;var e=jV("x."+t).toLowerCase().substr(1);return e&&Bn.types[e]||!1}function MV(t,e){var n=["nginx","apache",void 0,"iana"];Object.keys(zc).forEach(function(a){var r=zc[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;oc||u===c&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var UM=v((Kse,NM)=>{NM.exports=EV;function EV(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var kw=v((Qse,WM)=>{var LM=UM();WM.exports=qV;function qV(t){var e=!1;return LM(function(){e=!0}),function(i,a){e?t(i,a):LM(function(){t(i,a)})}}});var _w=v((Yse,BM)=>{BM.exports=kV;function kV(t){Object.keys(t.jobs).forEach(_V.bind(t)),t.jobs={}}function _V(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var Hw=v((Xse,VM)=>{var FM=kw(),HV=_w();VM.exports=RV;function RV(t,e,n,i){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=IV(e,a,t[a],function(r,s){a in n.jobs&&(delete n.jobs[a],r?HV(n):n.results[a]=s,i(r,n.results))})}function IV(t,e,n,i){var a;return t.length==2?a=t(n,FM(i)):a=t(n,e,FM(i)),a}});var Rw=v((eoe,JM)=>{JM.exports=zV;function zV(t,e){var n=!Array.isArray(t),i={index:0,keyedList:n||e?Object.keys(t):null,jobs:{},results:n?{}:[],size:n?Object.keys(t).length:t.length};return e&&i.keyedList.sort(n?e:function(a,r){return e(t[a],t[r])}),i}});var Iw=v((noe,ZM)=>{var DV=_w(),GV=kw();ZM.exports=$V;function $V(t){Object.keys(this.jobs).length&&(this.index=this.size,DV(this),GV(t)(null,this.results))}});var QM=v((ioe,KM)=>{var NV=Hw(),UV=Rw(),LV=Iw();KM.exports=WV;function WV(t,e,n){for(var i=UV(t);i.index<(i.keyedList||t).length;)NV(t,e,i,function(a,r){if(a){n(a,r);return}if(Object.keys(i.jobs).length===0){n(null,i.results);return}}),i.index++;return LV.bind(i,n)}});var zw=v((toe,Dc)=>{var YM=Hw(),BV=Rw(),FV=Iw();Dc.exports=VV;Dc.exports.ascending=XM;Dc.exports.descending=JV;function VV(t,e,n,i){var a=BV(t,n);return YM(t,e,a,function r(s,o){if(s){i(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){YM(t,e,a,r);return}i(null,a.results)}),FV.bind(a,i)}function XM(t,e){return te?1:0}function JV(t,e){return-1*XM(t,e)}});var nE=v((aoe,eE)=>{var ZV=zw();eE.exports=KV;function KV(t,e,n){return ZV(t,e,null,n)}});var tE=v((roe,iE)=>{iE.exports={parallel:QM(),serial:nE(),serialOrdered:zw()}});var Dw=v((soe,aE)=>{"use strict";aE.exports=Object});var sE=v((ooe,rE)=>{"use strict";rE.exports=Error});var lE=v((loe,oE)=>{"use strict";oE.exports=EvalError});var cE=v((uoe,uE)=>{"use strict";uE.exports=RangeError});var dE=v((coe,pE)=>{"use strict";pE.exports=ReferenceError});var gE=v((poe,hE)=>{"use strict";hE.exports=SyntaxError});var Dt=v((doe,mE)=>{"use strict";mE.exports=TypeError});var wE=v((hoe,fE)=>{"use strict";fE.exports=URIError});var CE=v((goe,vE)=>{"use strict";vE.exports=Math.abs});var bE=v((moe,AE)=>{"use strict";AE.exports=Math.floor});var PE=v((foe,yE)=>{"use strict";yE.exports=Math.max});var SE=v((woe,jE)=>{"use strict";jE.exports=Math.min});var xE=v((voe,OE)=>{"use strict";OE.exports=Math.pow});var ME=v((Coe,TE)=>{"use strict";TE.exports=Math.round});var qE=v((Aoe,EE)=>{"use strict";EE.exports=Number.isNaN||function(e){return e!==e}});var _E=v((boe,kE)=>{"use strict";var QV=qE();kE.exports=function(e){return QV(e)||e===0?e:e<0?-1:1}});var RE=v((yoe,HE)=>{"use strict";HE.exports=Object.getOwnPropertyDescriptor});var Gw=v((Poe,IE)=>{"use strict";var Gc=RE();if(Gc)try{Gc([],"length")}catch{Gc=null}IE.exports=Gc});var DE=v((joe,zE)=>{"use strict";var $c=Object.defineProperty||!1;if($c)try{$c({},"a",{value:1})}catch{$c=!1}zE.exports=$c});var $w=v((Soe,GE)=>{"use strict";GE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;e[n]=a;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==a||o.enumerable!==!0)return!1}return!0}});var UE=v((Ooe,NE)=>{"use strict";var $E=typeof Symbol<"u"&&Symbol,YV=$w();NE.exports=function(){return typeof $E!="function"||typeof Symbol!="function"||typeof $E("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:YV()}});var Nw=v((xoe,LE)=>{"use strict";LE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Uw=v((Toe,WE)=>{"use strict";var XV=Dw();WE.exports=XV.getPrototypeOf||null});var VE=v((Moe,FE)=>{"use strict";var eJ="Function.prototype.bind called on incompatible ",nJ=Object.prototype.toString,iJ=Math.max,tJ="[object Function]",BE=function(e,n){for(var i=[],a=0;a{"use strict";var sJ=VE();JE.exports=Function.prototype.bind||sJ});var Nc=v((qoe,ZE)=>{"use strict";ZE.exports=Function.prototype.call});var Lw=v((koe,KE)=>{"use strict";KE.exports=Function.prototype.apply});var YE=v((_oe,QE)=>{"use strict";QE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var eq=v((Hoe,XE)=>{"use strict";var oJ=zo(),lJ=Lw(),uJ=Nc(),cJ=YE();XE.exports=cJ||oJ.call(uJ,lJ)});var Ww=v((Roe,nq)=>{"use strict";var pJ=zo(),dJ=Dt(),hJ=Nc(),gJ=eq();nq.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new dJ("a function is required");return gJ(pJ,hJ,e)}});var oq=v((Ioe,sq)=>{"use strict";var mJ=Ww(),iq=Gw(),aq;try{aq=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Bw=!!aq&&iq&&iq(Object.prototype,"__proto__"),rq=Object,tq=rq.getPrototypeOf;sq.exports=Bw&&typeof Bw.get=="function"?mJ([Bw.get]):typeof tq=="function"?function(e){return tq(e==null?e:rq(e))}:!1});var dq=v((zoe,pq)=>{"use strict";var lq=Nw(),uq=Uw(),cq=oq();pq.exports=lq?function(e){return lq(e)}:uq?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return uq(e)}:cq?function(e){return cq(e)}:null});var Uc=v((Doe,hq)=>{"use strict";var fJ=Function.prototype.call,wJ=Object.prototype.hasOwnProperty,vJ=zo();hq.exports=vJ.call(fJ,wJ)});var No=v((Goe,Cq)=>{"use strict";var pe,CJ=Dw(),AJ=sE(),bJ=lE(),yJ=cE(),PJ=dE(),Kr=gE(),Zr=Dt(),jJ=wE(),SJ=CE(),OJ=bE(),xJ=PE(),TJ=SE(),MJ=xE(),EJ=ME(),qJ=_E(),wq=Function,Fw=function(t){try{return wq('"use strict"; return ('+t+").constructor;")()}catch{}},Do=Gw(),kJ=DE(),Vw=function(){throw new Zr},_J=Do?(function(){try{return arguments.callee,Vw}catch{try{return Do(arguments,"callee").get}catch{return Vw}}})():Vw,Vr=UE()(),mn=dq(),HJ=Uw(),RJ=Nw(),vq=Lw(),Go=Nc(),Jr={},IJ=typeof Uint8Array>"u"||!mn?pe:mn(Uint8Array),_a={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Vr&&mn?mn([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Jr,"%AsyncGenerator%":Jr,"%AsyncGeneratorFunction%":Jr,"%AsyncIteratorPrototype%":Jr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":AJ,"%eval%":eval,"%EvalError%":bJ,"%Float16Array%":typeof Float16Array>"u"?pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":wq,"%GeneratorFunction%":Jr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vr&&mn?mn(mn([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Vr||!mn?pe:mn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":CJ,"%Object.getOwnPropertyDescriptor%":Do,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":yJ,"%ReferenceError%":PJ,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Vr||!mn?pe:mn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vr&&mn?mn(""[Symbol.iterator]()):pe,"%Symbol%":Vr?Symbol:pe,"%SyntaxError%":Kr,"%ThrowTypeError%":_J,"%TypedArray%":IJ,"%TypeError%":Zr,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":jJ,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":Go,"%Function.prototype.apply%":vq,"%Object.defineProperty%":kJ,"%Object.getPrototypeOf%":HJ,"%Math.abs%":SJ,"%Math.floor%":OJ,"%Math.max%":xJ,"%Math.min%":TJ,"%Math.pow%":MJ,"%Math.round%":EJ,"%Math.sign%":qJ,"%Reflect.getPrototypeOf%":RJ};if(mn)try{null.error}catch(t){gq=mn(mn(t)),_a["%Error.prototype%"]=gq}var gq,zJ=function t(e){var n;if(e==="%AsyncFunction%")n=Fw("async function () {}");else if(e==="%GeneratorFunction%")n=Fw("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Fw("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&mn&&(n=mn(a.prototype))}return _a[e]=n,n},mq={__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"]},$o=zo(),Lc=Uc(),DJ=$o.call(Go,Array.prototype.concat),GJ=$o.call(vq,Array.prototype.splice),fq=$o.call(Go,String.prototype.replace),Wc=$o.call(Go,String.prototype.slice),$J=$o.call(Go,RegExp.prototype.exec),NJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,UJ=/\\(\\)?/g,LJ=function(e){var n=Wc(e,0,1),i=Wc(e,-1);if(n==="%"&&i!=="%")throw new Kr("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new Kr("invalid intrinsic syntax, expected opening `%`");var a=[];return fq(e,NJ,function(r,s,o,l){a[a.length]=o?fq(l,UJ,"$1"):s||r}),a},WJ=function(e,n){var i=e,a;if(Lc(mq,i)&&(a=mq[i],i="%"+a[0]+"%"),Lc(_a,i)){var r=_a[i];if(r===Jr&&(r=zJ(i)),typeof r>"u"&&!n)throw new Zr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:r}}throw new Kr("intrinsic "+e+" does not exist!")};Cq.exports=function(e,n){if(typeof e!="string"||e.length===0)throw new Zr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Zr('"allowMissing" argument must be a boolean');if($J(/^%?[^%]*%?$/,e)===null)throw new Kr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=LJ(e),a=i.length>0?i[0]:"",r=WJ("%"+a+"%",n),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],GJ(i,DJ([0,1],u)));for(var c=1,p=!0;c=i.length){var m=Do(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=Lc(o,d),o=o[d];p&&!l&&(_a[s]=o)}}return o}});var bq=v(($oe,Aq)=>{"use strict";var BJ=$w();Aq.exports=function(){return BJ()&&!!Symbol.toStringTag}});var jq=v((Noe,Pq)=>{"use strict";var FJ=No(),yq=FJ("%Object.defineProperty%",!0),VJ=bq()(),JJ=Uc(),ZJ=Dt(),Bc=VJ?Symbol.toStringTag:null;Pq.exports=function(e,n){var i=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof i<"u"&&typeof i!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new ZJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Bc&&(i||!JJ(e,Bc))&&(yq?yq(e,Bc,{configurable:!a,enumerable:!1,value:n,writable:!1}):e[Bc]=n)}});var Oq=v((Uoe,Sq)=>{"use strict";Sq.exports=function(t,e){return Object.keys(e).forEach(function(n){t[n]=t[n]||e[n]}),t}});var Tq=v((Loe,xq)=>{"use strict";var Qw=HM(),KJ=require("util"),Jw=require("path"),QJ=require("http"),YJ=require("https"),XJ=require("url").parse,e4=require("fs"),n4=require("stream").Stream,i4=require("crypto"),Zw=$M(),t4=tE(),a4=jq(),Gt=Uc(),Kw=Oq();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Qw.call(this),t=t||{};for(var e in t)this[e]=t[e]}KJ.inherits(Ce,Qw);Ce.LINE_BREAK=`\r +`;Ce.DEFAULT_CONTENT_TYPE="application/octet-stream";Ce.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var i=Qw.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var a=this._multiPartHeader(t,e,n),r=this._multiPartFooter();i(a),i(e),i(r),this._trackLength(a,e,n)};Ce.prototype._trackLength=function(t,e,n){var i=0;n.knownLength!=null?i+=Number(n.knownLength):Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+Ce.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Gt(e,"httpVersion"))&&!(e instanceof n4))&&(n.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){Gt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):e4.stat(t.path,function(n,i){if(n){e(n);return}var a=i.size-(t.start?t.start:0);e(null,a)}):Gt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Gt(t,"httpModule")?(t.on("response",function(n){t.pause(),e(null,Number(n.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ce.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var i=this._getContentDisposition(e,n),a=this._getContentType(e,n),r="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(a||[])};typeof n.header=="object"&&Kw(s,n.header);var o;for(var l in s)if(Gt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var n;if(typeof e.filepath=="string"?n=Jw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?n=Jw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Gt(t,"httpVersion")&&(n=Jw.basename(t.client._httpMessage.path||"")),n)return'filename="'+n+'"'};Ce.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t&&t.name&&(n=Zw.lookup(t.name)),!n&&t&&t.path&&(n=Zw.lookup(t.path)),!n&&t&&t.readable&&Gt(t,"httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=Zw.lookup(e.filepath||e.filename)),!n&&t&&typeof t=="object"&&(n=Ce.DEFAULT_CONTENT_TYPE),n};Ce.prototype._multiPartFooter=function(){return function(t){var e=Ce.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ce.LINE_BREAK};Ce.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)Gt(t,e)&&(n[e.toLowerCase()]=t[e]);return n};Ce.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ce.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,i=this._streams.length;n{var Qr=1e3,Yr=Qr*60,Xr=Yr*60,Ha=Xr*24,r4=Ha*7,s4=Ha*365.25;Mq.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return o4(t);if(n==="number"&&isFinite(t))return e.long?u4(t):l4(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function o4(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*s4;case"weeks":case"week":case"w":return n*r4;case"days":case"day":case"d":return n*Ha;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Xr;case"minutes":case"minute":case"mins":case"min":case"m":return n*Yr;case"seconds":case"second":case"secs":case"sec":case"s":return n*Qr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function l4(t){var e=Math.abs(t);return e>=Ha?Math.round(t/Ha)+"d":e>=Xr?Math.round(t/Xr)+"h":e>=Yr?Math.round(t/Yr)+"m":e>=Qr?Math.round(t/Qr)+"s":t+"ms"}function u4(t){var e=Math.abs(t);return e>=Ha?Fc(t,e,Ha,"day"):e>=Xr?Fc(t,e,Xr,"hour"):e>=Yr?Fc(t,e,Yr,"minute"):e>=Qr?Fc(t,e,Qr,"second"):t+" ms"}function Fc(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var Xw=v((Boe,Eq)=>{function c4(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=a,n.enabled=o,n.humanize=Yw(),n.destroy=u,Object.keys(t).forEach(c=>{n[c]=t[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let p=0;for(let d=0;d{if($==="%%")return"%";y++;let X=n.formatters[N];if(typeof X=="function"){let F=f[y];$=X.call(w,F),f.splice(y,1),y--}return $}),n.formatArgs.call(w,f),(w.log||n.log).apply(w,f)}return m.namespace=c,m.useColors=n.useColors(),m.color=n.selectColor(c),m.extend=i,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(c)),g),set:f=>{d=f}}),typeof n.init=="function"&&n.init(m),m}function i(c,p){let d=n(this.namespace+(typeof p>"u"?":":p)+c);return d.log=this.log,d}function a(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function r(c,p){let d=0,h=0,g=-1,m=0;for(;d"-"+p)].join(",");return n.enable(""),c}function o(c){for(let p of n.skips)if(r(c,p))return!1;for(let p of n.names)if(r(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}Eq.exports=c4});var qq=v((Fn,Vc)=>{Fn.formatArgs=d4;Fn.save=h4;Fn.load=g4;Fn.useColors=p4;Fn.storage=m4();Fn.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Fn.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p4(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function d4(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Vc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(n++,a==="%c"&&(i=n))}),t.splice(i,0,e)}Fn.log=console.debug||console.log||(()=>{});function h4(t){try{t?Fn.storage.setItem("debug",t):Fn.storage.removeItem("debug")}catch{}}function g4(){let t;try{t=Fn.storage.getItem("debug")||Fn.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function m4(){try{return localStorage}catch{}}Vc.exports=Xw()(Fn);var{formatters:f4}=Vc.exports;f4.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var _q=v((fn,Zc)=>{var w4=require("tty"),Jc=require("util");fn.init=j4;fn.log=b4;fn.formatArgs=C4;fn.save=y4;fn.load=P4;fn.useColors=v4;fn.destroy=Jc.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");fn.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(fn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}fn.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,r)=>r.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[n]=i,t},{});function v4(){return"colors"in fn.inspectOpts?!!fn.inspectOpts.colors:w4.isatty(process.stderr.fd)}function C4(t){let{namespace:e,useColors:n}=this;if(n){let i=this.color,a="\x1B[3"+(i<8?i:"8;5;"+i),r=` ${a};1m${e} \x1B[0m`;t[0]=r+t[0].split(` +`).join(` +`+r),t.push(a+"m+"+Zc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=A4()+e+" "+t[0]}function A4(){return fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function b4(...t){return process.stderr.write(Jc.formatWithOptions(fn.inspectOpts,...t)+` +`)}function y4(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function P4(){return process.env.DEBUG}function j4(t){t.inspectOpts={};let e=Object.keys(fn.inspectOpts);for(let n=0;ne.trim()).join(" ")};kq.O=function(t){return this.inspectOpts.colors=this.useColors,Jc.inspect(t,this.inspectOpts)}});var Uo=v((Foe,ev)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ev.exports=qq():ev.exports=_q()});var Hq=v(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});function S4(t){return function(e,n){return new Promise((i,a)=>{t.call(this,e,n,(r,s)=>{r?a(r):i(s)})})}}nv.default=S4});var zq=v((tv,Iq)=>{"use strict";var Rq=tv&&tv.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},O4=require("events"),x4=Rq(Uo()),T4=Rq(Hq()),Lo=x4.default("agent-base");function M4(t){return!!t&&typeof t.addRequest=="function"}function iv(){let{stack:t}=new Error;return typeof t!="string"?!1:t.split(` +`).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function Kc(t,e){return new Kc.Agent(t,e)}(function(t){class e extends O4.EventEmitter{constructor(i,a){super();let r=a;typeof i=="function"?this.callback=i:i&&(r=i),this.timeout=null,r&&typeof r.timeout=="number"&&(this.timeout=r.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:iv()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:iv()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,a,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,a){let r=Object.assign({},a);typeof r.secureEndpoint!="boolean"&&(r.secureEndpoint=iv()),r.host==null&&(r.host="localhost"),r.port==null&&(r.port=r.secureEndpoint?443:80),r.protocol==null&&(r.protocol=r.secureEndpoint?"https:":"http:"),r.host&&r.path&&delete r.path,delete r.agent,delete r.hostname,delete r._defaultAgent,delete r.defaultPort,delete r.createConnection,i._last=!0,i.shouldKeepAlive=!1;let s=!1,o=null,l=r.timeout||this.timeout,u=h=>{i._hadError||(i.emit("error",h),i._hadError=!0)},c=()=>{o=null,s=!0;let h=new Error(`A "socket" was not created for HTTP request before ${l}ms`);h.code="ETIMEOUT",u(h)},p=h=>{s||(o!==null&&(clearTimeout(o),o=null),u(h))},d=h=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),M4(h)){Lo("Callback returned another Agent instance %o",h.constructor.name),h.addRequest(i,r);return}if(h){h.once("free",()=>{this.freeSocket(h,r)}),i.onSocket(h);return}let g=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);u(g)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Lo("Converting legacy callback function to promise"),this.promisifiedCallback=T4.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(c,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{Lo("Resolving socket for %o request: %o",r.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,r)).then(d,p)}catch(h){Promise.reject(h).catch(p)}}freeSocket(i,a){Lo("Freeing socket %o %o",i.constructor.name,a),i.destroy()}destroy(){Lo("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Kc||(Kc={}));Iq.exports=Kc});var Dq=v(Bo=>{"use strict";var E4=Bo&&Bo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bo,"__esModule",{value:!0});var q4=E4(Uo()),Wo=q4.default("https-proxy-agent:parse-proxy-response");function k4(t){return new Promise((e,n)=>{let i=0,a=[];function r(){let p=t.read();p?c(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",u),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){Wo("onclose had error %o",p)}function l(){Wo("onend")}function u(p){s(),Wo("onerror %o",p),n(p)}function c(p){a.push(p),i+=p.length;let d=Buffer.concat(a,i);if(d.indexOf(`\r +\r +`)===-1){Wo("have not received end of HTTP headers yet..."),r();return}let g=d.toString("ascii",0,d.indexOf(`\r +`)),m=+g.split(" ")[1];Wo("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}Bo.default=k4});var Nq=v(Ra=>{"use strict";var _4=Ra&&Ra.__awaiter||function(t,e,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function o(c){try{u(i.next(c))}catch(p){s(p)}}function l(c){try{u(i.throw(c))}catch(p){s(p)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((i=i.apply(t,e||[])).next())})},es=Ra&&Ra.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ra,"__esModule",{value:!0});var Gq=es(require("net")),$q=es(require("tls")),H4=es(require("url")),R4=es(require("assert")),I4=es(Uo()),z4=zq(),D4=es(Dq()),Fo=I4.default("https-proxy-agent:agent"),av=class extends z4.Agent{constructor(e){let n;if(typeof e=="string"?n=H4.default.parse(e):n=e,!n)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Fo("creating new HttpsProxyAgent instance: %o",n),super(n);let i=Object.assign({},n);this.secureProxy=n.secureProxy||N4(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,n){return _4(this,void 0,void 0,function*(){let{proxy:i,secureProxy:a}=this,r;a?(Fo("Creating `tls.Socket`: %o",i),r=$q.default.connect(i)):(Fo("Creating `net.Socket`: %o",i),r=Gq.default.connect(i));let s=Object.assign({},i.headers),l=`CONNECT ${`${n.host}:${n.port}`} HTTP/1.1\r +`;i.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:p}=n;$4(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r +`;let d=D4.default(r);r.write(`${l}\r +`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",G4),n.secureEndpoint){Fo("Upgrading socket connection to TLS");let f=n.servername||n.host;return $q.default.connect(Object.assign(Object.assign({},U4(n,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new Gq.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Fo("replaying proxy buffer for failed request"),R4.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};Ra.default=av;function G4(t){t.resume()}function $4(t,e){return!!(!e&&t===80||e&&t===443)}function N4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function U4(t,...e){let n={},i;for(i in t)e.includes(i)||(n[i]=t[i]);return n}});var Lq=v((ov,Uq)=>{"use strict";var L4=ov&&ov.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},rv=L4(Nq());function sv(t){return new rv.default(t)}(function(t){t.HttpsProxyAgent=rv.default,t.prototype=rv.default.prototype})(sv||(sv={}));Uq.exports=sv});var Bq=v((Koe,Wq)=>{var Vo;Wq.exports=function(){if(!Vo){try{Vo=Uo()("follow-redirects")}catch{}typeof Vo!="function"&&(Vo=function(){})}Vo.apply(null,arguments)}});var Kq=v((Qoe,Cv)=>{var Zo=require("url"),Jo=Zo.URL,W4=require("http"),B4=require("https"),dv=require("stream").Writable,hv=require("assert"),Fq=Bq();(function(){var e=typeof process<"u",n=typeof window<"u"&&typeof document<"u",i=za(Error.captureStackTrace);!e&&(n||!i)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var gv=!1;try{hv(new Jo(""))}catch(t){gv=t.code==="ERR_INVALID_URL"}var F4=["Authorization","Proxy-Authorization","Cookie"],V4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],mv=["abort","aborted","connect","error","socket","timeout"],fv=Object.create(null);mv.forEach(function(t){fv[t]=function(e,n,i){this._redirectable.emit(t,e,n,i)}});var uv=Ko("ERR_INVALID_URL","Invalid URL",TypeError),cv=Ko("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),J4=Ko("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",cv),Z4=Ko("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),K4=Ko("ERR_STREAM_WRITE_AFTER_END","write after end"),Q4=dv.prototype.destroy||Jq;function Vn(t,e){dv.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var n=this;this._onNativeResponse=function(i){try{n._processResponse(i)}catch(a){n.emit("error",a instanceof cv?a:new cv({cause:a}))}},this._headerFilter=new RegExp("^(?:"+F4.concat(t.sensitiveHeaders).map(t3).join("|")+")$","i"),this._performRequest()}Vn.prototype=Object.create(dv.prototype);Vn.prototype.abort=function(){vv(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Vn.prototype.destroy=function(t){return vv(this._currentRequest,t),Q4.call(this,t),this};Vn.prototype.write=function(t,e,n){if(this._ending)throw new K4;if(!Ia(t)&&!n3(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(za(e)&&(n=e,e=null),t.length===0){n&&n();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,n)):(this.emit("error",new Z4),this.abort())};Vn.prototype.end=function(t,e,n){if(za(t)?(n=t,t=e=null):za(e)&&(n=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var i=this,a=this._currentRequest;this.write(t,e,function(){i._ended=!0,a.end(null,null,n)}),this._ending=!0}};Vn.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Vn.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Vn.prototype.setTimeout=function(t,e){var n=this;function i(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function a(s){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),r()},t),i(s)}function r(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",r),n.removeListener("error",r),n.removeListener("response",r),n.removeListener("close",r),e&&n.removeListener("timeout",e),n.socket||n._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",i),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Vn.prototype[t]=function(e,n){return this._currentRequest[t](e,n)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Vn.prototype,t,{get:function(){return this._currentRequest[t]}})});Vn.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),e3(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Vn.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var n=t.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of mv)i.on(a,fv[a]);if(this._currentUrl=/^\//.test(this._options.path)?Zo.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,o=this._requestBodyBuffers;(function l(u){if(i===s._currentRequest)if(u)s.emit("error",u);else if(r=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(vv(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new J4;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var r=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],lv(/^content-/i,this._options.headers));var s=lv(/^host$/i,this._options.headers),o=wv(this._currentUrl),l=s||o.host,u=/^\w+:/.test(n)?this._currentUrl:Zo.format(Object.assign(o,{host:l})),c=Y4(n,u);if(Fq("redirecting to",c.href),this._isRedirect=!0,pv(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!X4(c.host,l))&&lv(this._headerFilter,this._options.headers),za(a)){var p={headers:t.headers,statusCode:e},d={url:u,method:r,headers:i};a(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function Vq(t){var e={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(t).forEach(function(i){var a=i+":",r=n[a]=t[i],s=e[i]=Object.create(r);function o(u,c,p){return i3(u)?u=pv(u):Ia(u)?u=pv(wv(u)):(p=c,c=Zq(u),u={protocol:a}),za(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=n,!Ia(c.host)&&!Ia(c.hostname)&&(c.hostname="::1"),hv.equal(c.protocol,a,"protocol mismatch"),Fq("options",c),new Vn(c,p)}function l(u,c,p){var d=s.request(u,c,p);return d.end(),d}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function Jq(){}function wv(t){var e;if(gv)e=new Jo(t);else if(e=Zq(Zo.parse(t)),!Ia(e.protocol))throw new uv({input:t});return e}function Y4(t,e){return gv?new Jo(t,e):wv(Zo.resolve(e,t))}function Zq(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new uv({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new uv({input:t.href||t});return t}function pv(t,e){var n=e||{};for(var i of V4)n[i]=t[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),n.port!==""&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function lv(t,e){var n;for(var i in e)t.test(i)&&(n=e[i],delete e[i]);return n===null||typeof n>"u"?void 0:String(n).trim()}function Ko(t,e,n){function i(a){za(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),i}function vv(t,e){for(var n of mv)t.removeListener(n,fv[n]);t.on("error",Jq),t.destroy(e)}function X4(t,e){hv(Ia(t)&&Ia(e));var n=t.length-e.length-1;return n>0&&t[n]==="."&&t.endsWith(e)}function e3(t){return t instanceof Array}function Ia(t){return typeof t=="string"||t instanceof String}function za(t){return typeof t=="function"}function n3(t){return typeof t=="object"&&"length"in t}function i3(t){return Jo&&t instanceof Jo}function t3(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Cv.exports=Vq({http:W4,https:B4});Cv.exports.wrap=Vq});var Kk=v((Yoe,Zk)=>{"use strict";var bk=Tq(),a3=require("crypto"),r3=require("url"),yk=Lq(),s3=require("http"),o3=require("https"),Pk=require("http2"),Iv=require("util"),Qq=require("path"),l3=Kq(),$t=require("zlib"),Jn=require("stream"),u3=require("events");function jk(t,e){return function(){return t.apply(e,arguments)}}var{toString:c3}=Object.prototype,{getPrototypeOf:sp}=Object,{iterator:op,toStringTag:Sk}=Symbol,lp=(t=>e=>{let n=c3.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xi=t=>(t=t.toLowerCase(),e=>lp(e)===t),up=t=>e=>typeof e===t,{isArray:rs}=Array,ts=up("undefined");function el(t){return t!==null&&!ts(t)&&t.constructor!==null&&!ts(t.constructor)&&Zn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var Ok=xi("ArrayBuffer");function p3(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ok(t.buffer),e}var d3=up("string"),Zn=up("function"),xk=up("number"),nl=t=>t!==null&&typeof t=="object",h3=t=>t===!0||t===!1,Xc=t=>{if(lp(t)!=="object")return!1;let e=sp(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Sk in t)&&!(op in t)},g3=t=>{if(!nl(t)||el(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},m3=xi("Date"),f3=xi("File"),w3=t=>!!(t&&typeof t.uri<"u"),v3=t=>t&&typeof t.getParts<"u",C3=xi("Blob"),A3=xi("FileList"),b3=t=>nl(t)&&Zn(t.pipe);function y3(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Yq=y3(),Xq=typeof Yq.FormData<"u"?Yq.FormData:void 0,P3=t=>{if(!t)return!1;if(Xq&&t instanceof Xq)return!0;let e=sp(t);if(!e||e===Object.prototype||!Zn(t.append))return!1;let n=lp(t);return n==="formdata"||n==="object"&&Zn(t.toString)&&t.toString()==="[object FormData]"},j3=xi("URLSearchParams"),[S3,O3,x3,T3]=["ReadableStream","Request","Response","Headers"].map(xi),M3=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function il(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),rs(t))for(i=0,a=t.length;i0;)if(a=n[i],e===a.toLowerCase())return a;return null}var Da=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mk=t=>!ts(t)&&t!==Da;function Ov(...t){let{caseless:e,skipUndefined:n}=Mk(this)&&this||{},i={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&Tk(i,s)||s,l=xv(i,o)?i[o]:void 0;Xc(l)&&Xc(r)?i[o]=Ov(l,r):Xc(r)?i[o]=Ov({},r):rs(r)?i[o]=r.slice():(!n||!ts(r))&&(i[o]=r)};for(let r=0,s=t.length;r(il(e,(a,r)=>{n&&Zn(a)?Object.defineProperty(t,r,{__proto__:null,value:jk(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),q3=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),k3=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},_3=(t,e,n,i)=>{let a,r,s,o={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),r=a.length;r-- >0;)s=a[r],(!i||i(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=n!==!1&&sp(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},H3=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;let i=t.indexOf(e,n);return i!==-1&&i===n},R3=t=>{if(!t)return null;if(rs(t))return t;let e=t.length;if(!xk(e))return null;let n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},I3=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&sp(Uint8Array)),z3=(t,e)=>{let i=(t&&t[op]).call(t),a;for(;(a=i.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},D3=(t,e)=>{let n,i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},G3=xi("HTMLFormElement"),$3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),xv=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),N3=xi("RegExp"),Ek=(t,e)=>{let n=Object.getOwnPropertyDescriptors(t),i={};il(n,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(i[r]=s||a)}),Object.defineProperties(t,i)},U3=t=>{Ek(t,(e,n)=>{if(Zn(t)&&["arguments","caller","callee"].includes(n))return!1;let i=t[n];if(Zn(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},L3=(t,e)=>{let n={},i=a=>{a.forEach(r=>{n[r]=!0})};return rs(t)?i(t):i(String(t).split(e)),n},W3=()=>{},B3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function F3(t){return!!(t&&Zn(t.append)&&t[Sk]==="FormData"&&t[op])}var V3=t=>{let e=new WeakSet,n=i=>{if(nl(i)){if(e.has(i))return;if(el(i))return i;if(!("toJSON"in i)){e.add(i);let a=rs(i)?[]:{};return il(i,(r,s)=>{let o=n(r);!ts(o)&&(a[s]=o)}),e.delete(i),a}}return i};return n(t)},J3=xi("AsyncFunction"),Z3=t=>t&&(nl(t)||Zn(t))&&Zn(t.then)&&Zn(t.catch),qk=((t,e)=>t?setImmediate:e?((n,i)=>(Da.addEventListener("message",({source:a,data:r})=>{a===Da&&r===n&&i.length&&i.shift()()},!1),a=>{i.push(a),Da.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Zn(Da.postMessage)),K3=typeof queueMicrotask<"u"?queueMicrotask.bind(Da):typeof process<"u"&&process.nextTick||qk,Q3=t=>t!=null&&Zn(t[op]),C={isArray:rs,isArrayBuffer:Ok,isBuffer:el,isFormData:P3,isArrayBufferView:p3,isString:d3,isNumber:xk,isBoolean:h3,isObject:nl,isPlainObject:Xc,isEmptyObject:g3,isReadableStream:S3,isRequest:O3,isResponse:x3,isHeaders:T3,isUndefined:ts,isDate:m3,isFile:f3,isReactNativeBlob:w3,isReactNative:v3,isBlob:C3,isRegExp:N3,isFunction:Zn,isStream:b3,isURLSearchParams:j3,isTypedArray:I3,isFileList:A3,forEach:il,merge:Ov,extend:E3,trim:M3,stripBOM:q3,inherits:k3,toFlatObject:_3,kindOf:lp,kindOfTest:xi,endsWith:H3,toArray:R3,forEachEntry:z3,matchAll:D3,isHTMLForm:G3,hasOwnProperty:xv,hasOwnProp:xv,reduceDescriptors:Ek,freezeMethods:U3,toObjectSet:L3,toCamelCase:$3,noop:W3,toFiniteNumber:B3,findKey:Tk,global:Da,isContextDefined:Mk,isSpecCompliantForm:F3,toJSONObject:V3,isAsyncFn:J3,isThenable:Z3,setImmediate:qk,asap:K3,isIterable:Q3},Y3=C.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X3=t=>{let e={},n,i,a;return t&&t.split(` +`).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),i=s.substring(a+1).trim(),!(!n||e[n]&&Y3[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e};function eZ(t){let e=0,n=t.length;for(;ee;){let i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}var nZ=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),iZ=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function zv(t,e){return C.isArray(t)?t.map(n=>zv(n,e)):eZ(String(t).replace(e,""))}var tZ=t=>zv(t,nZ),aZ=t=>zv(t,iZ);function Dv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(n,i)=>{e[i]=aZ(n)}),e}var ek=Symbol("internals");function Qo(t){return t&&String(t).trim().toLowerCase()}function ep(t){return t===!1||t==null?t:C.isArray(t)?t.map(ep):tZ(String(t))}function rZ(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}var sZ=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Av(t,e,n,i,a){if(C.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!C.isString(e)){if(C.isString(i))return e.indexOf(i)!==-1;if(C.isRegExp(i))return i.test(e)}}function oZ(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function lZ(t,e){let n=C.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{__proto__:null,value:function(a,r,s){return this[i].call(this,e,a,r,s)},configurable:!0})})}var an=class{constructor(e){e&&this.set(e)}set(e,n,i){let a=this;function r(o,l,u){let c=Qo(l);if(!c)throw new Error("header name must be a non-empty string");let p=C.findKey(a,c);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||l]=ep(o))}let s=(o,l)=>C.forEach(o,(u,c)=>r(u,c,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(C.isString(e)&&(e=e.trim())&&!sZ(e))s(X3(e),n);else if(C.isObject(e)&&C.isIterable(e)){let o={},l,u;for(let c of e){if(!C.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?C.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,n)}else e!=null&&r(n,e,i);return this}get(e,n){if(e=Qo(e),e){let i=C.findKey(this,e);if(i){let a=this[i];if(!n)return a;if(n===!0)return rZ(a);if(C.isFunction(n))return n.call(this,a,i);if(C.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Qo(e),e){let i=C.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Av(this,this[i],i,n)))}return!1}delete(e,n){let i=this,a=!1;function r(s){if(s=Qo(s),s){let o=C.findKey(i,s);o&&(!n||Av(i,i[o],o,n))&&(delete i[o],a=!0)}}return C.isArray(e)?e.forEach(r):r(e),a}clear(e){let n=Object.keys(this),i=n.length,a=!1;for(;i--;){let r=n[i];(!e||Av(this,this[r],r,e,!0))&&(delete this[r],a=!0)}return a}normalize(e){let n=this,i={};return C.forEach(this,(a,r)=>{let s=C.findKey(i,r);if(s){n[s]=ep(a),delete n[r];return}let o=e?oZ(r):String(r).trim();o!==r&&delete n[r],n[o]=ep(a),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let n=Object.create(null);return C.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&C.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){let i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){let i=(this[ek]=this[ek]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=Qo(s);i[o]||(lZ(a,s),i[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};an.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(an.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});C.freezeMethods(an);var uZ="[REDACTED ****]";function cZ(t){if(C.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(C.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function pZ(t,e){let n=new Set(e.map(r=>String(r).toLowerCase())),i=[],a=r=>{if(r===null||typeof r!="object"||C.isBuffer(r))return r;if(i.indexOf(r)!==-1)return;r instanceof an&&(r=r.toJSON()),i.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let u=a(o);C.isUndefined(u)||(s[l]=u)});else{if(!C.isPlainObject(r)&&cZ(r))return i.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=n.has(o.toLowerCase())?uZ:a(l);C.isUndefined(u)||(s[o]=u)}}return i.pop(),s};return a(t)}var T=class t extends Error{static from(e,n,i,a,r,s){let o=new t(e.message,n||e.code,i,a,r);return o.cause=e,o.name=e.name,e.status!=null&&o.status==null&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,n,i,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){let e=this.config,n=e&&C.hasOwnProp(e,"redact")?e.redact:void 0,i=C.isArray(n)&&n.length>0?pZ(e,n):C.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";T.ERR_BAD_OPTION="ERR_BAD_OPTION";T.ECONNABORTED="ECONNABORTED";T.ETIMEDOUT="ETIMEDOUT";T.ECONNREFUSED="ECONNREFUSED";T.ERR_NETWORK="ERR_NETWORK";T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";T.ERR_DEPRECATED="ERR_DEPRECATED";T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";T.ERR_BAD_REQUEST="ERR_BAD_REQUEST";T.ERR_CANCELED="ERR_CANCELED";T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";T.ERR_INVALID_URL="ERR_INVALID_URL";T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Tv(t){return C.isPlainObject(t)||C.isArray(t)}function kk(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function bv(t,e,n){return t?t.concat(e).map(function(a,r){return a=kk(a),!n&&r?"["+a+"]":a}).join(n?".":""):e}function dZ(t){return C.isArray(t)&&!t.some(Tv)}var hZ=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function cp(t,e,n){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(bk||FormData),n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,w){return!C.isUndefined(w[f])});let i=n.metaTokens,a=n.visitor||p,r=n.dots,s=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,u=o&&C.isSpecCompliantForm(e);if(!C.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,f,w){let b=m;if(C.isReactNative(e)&&C.isReactNativeBlob(m))return e.append(bv(w,f,r),c(m)),!1;if(m&&!w&&typeof m=="object"){if(C.endsWith(f,"{}"))f=i?f:f.slice(0,-2),m=JSON.stringify(m);else if(C.isArray(m)&&dZ(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(b=C.toArray(m)))return f=kk(f),b.forEach(function(y,O){!(C.isUndefined(y)||y===null)&&e.append(s===!0?bv([f],O,r):s===null?f:f+"[]",c(y))}),!1}return Tv(m)?!0:(e.append(bv(w,f,r),c(m)),!1)}let d=[],h=Object.assign(hZ,{defaultVisitor:p,convertValue:c,isVisitable:Tv});function g(m,f,w=0){if(!C.isUndefined(m)){if(w>l)throw new T("Object is too deeply nested ("+w+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),C.forEach(m,function(A,y){(!(C.isUndefined(A)||A===null)&&a.call(e,A,C.isString(y)?y.trim():y,f,h))===!0&&g(A,f?f.concat(y):[y],w+1)}),d.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function nk(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function _k(t,e){this._pairs=[],t&&cp(t,this,e)}var Hk=_k.prototype;Hk.append=function(e,n){this._pairs.push([e,n])};Hk.toString=function(e){let n=e?function(i){return e.call(this,i,nk)}:nk;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function gZ(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gv(t,e,n){if(!e)return t;let i=n&&n.encode||gZ,a=C.isFunction(n)?{serialize:n}:n,r=a&&a.serialize,s;if(r?s=r(e,a):s=C.isURLSearchParams(e)?e.toString():new _k(e,a).toString(i),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var ip=class{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(i){i!==null&&e(i)})}},pp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},mZ=r3.URLSearchParams,yv="abcdefghijklmnopqrstuvwxyz",ik="0123456789",Rk={DIGIT:ik,ALPHA:yv,ALPHA_DIGIT:yv+yv.toUpperCase()+ik},fZ=(t=16,e=Rk.ALPHA_DIGIT)=>{let n="",{length:i}=e,a=new Uint32Array(t);a3.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function jZ(t){let e={},n=Object.keys(t),i,a=n.length,r;for(i=0;i=n.length;return s=!s&&C.isArray(a)?a.length:s,l?(C.hasOwnProp(a,s)?a[s]=C.isArray(a[s])?a[s].concat(i):[a[s],i]:a[s]=i,!o):((!C.hasOwnProp(a,s)||!C.isObject(a[s]))&&(a[s]=[]),e(n,i,a[s],r)&&C.isArray(a[s])&&(a[s]=jZ(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let n={};return C.forEachEntry(t,(i,a)=>{e(PZ(i),a,n,0)}),n}return null}var ns=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function SZ(t,e,n){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}var tl={transitional:pp,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){let i=n.getContentType()||"",a=i.indexOf("application/json")>-1,r=C.isObject(e);if(r&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return a?JSON.stringify(Ik(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e)||C.isReadableStream(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){let l=ns(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return yZ(e,l).toString();if((o=C.isFileList(e))||i.indexOf("multipart/form-data")>-1){let u=ns(this,"env"),c=u&&u.FormData;return cp(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(n.setContentType("application/json",!1),SZ(e)):e}],transformResponse:[function(e){let n=ns(this,"transitional")||tl.transitional,i=n&&n.forcedJSONParsing,a=ns(this,"responseType"),r=a==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(i&&!a||r)){let o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e,ns(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,ns(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],t=>{tl.headers[t]={}});function Pv(t,e){let n=this||tl,i=e||n,a=an.from(i.headers),r=i.data;return C.forEach(t,function(o){r=o.call(n,r,a.normalize(),e?e.status:void 0)}),a.normalize(),r}function zk(t){return!!(t&&t.__CANCEL__)}var ct=class extends T{constructor(e,n,i){super(e??"canceled",T.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function is(t,e,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new T("Request failed with status code "+n.status,n.status>=400&&n.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,n.config,n.request,n))}function OZ(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function xZ(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Nv(t,e,n){let i=!OZ(e);return t&&(i||n===!1)?xZ(t,e):e}var TZ={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function MZ(t){try{return new URL(t)}catch{return null}}function EZ(t){var e=(typeof t=="string"?MZ(t):t)||{},n=e.protocol,i=e.host,a=e.port;if(typeof i!="string"||!i||typeof n!="string"||(n=n.split(":",1)[0],i=i.replace(/:\d*$/,""),a=parseInt(a)||TZ[n]||0,!qZ(i,a)))return"";var r=Ev(n+"_proxy")||Ev("all_proxy");return r&&r.indexOf("://")===-1&&(r=n+"://"+r),r}function qZ(t,e){var n=Ev("no_proxy").toLowerCase();return n?n==="*"?!1:n.split(/[,\s]/).every(function(i){if(!i)return!0;var a=i.match(/^(.+):(\d+)$/),r=a?a[1]:i,s=a?parseInt(a[2]):0;return s&&s!==e?!0:/^[.*]/.test(r)?(r.charAt(0)==="*"&&(r=r.slice(1)),!t.endsWith(r)):t!==r}):!0}function Ev(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Yo="1.16.1";function Dk(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var kZ=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function _Z(t,e,n){let i=n&&n.Blob||Qe.classes.Blob,a=Dk(t);if(e===void 0&&i&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=kZ.exec(t);if(!r)throw new T("Invalid URL",T.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",u=r[4],c;s?c=o?s+o:s:o&&(c="text/plain"+o);let p=Buffer.from(decodeURIComponent(u),l);if(e){if(!i)throw new T("Blob is not supported",T.ERR_NOT_SUPPORT);return new i([p],{type:c})}return p}throw new T("Unsupported protocol "+a,T.ERR_NOT_SUPPORT)}var jv=Symbol("internals"),tp=class extends Jn.Transform{constructor(e){e=C.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(i,a)=>!C.isUndefined(a[i])),super({readableHighWaterMark:e.chunkSize});let n=this[jv]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",i=>{i==="progress"&&(n.isCaptured||(n.isCaptured=!0))})}_read(e){let n=this[jv];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,i){let a=this[jv],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,u=r/l,c=a.minChunkSize!==!1?Math.max(a.minChunkSize,u*.01):0,p=(h,g)=>{let m=Buffer.byteLength(h);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(h)?process.nextTick(g):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(g)}},d=(h,g)=>{let m=Buffer.byteLength(h),f=null,w=s,b,A=0;if(r){let y=Date.now();(!a.ts||(A=y-a.ts)>=o)&&(a.ts=y,b=u-a.bytes,a.bytes=b<0?-b:0,A=0),b=u-a.bytes}if(r){if(b<=0)return setTimeout(()=>{g(null,h)},o-A);bw&&m-w>c&&(f=h.subarray(w),h=h.subarray(0,w)),p(h,f?()=>{process.nextTick(g,null,f)}:g)};d(e,function h(g,m){if(g)return i(g);m?d(m,h):i(null)})}},{asyncIterator:tk}=Symbol,Gk=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[tk]?yield*t[tk]():yield t},HZ=Qe.ALPHABET.ALPHA_DIGIT+"-_",Xo=typeof TextEncoder=="function"?new TextEncoder:new Iv.TextEncoder,Ga=`\r +`,RZ=Xo.encode(Ga),IZ=2,qv=class{constructor(e,n){let{escapeName:i}=this.constructor,a=C.isString(n),r=`Content-Disposition: form-data; name="${i(e)}"${!a&&n.name?`; filename="${i(n.name)}"`:""}${Ga}`;if(a)n=Xo.encode(String(n).replace(/\r?\n|\r\n?/g,Ga));else{let s=String(n.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ga}`}this.headers=Xo.encode(r+Ga),this.contentLength=a?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+IZ,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*Gk(e),yield RZ}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},zZ=(t,e,n)=>{let{tag:i="form-data-boundary",size:a=25,boundary:r=i+"-"+Qe.generateString(a,HZ)}=n||{};if(!C.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 1-70 characters long");let s=Xo.encode("--"+r+Ga),o=Xo.encode("--"+r+"--"+Ga),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new qv(p,d);return l+=h.size,h});l+=s.byteLength*u.length,l=C.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(c["Content-Length"]=l),e&&e(c),Jn.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},kv=class extends Jn.Transform{__transform(e,n,i){this.push(e),i()}_transform(e,n,i){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let a=Buffer.alloc(2);a[0]=120,a[1]=156,this.push(a,n)}this.__transform(e,n,i)}},DZ=(t,e)=>C.isAsyncFn(t)?function(...n){let i=n.pop();t.apply(this,n).then(a=>{try{e?i(null,...e(a)):i(null,a)}catch(r){i(r)}},i)}:t,GZ=new Set(["localhost"]),$k=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(n=>/^\d+$/.test(n)&&Number(n)>=0&&Number(n)<=255)},$Z=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return $k(e[1]);let n=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(n){let a=parseInt(n[1],16);return a>=32512&&a<=32767}let i=t.split(":");if(i.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(i[a]))return!1;return/^0*1$/.test(i[7])}return!1},ak=t=>t?GZ.has(t)||$k(t)?!0:$Z(t):!1,NZ={http:80,https:443,ws:80,wss:443,ftp:21},UZ=t=>{let e=t,n=0;if(e.charAt(0)==="["){let r=e.indexOf("]");if(r!==-1){let s=e.slice(1,r),o=e.slice(r+1);return o.charAt(0)===":"&&/^\d+$/.test(o.slice(1))&&(n=Number.parseInt(o.slice(1),10)),[s,n]}}let i=e.indexOf(":"),a=e.lastIndexOf(":");return i!==-1&&i===a&&/^\d+$/.test(e.slice(a+1))&&(n=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,n]},LZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,WZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,BZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(LZ);if(e)return e[1];let n=t.match(WZ);if(n){let i=parseInt(n[1],16),a=parseInt(n[2],16);return`${i>>8}.${i&255}.${a>>8}.${a&255}`}return t},rk=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),BZ(t.replace(/\.+$/,"")));function FZ(t){let e;try{e=new URL(t)}catch{return!1}let n=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!n)return!1;if(n==="*")return!0;let i=Number.parseInt(e.port,10)||NZ[e.protocol.split(":",1)[0]]||0,a=rk(e.hostname.toLowerCase());return n.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=UZ(r);return s=rk(s),!s||o&&o!==i?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||ak(a)&&ak(s))})}function VZ(t,e){t=t||10;let n=new Array(t),i=new Array(t),a=0,r=0,s;return e=e!==void 0?e:1e3,function(l){let u=Date.now(),c=i[r];s||(s=u),n[a]=l,i[a]=u;let p=r,d=0;for(;p!==a;)d+=n[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),u-s{n=c,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let c=Date.now(),p=c-n;p>=i?s(u,c):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},i-p)))},()=>a&&s(a)]}var as=(t,e,n=3)=>{let i=0,a=VZ(50,250);return JZ(r=>{if(!r||typeof r.loaded!="number")return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-i),c=a(u);i=Math.max(i,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-l)/c:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},ap=(t,e)=>{let n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},rp=t=>(...e)=>C.asap(()=>t(...e));function Nk(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let n=t.slice(5,e),i=t.slice(e+1);if(/;base64/i.test(n)){let s=i.length,o=i.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,h+=2)}let l=0,u=o-1,c=h=>h>=2&&i.charCodeAt(h-2)===37&&i.charCodeAt(h-1)===51&&(i.charCodeAt(h)===68||i.charCodeAt(h)===100);u>=0&&(i.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(i.charCodeAt(u)===61||c(u))&&l++;let d=Math.floor(s/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(i,"utf8");let r=0;for(let s=0,o=i.length;s=55296&&l<=56319&&s+1=56320&&u<=57343?(r+=4,s++):r+=3}else r+=3}return r}var sk={flush:$t.constants.Z_SYNC_FLUSH,finishFlush:$t.constants.Z_SYNC_FLUSH},ZZ={flush:$t.constants.BROTLI_OPERATION_FLUSH,finishFlush:$t.constants.BROTLI_OPERATION_FLUSH},ok=C.isFunction($t.createBrotliDecompress),{http:KZ,https:QZ}=l3,Uk=/https:?/,YZ=["content-type","content-length"];function XZ(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e).forEach(([i,a])=>{YZ.includes(i.toLowerCase())&&t.set(i,a)})}var lk=Symbol("axios.http.socketListener"),Qc=Symbol("axios.http.currentReq"),Lk=Symbol("axios.http.installedTunnel"),e5=new Map,uk=new WeakMap;function n5(t,e){let n=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),i=e?uk.get(e)||uk.set(e,new Map).get(e):e5,a=i.get(n);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new yk(r),a[Lk]=!0,i.set(n,a),a}var ck=Qe.protocols.map(t=>t+":"),pk=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},dk=(t,[e,n])=>(t.on("end",n).on("error",n),e),_v=class{constructor(){this.sessions=Object.create(null)}getSession(e,n){n=Object.assign({sessionTimeout:1e3},n);let i=this.sessions[e];if(i){let c=i.length;for(let p=0;p{if(r)return;r=!0;let c=i,p=c.length,d=p;for(;d--;)if(c[d][0]===a){p===1?delete this.sessions[e]:c.splice(d,1),a.closed||a.close();return}},o=a.request,{sessionTimeout:l}=n;if(l!=null){let c,p=0;a.request=function(){let d=o.apply(this,arguments);return p++,c&&(clearTimeout(c),c=null),d.once("close",()=>{--p||(c=setTimeout(()=>{c=null,s()},l))}),d}}a.once("close",s);let u=[a,n];return i?i.push(u):i=this.sessions[e]=[u],a}},i5=new _v;function t5(t,e,n){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,n)}function Wk(t,e,n,i,a){let r=e;if(!r&&r!==!1){let s=EZ(n);s&&(FZ(n)||(r=new URL(s)))}if(i&&t.headers)for(let s of Object.keys(t.headers))s.toLowerCase()==="proxy-authorization"&&delete t.headers[s];if(i&&t.agent&&t.agent[Lk]&&(t.agent=void 0),r){let s=r instanceof URL,o=d=>s||C.hasOwnProp(r,d)?r[d]:void 0,l=o("username"),u=o("password"),c=C.hasOwnProp(r,"auth")?r.auth:void 0;if(l&&(c=(l||"")+":"+(u||"")),c){let d=typeof c=="object",h=d&&C.hasOwnProp(c,"username")?c.username:void 0,g=d&&C.hasOwnProp(c,"password")?c.password:void 0;if(!!(h||g))c=(h||"")+":"+(g||"");else if(d)throw new T("Invalid proxy authorization",T.ERR_BAD_OPTION,{proxy:r})}if(Uk.test(t.protocol)){if(!(a instanceof yk)){let d=o("hostname")||o("host"),h=o("port"),g=o("protocol"),m=g?g.includes(":")?g:`${g}:`:"http:",f=d&&d.includes(":")&&!d.startsWith("[")?`[${d}]`:d,w=new URL(`${m}//${f}${h?":"+h:""}`),b={protocol:w.protocol,hostname:w.hostname.replace(/^\[|\]$/g,""),port:w.port,auth:c&&typeof c=="string"?c:void 0};w.protocol==="https:"&&(b.ALPNProtocols=["http/1.1"]);let A=n5(b,a);t.agent=A,t.agents&&(t.agents.https=A)}}else{if(c){let m=Buffer.from(c,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+m}let d=!1;for(let m of Object.keys(t.headers))if(m.toLowerCase()==="host"){d=!0;break}d||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let h=o("hostname")||o("host");t.hostname=h,t.host=h,t.port=o("port"),t.path=n;let g=o("protocol");g&&(t.protocol=g.includes(":")?g:`${g}:`)}}t.beforeRedirects.proxy=function(o){Wk(o,e,o.href,!0,a)}}var a5=typeof process<"u"&&C.kindOf(process)==="process",r5=t=>new Promise((e,n)=>{let i,a,r=(l,u)=>{a||(a=!0,i&&i(l,u))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),n(l)};t(s,o,l=>i=l).catch(o)}),s5=({address:t,family:e})=>{if(!C.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},hk=(t,e)=>s5(C.isObject(t)?t:{address:t,family:e}),o5={request(t,e){let n=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:i,headers:a}=t,r=i5.getSession(n,i),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Pk.constants,c={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(d,h)=>{h.charAt(0)!==":"&&(c[h]=d)});let p=r.request(c);return p.once("response",d=>{let h=p;d=Object.assign({},d);let g=d[u];delete d[u],h.headers=d,h.statusCode=+g,e(h)}),p}},l5=a5&&function(e){return r5(async function(i,a,r){let s=G=>C.hasOwnProp(e,G)?e[G]:void 0,o=s("data"),l=s("lookup"),u=s("family"),c=s("httpVersion");c===void 0&&(c=1);let p=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),g=e.method.toUpperCase(),m,f=!1,w,b;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let A=c===2;if(l){let G=DZ(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,tn,dn)=>{if(ye)return Je(ye);let xe=C.isArray(tn)?tn.map(mt=>hk(mt)):[hk(tn,dn)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let y=new u3.EventEmitter;function O(G){try{y.emit("abort",!G||G.type?new ct(null,e,w):G)}catch(x){console.warn("emit error",x)}}function $(){b&&(clearTimeout(b),b=null)}function N(){let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",x=e.transitional||pp;return e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),new T(G,x.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,w)}y.once("abort",a);let X=()=>{$(),e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),y.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),r((G,x)=>{if(m=!0,$(),x){f=!0,X();return}let{data:be}=G;if(be instanceof Jn.Readable||be instanceof Jn.Duplex){let Je=Jn.finished(be,()=>{Je(),X()})}else X()});let F=Nv(e.baseURL,e.url,e.allowAbsoluteUrls),q=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=q.protocol||ck[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(Nk(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return is(i,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=_Z(e.url,d==="blob",{Blob:e.env&&e.env.Blob})}catch(x){throw T.from(x,T.ERR_BAD_REQUEST,e)}return d==="text"?(G=G.toString(h),(!h||h==="utf8")&&(G=C.stripBOM(G))):d==="stream"&&(G=Jn.Readable.from(G)),is(i,a,{data:G,status:200,statusText:"OK",headers:new an,config:e})}if(ck.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=an.from(e.headers).normalize();Z.set("User-Agent","axios/"+Yo,!1);let{onUploadProgress:ne,onDownloadProgress:se}=e,De=e.maxRate,S,R;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=zZ(o,x=>{Z.set(x)},{tag:`axios-${Yo}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(XZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await Iv.promisify(o.getLength).call(o);Number.isFinite(G)&&G>=0&&Z.setContentLength(G)}catch{}}else if(C.isBlob(o)||C.isFile(o))o.size&&Z.setContentType(o.type||"application/octet-stream"),Z.setContentLength(o.size||0),o=Jn.Readable.from(Gk(o));else if(o&&!C.isStream(o)){if(!Buffer.isBuffer(o))if(C.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(C.isString(o))o=Buffer.from(o,"utf-8");else return a(new T("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",T.ERR_BAD_REQUEST,e));if(Z.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return a(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e))}let Ae=C.toFiniteNumber(Z.getContentLength());C.isArray(De)?(S=De[0],R=De[1]):S=R=De,o&&(ne||S)&&(C.isStream(o)||(o=Jn.Readable.from(o,{objectMode:!1})),o=Jn.pipeline([o,new tp({maxRate:C.toFiniteNumber(S)})],C.noop),ne&&o.on("progress",dk(o,ap(Ae,as(rp(ne),!1,3)))));let Se,I=s("auth");if(I){let G=I.username||"",x=I.password||"";Se=G+":"+x}if(!Se&&q.username){let G=pk(q.username),x=pk(q.password);Se=G+":"+x}Se&&Z.delete("authorization");let en;try{en=Gv(q.pathname+q.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(G){let x=new Error(G.message);return x.config=e,x.url=e.url,x.exists=!0,a(x)}Z.set("Accept-Encoding","gzip, compress, deflate"+(ok?", br":""),!1);let Re=Object.assign(Object.create(null),{path:en,method:g,headers:Dv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:t5,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Re.lookup=l),e.socketPath){if(typeof e.socketPath!="string")return a(new T("socketPath must be a string",T.ERR_BAD_OPTION_VALUE,e));if(e.allowedSocketPaths!=null){let G=Array.isArray(e.allowedSocketPaths)?e.allowedSocketPaths:[e.allowedSocketPaths],x=Qq.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&Qq.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Re.socketPath=e.socketPath}else Re.hostname=q.hostname.startsWith("[")?q.hostname.slice(1,-1):q.hostname,Re.port=q.port,Wk(Re,e.proxy,Q+"//"+q.hostname+(q.port?":"+q.port:"")+Re.path,!1,e.httpsAgent);let Me,xn=!1,Cn=Uk.test(Re.protocol);if(Re.agent==null&&(Re.agent=Cn?e.httpsAgent:e.httpAgent),A)Me=o5;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=Cn?o3:s3,xn=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=Cn?QZ:KZ}}e.maxBodyLength>-1?Re.maxBodyLength=e.maxBodyLength:Re.maxBodyLength=1/0,Re.insecureHTTPParser=!!s("insecureHTTPParser"),w=Me.request(Re,function(x){if($(),w.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||R){let xe=new tp({maxRate:C.toFiniteNumber(R)});se&&xe.on("progress",dk(xe,ap(Je,as(rp(se),!0,3)))),be.push(xe)}let ye=x,tn=x.req||w;if(e.decompress!==!1&&x.headers["content-encoding"])switch((g==="HEAD"||x.statusCode===204)&&delete x.headers["content-encoding"],(x.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":be.push($t.createUnzip(sk)),delete x.headers["content-encoding"];break;case"deflate":be.push(new kv),be.push($t.createUnzip(sk)),delete x.headers["content-encoding"];break;case"br":ok&&(be.push($t.createBrotliDecompress(ZZ)),delete x.headers["content-encoding"])}ye=be.length>1?Jn.pipeline(be,C.noop):be[0];let dn={status:x.statusCode,statusText:x.statusMessage,headers:new an(x.headers),config:e,request:tn};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,mt=ye;async function*wi(){let Ge=0;for await(let ir of mt){if(Ge+=ir.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,tn);yield ir}}ye=Jn.Readable.from(wi(),{objectMode:!1})}dn.data=ye,is(i,a,dn)}else{let xe=[],mt=0;ye.on("data",function(Ge){xe.push(Ge),mt+=Ge.length,e.maxContentLength>-1&&mt>e.maxContentLength&&(f=!0,ye.destroy(),O(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e,tn)))}),ye.on("aborted",function(){if(f)return;let Ge=new T("stream has been aborted",T.ERR_BAD_RESPONSE,e,tn,dn);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,tn,dn))}),ye.on("end",function(){try{let Ge=xe.length===1?xe[0]:Buffer.concat(xe);d!=="arraybuffer"&&(Ge=Ge.toString(h),(!h||h==="utf8")&&(Ge=C.stripBOM(Ge))),dn.data=Ge}catch(Ge){return a(T.from(Ge,null,e,dn.request,dn))}is(i,a,dn)})}y.once("abort",xe=>{ye.destroyed||(ye.emit("error",xe),ye.destroy())})}),y.once("abort",G=>{w.close?w.close():w.destroy(G)}),w.on("error",function(x){a(T.from(x,null,e,w))});let ii=new Set;if(w.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[lk]||(x.on("error",function(Je){let ye=x[Qc];ye&&!ye.destroyed&&ye.destroy(Je)}),x[lk]=!0),x[Qc]=w,ii.add(x)}),w.once("close",function(){$();for(let x of ii)x[Qc]===w&&(x[Qc]=null);ii.clear()}),e.timeout){let G=parseInt(e.timeout,10);if(Number.isNaN(G)){O(new T("error trying to parse `config.timeout` to int",T.ERR_BAD_OPTION_VALUE,e,w));return}let x=function(){m||O(N())};xn&&G>0&&(b=setTimeout(x,G)),w.setTimeout(G,x)}else w.setTimeout(0);if(C.isStream(o)){let G=!1,x=!1;o.on("end",()=>{G=!0}),o.once("error",Je=>{x=!0,w.destroy(Je)}),o.on("close",()=>{!G&&!x&&O(new ct("Request stream has been aborted",e,w))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Jn.pipeline([o,new Jn.Transform({transform(tn,dn,xe){if(ye+=tn.length,ye>Je)return xe(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e,w));xe(null,tn)}})],C.noop),be.on("error",tn=>{w.destroyed||w.destroy(tn)})}be.pipe(w)}else o&&w.write(o),w.end()})},u5=Qe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Qe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,c5=Qe.hasStandardBrowserEnv?{write(t,e,n,i,a,r,s){if(typeof document>"u")return;let o=[`${t}=${encodeURIComponent(e)}`];C.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),C.isString(i)&&o.push(`path=${i}`),C.isString(a)&&o.push(`domain=${a}`),r===!0&&o.push("secure"),C.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(t){if(typeof document>"u")return null;let e=document.cookie.split(";");for(let n=0;nt instanceof an?{...t}:t;function $a(t,e){e=e||{};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(u,c,p,d){return C.isPlainObject(u)&&C.isPlainObject(c)?C.merge.call({caseless:d},u,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function a(u,c,p,d){if(C.isUndefined(c)){if(!C.isUndefined(u))return i(void 0,u,p,d)}else return i(u,c,p,d)}function r(u,c){if(!C.isUndefined(c))return i(void 0,c)}function s(u,c){if(C.isUndefined(c)){if(!C.isUndefined(u))return i(void 0,u)}else return i(void 0,c)}function o(u,c,p){if(C.hasOwnProp(e,p))return i(u,c);if(C.hasOwnProp(t,p))return i(void 0,u)}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,c,p)=>a(gk(u),gk(c),p,!0)};return C.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let p=C.hasOwnProp(l,c)?l[c]:a,d=C.hasOwnProp(t,c)?t[c]:void 0,h=C.hasOwnProp(e,c)?e[c]:void 0,g=p(d,h,c);C.isUndefined(g)&&p!==o||(n[c]=g)}),n}var p5=["content-type","content-length"];function d5(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e).forEach(([i,a])=>{p5.includes(i.toLowerCase())&&t.set(i,a)})}var h5=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Bk=t=>{let e=$a({},t),n=d=>C.hasOwnProp(e,d)?e[d]:void 0,i=n("data"),a=n("withXSRFToken"),r=n("xsrfHeaderName"),s=n("xsrfCookieName"),o=n("headers"),l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),p=n("url");if(e.headers=o=an.from(o),e.url=Gv(Nv(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?h5(l.password):""))),C.isFormData(i)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(i.getHeaders)&&d5(o,i.getHeaders(),n("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&u5(e.url))){let h=r&&s&&c5.read(s);h&&o.set(r,h)}return e},g5=typeof XMLHttpRequest<"u",m5=g5&&function(t){return new Promise(function(n,i){let a=Bk(t),r=a.data,s=an.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,c,p,d,h,g;function m(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function w(){if(!f)return;let A=an.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:t,request:f};is(function(N){n(N),m()},function(N){i(N),m()},O),f=null}"onloadend"in f?f.onloadend=w:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(w)},f.onabort=function(){f&&(i(new T("Request aborted",T.ECONNABORTED,t,f)),m(),f=null)},f.onerror=function(y){let O=y&&y.message?y.message:"Network Error",$=new T(O,T.ERR_NETWORK,t,f);$.event=y||null,i($),m(),f=null},f.ontimeout=function(){let y=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",O=a.transitional||pp;a.timeoutErrorMessage&&(y=a.timeoutErrorMessage),i(new T(y,O.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,f)),m(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(Dv(s),function(y,O){f.setRequestHeader(O,y)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),u&&([d,g]=as(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=as(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(i(!A||A.type?new ct(null,t,f):A),f.abort(),m(),f=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));let b=Dk(a.url);if(b&&!Qe.protocols.includes(b)){i(new T("Unsupported protocol "+b+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},f5=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let n=new AbortController,i=!1,a=function(l){if(!i){i=!0,s();let u=l instanceof Error?l:this.reason;n.abort(u instanceof T?u:new ct(u instanceof Error?u.message:u))}},r=e&&setTimeout(()=>{r=null,a(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e),s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));let{signal:o}=n;return o.unsubscribe=()=>C.asap(s),o},w5=function*(t,e){let n=t.byteLength;if(n{let a=v5(t,e),r=0,s,o=l=>{s||(s=!0,i&&i(l))};return new ReadableStream({async pull(l){try{let{done:u,value:c}=await a.next();if(u){o(),l.close();return}let p=c.byteLength;if(n){let d=r+=p;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},fk=64*1024,{isFunction:Yc}=C,wk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},A5=t=>{let e=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:n,TextEncoder:i}=e;t=C.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:r,Response:s}=t,o=a?Yc(a):typeof fetch=="function",l=Yc(r),u=Yc(s);if(!o)return!1;let c=o&&Yc(n),p=o&&(typeof i=="function"?(w=>b=>w.encode(b))(new i):async w=>new Uint8Array(await new r(w).arrayBuffer())),d=l&&c&&wk(()=>{let w=!1,b=new r(Qe.origin,{body:new n,method:"POST",get duplex(){return w=!0,"half"}}),A=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),w&&!A}),h=u&&c&&wk(()=>C.isReadableStream(new s("").body)),g={stream:h&&(w=>w.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!g[w]&&(g[w]=(b,A)=>{let y=b&&b[w];if(y)return y.call(b);throw new T(`Response type '${w}' is not supported`,T.ERR_NOT_SUPPORT,A)})});let m=async w=>{if(w==null)return 0;if(C.isBlob(w))return w.size;if(C.isSpecCompliantForm(w))return(await new r(Qe.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(C.isArrayBufferView(w)||C.isArrayBuffer(w))return w.byteLength;if(C.isURLSearchParams(w)&&(w=w+""),C.isString(w))return(await p(w)).byteLength},f=async(w,b)=>{let A=C.toFiniteNumber(w.getContentLength());return A??m(b)};return async w=>{let{url:b,method:A,data:y,signal:O,cancelToken:$,timeout:N,onDownloadProgress:X,onUploadProgress:F,responseType:q,headers:Q,withCredentials:Z="same-origin",fetchOptions:ne,maxContentLength:se,maxBodyLength:De}=Bk(w),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;q=q?(q+"").toLowerCase():"text";let Se=f5([O,$&&$.toAbortSignal()],N),I=null,en=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof b=="string"&&b.startsWith("data:")&&Nk(b)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,w,I);if(R&&A!=="get"&&A!=="head"){let x=await f(Q,y);if(typeof x=="number"&&isFinite(x)&&x>De)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,w,I)}if(F&&d&&A!=="get"&&A!=="head"&&(Re=await f(Q,y))!==0){let x=new r(b,{method:"POST",body:y,duplex:"half"}),be;if(C.isFormData(y)&&(be=x.headers.get("content-type"))&&Q.setContentType(be),x.body){let[Je,ye]=ap(Re,as(rp(F)));y=mk(x.body,fk,Je,ye)}}C.isString(Z)||(Z=Z?"include":"omit");let Me=l&&"credentials"in r.prototype;if(C.isFormData(y)){let x=Q.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Yo,!1);let xn={...ne,signal:Se,method:A.toUpperCase(),headers:Dv(Q.normalize()),body:y,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(b,xn);let Cn=await(l?Ae(I,ne):Ae(b,xn));if(S){let x=C.toFiniteNumber(Cn.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,w,I)}let ii=h&&(q==="stream"||q==="response");if(h&&Cn.body&&(X||S||ii&&en)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=Cn[xe]});let be=C.toFiniteNumber(Cn.headers.get("content-length")),[Je,ye]=X&&ap(be,as(rp(X),!0))||[],tn=0,dn=xe=>{if(S&&(tn=xe,tn>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,w,I);Je&&Je(xe)};Cn=new s(mk(Cn.body,fk,dn,()=>{ye&&ye(),en&&en()}),x)}q=q||"text";let G=await g[C.findKey(g,q)||"text"](Cn,w);if(S&&!h&&!ii){let x;if(G!=null&&(typeof G.byteLength=="number"?x=G.byteLength:typeof G.size=="number"?x=G.size:typeof G=="string"&&(x=typeof i=="function"?new i().encode(G).byteLength:G.length)),typeof x=="number"&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,w,I)}return!ii&&en&&en(),await new Promise((x,be)=>{is(x,be,{data:G,headers:an.from(Cn.headers),status:Cn.status,statusText:Cn.statusText,config:w,request:I})})}catch(Me){if(en&&en(),Se&&Se.aborted&&Se.reason instanceof T){let xn=Se.reason;throw xn.config=w,I&&(xn.request=I),Me!==xn&&(xn.cause=Me),xn}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,w,I,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,w,I,Me&&Me.response)}}},b5=new Map,Fk=t=>{let e=t&&t.env||{},{fetch:n,Request:i,Response:a}=e,r=[i,a,n],s=r.length,o=s,l,u,c=b5;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:A5(e)),c=u;return u};Fk();var Uv={http:l5,xhr:m5,fetch:{get:Fk}};C.forEach(Uv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var vk=t=>`- ${t}`,y5=t=>C.isFunction(t)||t===null||t===!1;function P5(t,e){t=C.isArray(t)?t:[t];let{length:n}=t,i,a,r={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=n?s.length>1?`since : +`+s.map(vk).join(` +`):" "+vk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var Vk={getAdapter:P5,adapters:Uv};function Sv(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ct(null,t)}function Ck(t){return Sv(t),t.headers=an.from(t.headers),t.data=Pv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Vk.getAdapter(t.adapter||tl.adapter,t)(t).then(function(i){Sv(t),t.response=i;try{i.data=Pv.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=an.from(i.headers),i},function(i){if(!zk(i)&&(Sv(t),i&&i.response)){t.response=i.response;try{i.response.data=Pv.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=an.from(i.response.headers)}return Promise.reject(i)})}var dp={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{dp[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});var Ak={};dp.transitional=function(e,n,i){function a(r,s){return"[Axios v"+Yo+"] Transitional option '"+r+"'"+s+(i?". "+i:"")}return(r,s,o)=>{if(e===!1)throw new T(a(s," has been removed"+(n?" in "+n:"")),T.ERR_DEPRECATED);return n&&!Ak[s]&&(Ak[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(r,s,o):!0}};dp.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function j5(t,e,n){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);let i=Object.keys(t),a=i.length;for(;a-- >0;){let r=i[a],s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(s){let o=t[r],l=o===void 0||s(o,r,t);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}var np={assertOptions:j5,validators:dp},gi=np.validators,ut=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ip,response:new ip}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=(()=>{if(!a.stack)return"";let s=a.stack.indexOf(` +`);return s===-1?"":a.stack.slice(s+1)})();try{if(!i.stack)i.stack=r;else if(r){let s=r.indexOf(` +`),o=s===-1?-1:r.indexOf(` +`,s+1),l=o===-1?"":r.slice(o+1);String(i.stack).endsWith(l)||(i.stack+=` +`+r)}}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=$a(this.defaults,n);let{transitional:i,paramsSerializer:a,headers:r}=n;i!==void 0&&np.assertOptions(i,{silentJSONParsing:gi.transitional(gi.boolean),forcedJSONParsing:gi.transitional(gi.boolean),clarifyTimeoutError:gi.transitional(gi.boolean),legacyInterceptorReqResOrdering:gi.transitional(gi.boolean)},!1),a!=null&&(C.isFunction(a)?n.paramsSerializer={serialize:a}:np.assertOptions(a,{encode:gi.function,serialize:gi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),np.assertOptions(n,{baseUrl:gi.spelling("baseURL"),withXsrfToken:gi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=r&&C.merge(r.common,r[n.method]);r&&C.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete r[g]}),n.headers=an.concat(s,r);let o=[],l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;l=l&&m.synchronous;let f=n.transitional||pp;f&&f.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,p=0,d;if(!l){let g=[Ck.bind(this),void 0];for(g.unshift(...o),g.push(...u),d=g.length,c=Promise.resolve(n);p{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](a);i._listeners=null}),this.promise.then=a=>{let r,s=new Promise(o=>{i.subscribe(o),r=o}).then(a);return s.cancel=function(){i.unsubscribe(r)},s},e(function(r,s,o){i.reason||(i.reason=new ct(r,s,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){let e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new t(function(a){e=a}),cancel:e}}};function S5(t){return function(n){return t.apply(null,n)}}function O5(t){return C.isObject(t)&&t.isAxiosError===!0}var Rv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rv).forEach(([t,e])=>{Rv[e]=t});function Jk(t){let e=new ut(t),n=jk(ut.prototype.request,e);return C.extend(n,ut.prototype,e,{allOwnKeys:!0}),C.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return Jk($a(t,a))},n}var rn=Jk(tl);rn.Axios=ut;rn.CanceledError=ct;rn.CancelToken=Hv;rn.isCancel=zk;rn.VERSION=Yo;rn.toFormData=cp;rn.AxiosError=T;rn.Cancel=rn.CanceledError;rn.all=function(e){return Promise.all(e)};rn.spread=S5;rn.isAxiosError=O5;rn.mergeConfig=$a;rn.AxiosHeaders=an;rn.formToJSON=t=>Ik(C.isHTMLForm(t)?new FormData(t):t);rn.getAdapter=Vk.getAdapter;rn.HttpStatusCode=Rv;rn.default=rn;Zk.exports=rn});var Yk=v((Xoe,Qk)=>{Qk.exports=require("util").inspect});var ll=v((ele,v_)=>{var Yv=typeof Map=="function"&&Map.prototype,Lv=Object.getOwnPropertyDescriptor&&Yv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,gp=Yv&&Lv&&typeof Lv.get=="function"?Lv.get:null,Xk=Yv&&Map.prototype.forEach,Xv=typeof Set=="function"&&Set.prototype,Wv=Object.getOwnPropertyDescriptor&&Xv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,mp=Xv&&Wv&&typeof Wv.get=="function"?Wv.get:null,e_=Xv&&Set.prototype.forEach,x5=typeof WeakMap=="function"&&WeakMap.prototype,rl=x5?WeakMap.prototype.has:null,T5=typeof WeakSet=="function"&&WeakSet.prototype,sl=T5?WeakSet.prototype.has:null,M5=typeof WeakRef=="function"&&WeakRef.prototype,n_=M5?WeakRef.prototype.deref:null,E5=Boolean.prototype.valueOf,q5=Object.prototype.toString,k5=Function.prototype.toString,_5=String.prototype.match,eC=String.prototype.slice,Nt=String.prototype.replace,H5=String.prototype.toUpperCase,i_=String.prototype.toLowerCase,p_=RegExp.prototype.test,t_=Array.prototype.concat,$i=Array.prototype.join,R5=Array.prototype.slice,a_=Math.floor,Vv=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Bv=Object.getOwnPropertySymbols,Jv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ss=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ol=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ss||!0)?Symbol.toStringTag:null,d_=Object.prototype.propertyIsEnumerable,r_=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function s_(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||p_.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var i=t<0?-a_(-t):a_(t);if(i!==t){var a=String(i),r=eC.call(e,a.length+1);return Nt.call(a,n,"$&_")+"."+Nt.call(Nt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Nt.call(e,n,"$&_")}var Zv=Yk(),o_=Zv.custom,l_=m_(o_)?o_:null,h_={__proto__:null,double:'"',single:"'"},I5={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};v_.exports=function t(e,n,i,a){var r=n||{};if(pt(r,"quoteStyle")&&!pt(h_,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pt(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=pt(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pt(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pt(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return w_(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?s_(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?s_(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof i>"u"&&(i=0),i>=c&&c>0&&typeof e=="object")return Kv(e)?"[Array]":"[Object]";var p=eK(r,i);if(typeof a>"u")a=[];else if(f_(a,e)>=0)return"[Circular]";function d(ne,se,De){if(se&&(a=R5.call(a),a.push(se)),De){var S={depth:r.depth};return pt(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ne,S,i+1,a)}return t(ne,r,i+1,a)}if(typeof e=="function"&&!u_(e)){var h=B5(e),g=hp(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+$i.call(g,", ")+" }":"")}if(m_(e)){var m=ss?Nt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jv.call(e);return typeof e=="object"&&!ss?al(m):m}if(Q5(e)){for(var f="<"+i_.call(String(e.nodeName)),w=e.attributes||[],b=0;b",f}if(Kv(e)){if(e.length===0)return"[]";var A=hp(e,d);return p&&!X5(A)?"["+Qv(A,p)+"]":"[ "+$i.call(A,", ")+" ]"}if(G5(e)){var y=hp(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!d_.call(e,"cause")?"{ ["+String(e)+"] "+$i.call(t_.call("[cause]: "+d(e.cause),y),", ")+" }":y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$i.call(y,", ")+" }"}if(typeof e=="object"&&s){if(l_&&typeof e[l_]=="function"&&Zv)return Zv(e,{depth:c-i});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(F5(e)){var O=[];return Xk&&Xk.call(e,function(ne,se){O.push(d(se,e,!0)+" => "+d(ne,e))}),c_("Map",gp.call(e),O,p)}if(Z5(e)){var $=[];return e_&&e_.call(e,function(ne){$.push(d(ne,e))}),c_("Set",mp.call(e),$,p)}if(V5(e))return Fv("WeakMap");if(K5(e))return Fv("WeakSet");if(J5(e))return Fv("WeakRef");if(N5(e))return al(d(Number(e)));if(L5(e))return al(d(Vv.call(e)));if(U5(e))return al(E5.call(e));if($5(e))return al(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!D5(e)&&!u_(e)){var N=hp(e,d),X=r_?r_(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",q=!X&&ol&&Object(e)===e&&ol in e?eC.call(Ut(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(q||F?"["+$i.call(t_.call([],q||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+Qv(N,p)+"}":Z+"{ "+$i.call(N,", ")+" }"}return String(e)};function g_(t,e,n){var i=n.quoteStyle||e,a=h_[i];return a+t+a}function z5(t){return Nt.call(String(t),/"/g,""")}function Na(t){return!ol||!(typeof t=="object"&&(ol in t||typeof t[ol]<"u"))}function Kv(t){return Ut(t)==="[object Array]"&&Na(t)}function D5(t){return Ut(t)==="[object Date]"&&Na(t)}function u_(t){return Ut(t)==="[object RegExp]"&&Na(t)}function G5(t){return Ut(t)==="[object Error]"&&Na(t)}function $5(t){return Ut(t)==="[object String]"&&Na(t)}function N5(t){return Ut(t)==="[object Number]"&&Na(t)}function U5(t){return Ut(t)==="[object Boolean]"&&Na(t)}function m_(t){if(ss)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Jv)return!1;try{return Jv.call(t),!0}catch{}return!1}function L5(t){if(!t||typeof t!="object"||!Vv)return!1;try{return Vv.call(t),!0}catch{}return!1}var W5=Object.prototype.hasOwnProperty||function(t){return t in this};function pt(t,e){return W5.call(t,e)}function Ut(t){return q5.call(t)}function B5(t){if(t.name)return t.name;var e=_5.call(k5.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function f_(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return w_(eC.call(t,0,e.maxStringLength),e)+i}var a=I5[e.quoteStyle||"single"];a.lastIndex=0;var r=Nt.call(Nt.call(t,a,"\\$1"),/[\x00-\x1f]/g,Y5);return g_(r,"single",e)}function Y5(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+H5.call(e.toString(16))}function al(t){return"Object("+t+")"}function Fv(t){return t+" { ? }"}function c_(t,e,n,i){var a=i?Qv(n,i):$i.call(n,", ");return t+" ("+e+") {"+a+"}"}function X5(t){for(var e=0;e=0)return!1;return!0}function eK(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=$i.call(Array(t.indent+1)," ");else return null;return{base:n,prev:$i.call(Array(e+1),n)}}function Qv(t,e){if(t.length===0)return"";var n=` +`+e.prev+e.base;return n+$i.call(t,","+n)+` +`+e.prev}function hp(t,e){var n=Kv(t),i=[];if(n){i.length=t.length;for(var a=0;a{"use strict";var nK=ll(),iK=Dt(),fp=function(t,e,n){for(var i=t,a;(a=i.next)!=null;i=a)if(a.key===e)return i.next=a.next,n||(a.next=t.next,t.next=a),a},tK=function(t,e){if(t){var n=fp(t,e);return n&&n.value}},aK=function(t,e,n){var i=fp(t,e);i?i.value=n:t.next={key:e,next:t.next,value:n}},rK=function(t,e){return t?!!fp(t,e):!1},sK=function(t,e){if(t)return fp(t,e,!0)};C_.exports=function(){var e,n={assert:function(i){if(!n.has(i))throw new iK("Side channel does not contain "+nK(i))},delete:function(i){var a=sK(e,i);return a&&e&&!e.next&&(e=void 0),!!a},get:function(i){return tK(e,i)},has:function(i){return rK(e,i)},set:function(i,a){e||(e={next:void 0}),aK(e,i,a)}};return n}});var nC=v((ile,P_)=>{"use strict";var b_=No(),y_=Ww(),oK=y_([b_("%String.prototype.indexOf%")]);P_.exports=function(e,n){var i=b_(e,!!n);return typeof i=="function"&&oK(e,".prototype.")>-1?y_([i]):i}});var iC=v((tle,S_)=>{"use strict";var lK=No(),ul=nC(),uK=ll(),cK=Dt(),j_=lK("%Map%",!0),pK=ul("Map.prototype.get",!0),dK=ul("Map.prototype.set",!0),hK=ul("Map.prototype.has",!0),gK=ul("Map.prototype.delete",!0),mK=ul("Map.prototype.size",!0);S_.exports=!!j_&&function(){var e,n={assert:function(i){if(!n.has(i))throw new cK("Side channel does not contain "+uK(i))},delete:function(i){if(e){var a=gK(e,i);return mK(e)===0&&(e=void 0),a}return!1},get:function(i){if(e)return pK(e,i)},has:function(i){return e?hK(e,i):!1},set:function(i,a){e||(e=new j_),dK(e,i,a)}};return n}});var x_=v((ale,O_)=>{"use strict";var fK=No(),vp=nC(),wK=ll(),wp=iC(),vK=Dt(),os=fK("%WeakMap%",!0),CK=vp("WeakMap.prototype.get",!0),AK=vp("WeakMap.prototype.set",!0),bK=vp("WeakMap.prototype.has",!0),yK=vp("WeakMap.prototype.delete",!0);O_.exports=os?function(){var e,n,i={assert:function(a){if(!i.has(a))throw new vK("Side channel does not contain "+wK(a))},delete:function(a){if(os&&a&&(typeof a=="object"||typeof a=="function")){if(e)return yK(e,a)}else if(wp&&n)return n.delete(a);return!1},get:function(a){return os&&a&&(typeof a=="object"||typeof a=="function")&&e?CK(e,a):n&&n.get(a)},has:function(a){return os&&a&&(typeof a=="object"||typeof a=="function")&&e?bK(e,a):!!n&&n.has(a)},set:function(a,r){os&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new os),AK(e,a,r)):wp&&(n||(n=wp()),n.set(a,r))}};return i}:wp});var tC=v((rle,T_)=>{"use strict";var PK=Dt(),jK=ll(),SK=A_(),OK=iC(),xK=x_(),TK=xK||OK||SK;T_.exports=function(){var e,n={assert:function(i){if(!n.has(i))throw new PK("Side channel does not contain "+jK(i))},delete:function(i){return!!e&&e.delete(i)},get:function(i){return e&&e.get(i)},has:function(i){return!!e&&e.has(i)},set:function(i,a){e||(e=TK()),e.set(i,a)}};return n}});var Cp=v((sle,M_)=>{"use strict";var MK=String.prototype.replace,EK=/%20/g,aC={RFC1738:"RFC1738",RFC3986:"RFC3986"};M_.exports={default:aC.RFC3986,formatters:{RFC1738:function(t){return MK.call(t,EK,"+")},RFC3986:function(t){return String(t)}},RFC1738:aC.RFC1738,RFC3986:aC.RFC3986}});var lC=v((ole,E_)=>{"use strict";var qK=Cp(),kK=tC(),rC=Object.prototype.hasOwnProperty,Ua=Array.isArray,Ap=kK(),ls=function(e,n){return Ap.set(e,n),e},La=function(e){return Ap.has(e)},cl=function(e){return Ap.get(e)},oC=function(e,n){Ap.set(e,n)},Ni=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),_K=function(e){for(;e.length>1;){var n=e.pop(),i=n.obj[n.prop];if(Ua(i)){for(var a=[],r=0;ri.arrayLimit)return ls(pl(e.concat(n),i),a);e[a]=n}else if(e&&typeof e=="object")if(La(e)){var r=cl(e)+1;e[r]=n,oC(e,r)}else{if(i&&i.strictMerge)return[e,n];(i&&(i.plainObjects||i.allowPrototypes)||!rC.call(Object.prototype,n))&&(e[n]=!0)}else return[e,n];return e}if(!e||typeof e!="object"){if(La(n)){for(var s=Object.keys(n),o=i&&i.plainObjects?{__proto__:null,0:e}:{0:e},l=0;li.arrayLimit?ls(pl(c,i),c.length-1):c}var p=e;return Ua(e)&&!Ua(n)&&(p=pl(e,i)),Ua(e)&&Ua(n)?(n.forEach(function(d,h){if(rC.call(e,h)){var g=e[h];g&&typeof g=="object"&&d&&typeof d=="object"?e[h]=t(g,d,i):e[e.length]=d}else e[h]=d}),e):Object.keys(n).reduce(function(d,h){var g=n[h];if(rC.call(d,h)?d[h]=t(d[h],g,i):d[h]=g,La(n)&&!La(d)&&ls(d,cl(n)),La(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>cl(d)&&oC(d,m)}return d},p)},RK=function(e,n){return Object.keys(n).reduce(function(i,a){return i[a]=n[a],i},e)},IK=function(t,e,n){var i=t.replace(/\+/g," ");if(n==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},sC=1024,zK=function(e,n,i,a,r){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),i==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",l=0;l=sC?s.slice(l,l+sC):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===qK.RFC1738&&(d===40||d===41)){c[c.length]=u.charAt(p);continue}if(d<128){c[c.length]=Ni[d];continue}if(d<2048){c[c.length]=Ni[192|d>>6]+Ni[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=Ni[224|d>>12]+Ni[128|d>>6&63]+Ni[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=Ni[240|d>>18]+Ni[128|d>>12&63]+Ni[128|d>>6&63]+Ni[128|d&63]}o+=c.join("")}return o},DK=function(e){for(var n=[{obj:{o:e},prop:"o"}],i=[],a=0;ai?ls(pl(s,{plainObjects:a}),s.length-1):s},UK=function(e,n){if(Ua(e)){for(var i=[],a=0;a{"use strict";var k_=tC(),bp=lC(),dl=Cp(),LK=Object.prototype.hasOwnProperty,__={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Ui=Array.isArray,WK=Array.prototype.push,H_=function(t,e){WK.apply(t,Ui(e)?e:[e])},BK=Date.prototype.toISOString,q_=dl.default,ln={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:bp.encode,encodeValuesOnly:!1,filter:void 0,format:q_,formatter:dl.formatters[q_],indices:!1,serializeDate:function(e){return BK.call(e)},skipNulls:!1,strictNullHandling:!1},FK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},uC={},VK=function t(e,n,i,a,r,s,o,l,u,c,p,d,h,g,m,f,w,b){for(var A=e,y=b,O=0,$=!1;(y=y.get(uC))!==void 0&&!$;){var N=y.get(e);if(O+=1,typeof N<"u"){if(N===O)throw new RangeError("Cyclic object value");$=!0}typeof y.get(uC)>"u"&&(O=0)}if(typeof c=="function"?A=c(n,A):A instanceof Date?A=h(A):i==="comma"&&Ui(A)&&(A=bp.maybeMap(A,function(I){return I instanceof Date?h(I):I})),A===null){if(s)return m(u&&!f?u(n,ln.encoder,w,"key",g):n);A=""}if(FK(A)||bp.isBuffer(A)){if(u){var X=f?n:u(n,ln.encoder,w,"key",g);return[m(X)+"="+m(u(A,ln.encoder,w,"value",g))]}return[m(n)+"="+m(String(A))]}var F=[];if(typeof A>"u")return F;var q;if(i==="comma"&&Ui(A))f&&u&&(A=bp.maybeMap(A,function(I){return I==null?I:u(I)})),q=[{value:A.length>0?A.join(",")||null:void 0}];else if(Ui(c))q=c;else{var Q=Object.keys(A);q=p?Q.sort(p):Q}var Z=l?String(n).replace(/\./g,"%2E"):String(n),ne=a&&Ui(A)&&A.length===1?Z+"[]":Z;if(r&&Ui(A)&&A.length===0)return ne+"[]";for(var se=0;se"u"?e.encodeDotInKeys===!0?!0:ln.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ln.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ln.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ln.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?ln.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ln.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:ln.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:ln.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ln.encodeValuesOnly,filter:r,format:i,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ln.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ln.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ln.strictNullHandling}};R_.exports=function(t,e){var n=t,i=JK(e),a,r;typeof i.filter=="function"?(r=i.filter,n=r("",n)):Ui(i.filter)&&(r=i.filter,a=r);var s=[];if(typeof n!="object"||n===null)return"";var o=__[i.arrayFormat],l=o==="comma"&&i.commaRoundTrip;a||(a=Object.keys(n)),i.sort&&a.sort(i.sort);for(var u=k_(),c=0;c"u"||p===null)){var d=n[p];i.skipNulls&&d===null||H_(s,VK(d,p,o,l,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,u))}}var h=s.join(i.delimiter),g=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B"+i.delimiter:g+="utf8=%E2%9C%93"+i.delimiter),h.length>0?g+h:""}});var G_=v((ule,D_)=>{"use strict";var Li=lC(),yp=Object.prototype.hasOwnProperty,cC=Array.isArray,Ze={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Li.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},ZK=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},z_=function(t,e,n){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&n>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},KK="utf8=%26%2310003%3B",QK="utf8=%E2%9C%93",YK=function(e,n){var i={__proto__:null},a=n.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=n.parameterLimit===1/0?void 0:n.parameterLimit,s=a.split(n.delimiter,n.throwOnLimitExceeded&&typeof r<"u"?r+1:r);if(n.throwOnLimitExceeded&&typeof r<"u"&&s.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(g=cC(g)?[g]:g),n.comma&&cC(g)&&g.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");g=Li.combine([],g,n.arrayLimit,n.plainObjects)}if(h!==null){var m=yp.call(i,h);m&&(n.duplicates==="combine"||c.indexOf("[]=")>-1)?i[h]=Li.combine(i[h],g,n.arrayLimit,n.plainObjects):(!m||n.duplicates==="last")&&(i[h]=g)}}return i},XK=function(t,e,n,i){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var r=t.slice(0,-1).join("");a=Array.isArray(e)&&e[r]?e[r].length:0}for(var s=i?e:z_(e,n,a),o=t.length-1;o>=0;--o){var l,u=t[o];if(u==="[]"&&n.parseArrays)Li.isOverflow(s)?l=s:l=n.allowEmptyArrays&&(s===""||n.strictNullHandling&&s===null)?[]:Li.combine([],s,n.arrayLimit,n.plainObjects);else{l=n.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10),h=!isNaN(d)&&u!==p&&String(d)===p&&d>=0&&n.parseArrays;if(!n.parseArrays&&p==="")l={0:s};else if(h&&d=0?i.slice(0,r):i;if(s){if(!n.plainObjects&&yp.call(Object.prototype,s)&&!n.allowPrototypes)return;a[a.length]=s}for(var o=i.length,l=r,u=0;l>=0&&u=0){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");a[a.length]="["+i.slice(l)+"]"}return a},n9=function(e,n,i,a){if(e){var r=e9(e,i);if(r)return XK(r,n,i,a)}},i9=function(e){if(!e)return Ze;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var n=typeof e.charset>"u"?Ze.charset:e.charset,i=typeof e.duplicates>"u"?Ze.duplicates:e.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Ze.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ze.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ze.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ze.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ze.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ze.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ze.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ze.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ze.decoder,delimiter:typeof e.delimiter=="string"||Li.isRegExp(e.delimiter)?e.delimiter:Ze.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ze.depth,duplicates:i,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ze.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ze.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ze.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ze.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ze.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ze.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};D_.exports=function(t,e){var n=i9(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?{__proto__:null}:{};for(var i=typeof t=="string"?YK(t,n):t,a=n.plainObjects?{__proto__:null}:{},r=Object.keys(i),s=0;s{"use strict";var t9=I_(),a9=G_(),r9=Cp();$_.exports={formats:r9,parse:a9,stringify:t9}});var Kn=v((ple,U_)=>{"use strict";var pC=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts) +Found: ${e.toString().split(` +`)[0]} +`),Error.captureStackTrace(this,t)}};U_.exports=t=>{if(t.length>2)throw new pC(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var F_=v((dle,B_)=>{var W_={};B_.exports=W_;var L_={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(L_).forEach(function(t){var e=L_[t],n=W_[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var J_=v((hle,V_)=>{"use strict";V_.exports=function(t,e){e=e||process.argv||[];var n=e.indexOf("--"),i=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(i+t);return a!==-1&&(n===-1?!0:a{"use strict";var s9=require("os"),Ti=J_(),zn=process.env,us=void 0;Ti("no-color")||Ti("no-colors")||Ti("color=false")?us=!1:(Ti("color")||Ti("colors")||Ti("color=true")||Ti("color=always"))&&(us=!0);"FORCE_COLOR"in zn&&(us=zn.FORCE_COLOR.length===0||parseInt(zn.FORCE_COLOR,10)!==0);function o9(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function l9(t){if(us===!1)return 0;if(Ti("color=16m")||Ti("color=full")||Ti("color=truecolor"))return 3;if(Ti("color=256"))return 2;if(t&&!t.isTTY&&us!==!0)return 0;var e=us?1:0;if(process.platform==="win32"){var n=s9.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in zn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in zn})||zn.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in zn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(zn.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in zn){var i=parseInt((zn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(zn.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(zn.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(zn.TERM)||"COLORTERM"in zn?1:(zn.TERM==="dumb",e)}function dC(t){var e=l9(t);return o9(e)}Z_.exports={supportsColor:dC,stdout:dC(process.stdout),stderr:dC(process.stderr)}});var Y_=v((mle,Q_)=>{Q_.exports=function(e,n){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var a={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(r){r=r.toLowerCase();var s=a[r]||[" "],o=Math.floor(Math.random()*s.length);typeof a[r]<"u"?i+=a[r][o]:i+=r}),i}});var e2=v((fle,X_)=>{X_.exports=function(e,n){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},a=[].concat(i.up,i.down,i.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return a.filter(function(c){u=c===l}),u}function o(l,u){var c="",p,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!s(d)){switch(c=c+l[d],p={up:0,down:0,mid:0},u.size){case"mini":p.up=r(8),p.mid=r(2),p.down=r(8);break;case"maxi":p.up=r(16)+3,p.mid=r(4)+1,p.down=r(64)+3;break;default:p.up=r(8)+1,p.mid=r(6)/2,p.down=r(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var m=h[g],f=0;f<=p[m];f++)u[m]&&(c=c+i[m][r(i[m].length)])}return c}return o(e,n)}});var i2=v((wle,n2)=>{n2.exports=function(t){return function(e,n,i){if(e===" ")return e;switch(n%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var a2=v((vle,t2)=>{t2.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var s2=v((Cle,r2)=>{r2.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(n,i,a){return n===" "?n:t[e[i++%e.length]](n)}}});var l2=v((Ale,o2)=>{o2.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,i,a){return n===" "?n:t[e[Math.round(Math.random()*(e.length-2))]](n)}}});var g2=v((yle,h2)=>{var de={};h2.exports=de;de.themes={};var u9=require("util"),Wa=de.styles=F_(),c2=Object.defineProperties,c9=new RegExp(/[\r\n]+/g);de.supportsColor=K_().supportsColor;typeof de.enabled>"u"&&(de.enabled=de.supportsColor()!==!1);de.enable=function(){de.enabled=!0};de.disable=function(){de.enabled=!1};de.stripColors=de.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var ble=de.stylize=function(e,n){if(!de.enabled)return e+"";var i=Wa[n];return!i&&n in de?de[n](e):i.open+e+i.close},p9=/[|\\{}()[\]^$+*?.]/g,d9=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(p9,"\\$&")};function p2(t){var e=function n(){return g9.apply(n,arguments)};return e._styles=t,e.__proto__=h9,e}var d2=(function(){var t={};return Wa.grey=Wa.gray,Object.keys(Wa).forEach(function(e){Wa[e].closeRe=new RegExp(d9(Wa[e].close),"g"),t[e]={get:function(){return p2(this._styles.concat(e))}}}),t})(),h9=c2(function(){},d2);function g9(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:u9.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var n=e.indexOf(` +`)!=-1,i=this._styles,a=i.length;a--;){var r=Wa[i[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,n&&(e=e.replace(c9,function(s){return r.close+s+r.open}))}return e}de.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(n){de[n]=function(i){if(typeof t[n]=="object"){var a=i;for(var r in t[n])a=de[t[n][r]](a);return a}return de[t[n]](i)}})(e)};function m9(){var t={};return Object.keys(d2).forEach(function(e){t[e]={get:function(){return p2([e])}}}),t}var f9=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};de.trap=Y_();de.zalgo=e2();de.maps={};de.maps.america=i2()(de);de.maps.zebra=a2()(de);de.maps.rainbow=s2()(de);de.maps.random=l2()(de);for(u2 in de.maps)(function(t){de[t]=function(e){return f9(de.maps[t],e)}})(u2);var u2;c2(de,m9())});var hC=v((Ple,m2)=>{var w9=g2();m2.exports=w9});var f2=v(gC=>{"use strict";gC.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};gC.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var w2=v(mC=>{"use strict";mC.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};mC.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var v2=v(fC=>{"use strict";fC.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};fC.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var C2=v(Pp=>{"use strict";Object.defineProperty(Pp,"cli",{value:f2()});Object.defineProperty(Pp,"npm",{value:w2()});Object.defineProperty(Pp,"syslog",{value:v2()})});var sn=v(hl=>{"use strict";Object.defineProperty(hl,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(hl,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(hl,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(hl,"configs",{value:C2()})});var Op=v((Mle,Sp)=>{"use strict";var CC=hC(),{LEVEL:wC,MESSAGE:vC}=sn();CC.enabled=!0;var A2=/\s+/,jp=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let n=Object.keys(e).reduce((i,a)=>(i[a]=A2.test(e[a])?e[a].split(A2):e[a],i),{});return t.allColors=Object.assign({},t.allColors||{},n),t.allColors}addColors(e){return t.addColors(e)}colorize(e,n,i){if(typeof i>"u"&&(i=n),!Array.isArray(t.allColors[e]))return CC[t.allColors[e]](i);for(let a=0,r=t.allColors[e].length;anew jp(t);Sp.exports.Colorizer=Sp.exports.Format=jp});var y2=v((Ele,b2)=>{"use strict";var{Colorizer:v9}=Op();b2.exports=t=>(v9.addColors(t.colors||t),t)});var j2=v((qle,P2)=>{"use strict";var C9=Kn();P2.exports=C9(t=>(t.message=` ${t.message}`,t))});var x2=v((kle,O2)=>{"use strict";var A9=Kn(),{LEVEL:S2,MESSAGE:AC}=sn();O2.exports=A9((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[S2]:t[S2]||t.level,message:t.message,[AC]:t[AC]||t.message});return e&&(a.stack=t.stack),n&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let i=t.message;return Object.assign(t,i),t.message=i.message,t[AC]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var yC=v((_le,Tp)=>{"use strict";var{configs:b9,LEVEL:T2,MESSAGE:bC}=sn(),xp=class t{constructor(e={levels:b9.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let n=Object.keys(e).map(i=>i.length);return Math.max(...n)}static paddingForLevel(e,n,i){let a=i+1-e.length,r=Math.floor(a/n.length);return`${n}${n.repeat(r)}`.slice(0,a)}static paddingForLevels(e,n=" "){let i=t.getLongestLevel(e);return Object.keys(e).reduce((a,r)=>(a[r]=t.paddingForLevel(r,n,i),a),{})}transform(e,n){return e.message=`${this.paddings[e[T2]]}${e.message}`,e[bC]&&(e[bC]=`${this.paddings[e[T2]]}${e[bC]}`),e}};Tp.exports=t=>new xp(t);Tp.exports.Padder=Tp.exports.Format=xp});var M2=v((Hle,PC)=>{"use strict";var{Colorizer:y9}=Op(),{Padder:P9}=yC(),{configs:j9,MESSAGE:S9}=sn(),Mp=class{constructor(e={}){e.levels||(e.levels=j9.cli.levels),this.colorizer=new y9(e),this.padder=new P9(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[S9]=`${e.level}:${e.message}`,e}};PC.exports=t=>new Mp(t);PC.exports.Format=Mp});var q2=v((Rle,jC)=>{"use strict";var O9=Kn();function E2(t){if(t.every(x9))return e=>{let n=e;for(let i=0;i{let e=O9(E2(t)),n=e();return n.Format=e.Format,n};jC.exports.cascade=E2});var ml=v((TC,H2)=>{"use strict";var{hasOwnProperty:gl}=Object.prototype,Fa=xC();Fa.configure=xC;Fa.stringify=Fa;Fa.default=Fa;TC.stringify=Fa;TC.configure=xC;H2.exports=Fa;var T9=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Lt(t){return t.length<5e3&&!T9.test(t)?`"${t}"`:JSON.stringify(t)}function SC(t,e){if(t.length>200||e)return t.sort(e);for(let n=1;ni;)t[a]=t[a-1],a--;t[a]=i}return t}var M9=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function OC(t){return M9.call(t)!==void 0&&t.length!==0}function k2(t,e,n){t.length= 1`)}return n===void 0?1/0:n}function Ba(t){return t===1?"1 item":`${t} items`}function _9(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function H9(t){if(gl.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let i=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(i+=` (${n.toString()})`),new Error(i)}}}function xC(t){t={...t};let e=H9(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=E9(t),i=k9(t,"bigint"),a=q9(t),r=typeof a=="function"?a:void 0,s=_2(t,"maximumDepth"),o=_2(t,"maximumBreadth");function l(h,g,m,f,w,b){let A=g[h];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(h)),A=f.call(g,h,A),typeof A){case"string":return Lt(A);case"object":{if(A===null)return"null";if(m.indexOf(A)!==-1)return n;let y="",O=",",$=b;if(Array.isArray(A)){if(A.length===0)return"[]";if(so){let De=A.length-o-1;y+=`${O}"... ${Ba(De)} not stringified"`}return w!==""&&(y+=` +${$}`),m.pop(),`[${y}]`}let N=Object.keys(A),X=N.length;if(X===0)return"{}";if(so){let Z=X-o;y+=`${q}"...":${F}"${Ba(Z)} not stringified"`,q=O}return w!==""&&q.length>1&&(y=` +${b}${y} +${$}`),m.pop(),`{${y}}`}case"number":return isFinite(A)?String(A):e?e(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(A);default:return e?e(A):void 0}}function u(h,g,m,f,w,b){switch(typeof g=="object"&&g!==null&&typeof g.toJSON=="function"&&(g=g.toJSON(h)),typeof g){case"string":return Lt(g);case"object":{if(g===null)return"null";if(m.indexOf(g)!==-1)return n;let A=b,y="",O=",";if(Array.isArray(g)){if(g.length===0)return"[]";if(so){let Q=g.length-o-1;y+=`${O}"... ${Ba(Q)} not stringified"`}return w!==""&&(y+=` +${A}`),m.pop(),`[${y}]`}m.push(g);let $="";w!==""&&(b+=w,O=`, +${b}`,$=" ");let N="";for(let X of f){let F=u(X,g[X],m,f,w,b);F!==void 0&&(y+=`${N}${Lt(X)}:${$}${F}`,N=O)}return w!==""&&N.length>1&&(y=` +${b}${y} +${A}`),m.pop(),`{${y}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(g);default:return e?e(g):void 0}}function c(h,g,m,f,w){switch(typeof g){case"string":return Lt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return c(h,g,m,f,w);if(g===null)return"null"}if(m.indexOf(g)!==-1)return n;let b=w;if(Array.isArray(g)){if(g.length===0)return"[]";if(so){let se=g.length-o-1;F+=`${q}"... ${Ba(se)} not stringified"`}return F+=` +${b}`,m.pop(),`[${F}]`}let A=Object.keys(g),y=A.length;if(y===0)return"{}";if(so){let F=y-o;$+=`${N}"...": "${Ba(F)} not stringified"`,N=O}return N!==""&&($=` +${w}${$} +${b}`),m.pop(),`{${$}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(g);default:return e?e(g):void 0}}function p(h,g,m){switch(typeof g){case"string":return Lt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return n;let f="",w=g.length!==void 0;if(w&&Array.isArray(g)){if(g.length===0)return"[]";if(so){let F=g.length-o-1;f+=`,"... ${Ba(F)} not stringified"`}return m.pop(),`[${f}]`}let b=Object.keys(g),A=b.length;if(A===0)return"{}";if(so){let $=A-o;f+=`${y}"...":"${Ba($)} not stringified"`}return m.pop(),`{${f}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(g);default:return e?e(g):void 0}}function d(h,g,m){if(arguments.length>1){let f="";if(typeof m=="number"?f=" ".repeat(Math.min(m,10)):typeof m=="string"&&(f=m.slice(0,10)),g!=null){if(typeof g=="function")return l("",{"":h},[],g,f,"");if(Array.isArray(g))return u("",h,[],_9(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var MC=v((Ile,R2)=>{"use strict";var R9=Kn(),{MESSAGE:I9}=sn(),z9=ml();function D9(t,e){return typeof e=="bigint"?e.toString():e}R2.exports=R9((t,e)=>{let n=z9.configure(e);return t[I9]=n(t,e.replacer||D9,e.space),t})});var z2=v((zle,I2)=>{"use strict";var G9=Kn();I2.exports=G9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var G2=v((Dle,D2)=>{"use strict";var $9=Kn(),{MESSAGE:N9}=sn(),U9=ml();D2.exports=$9(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[N9]=U9(e),t})});var N2=v((Gle,$2)=>{"use strict";var L9=Kn();function W9(t,e,n){let i=e.reduce((r,s)=>(r[s]=t[s],delete t[s],r),{}),a=Object.keys(t).reduce((r,s)=>(r[s]=t[s],delete t[s],r),{});return Object.assign(t,i,{[n]:a}),t}function B9(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}$2.exports=L9((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?W9(t,i,n):e.fillWith?B9(t,e.fillWith,n):t})});var L2=v((fl,U2)=>{"use strict";var F9=Kn(),V9=Yw();U2.exports=F9(t=>{let e=+new Date;return fl.diff=e-(fl.prevTime||e),fl.prevTime=e,t.ms=`+${V9(fl.diff)}`,t})});var F2=v(($le,B2)=>{"use strict";var J9=require("util").inspect,Z9=Kn(),{LEVEL:K9,MESSAGE:W2,SPLAT:Q9}=sn();B2.exports=Z9((t,e={})=>{let n=Object.assign({},t);return delete n[K9],delete n[W2],delete n[Q9],t[W2]=J9(n,!1,e.depth||null,e.colorize),t})});var V2=v((Nle,qp)=>{"use strict";var{MESSAGE:Y9}=sn(),Ep=class{constructor(e){this.template=e}transform(e){return e[Y9]=this.template(e),e}};qp.exports=t=>new Ep(t);qp.exports.Printf=qp.exports.Format=Ep});var K2=v((Ule,Z2)=>{"use strict";var X9=Kn(),{MESSAGE:J2}=sn(),e6=ml();Z2.exports=X9(t=>{let e=e6(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[J2]=`${t.level}:${n} ${t.message} ${e}`:t[J2]=`${t.level}:${n} ${t.message}`,t})});var X2=v((Lle,Y2)=>{"use strict";var n6=require("util"),{SPLAT:Q2}=sn(),i6=/%[scdjifoO%]/g,t6=/%%/g,EC=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[Q2]||e.splat||[],r=i.match(t6),s=r&&r.length||0,l=n.length-s-a.length,u=l<0?a.splice(l,-1*l):[],c=u.length;if(c)for(let p=0;p1?i.splice(0):i,s=r.length;if(s)for(let o=0;onew EC(t)});var n0=v((kp,e0)=>{(function(t,e){typeof kp=="object"&&typeof e0<"u"?e(kp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(kp,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,n="\\d\\d?",i="\\d\\d",a="\\d{3}",r="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function l(S,R){for(var Ae=[],Se=0,I=S.length;Se-1?I:null}};function c(S){for(var R=[],Ae=1;Ae3?0:(S-S%10!==10?1:0)*S%10]}},f=c({},m),w=function(S){return f=c(f,S)},b=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},A=function(S,R){for(R===void 0&&(R=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4)},Z:function(S){var R=S.getTimezoneOffset();return(R>0?"-":"+")+A(Math.floor(Math.abs(R)/60),2)+":"+A(Math.abs(R)%60,2)}},O=function(S){return+S-1},$=[null,n],N=[null,s],X=["isPm",s,function(S,R){var Ae=S.toLowerCase();return Ae===R.amPm[0]?0:Ae===R.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var R=(S+"").match(/([+-]|\d\d)/gi);if(R){var Ae=+R[1]*60+parseInt(R[2],10);return R[0]==="+"?Ae:-Ae}return 0}],q={D:["day",n],DD:["day",i],Do:["day",n+s,function(S){return parseInt(S,10)}],M:["month",n,O],MM:["month",i,O],YY:["year",i,function(S){var R=new Date,Ae=+(""+R.getFullYear()).substr(0,2);return+(""+(+S>68?Ae-1:Ae)+S)}],h:["hour",n,void 0,"isPm"],hh:["hour",i,void 0,"isPm"],H:["hour",n],HH:["hour",i],m:["minute",n],mm:["minute",i],s:["second",n],ss:["second",i],YYYY:["year",r],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",i,function(S){return+S*10}],SSS:["millisecond",a],d:$,dd:$,ddd:N,dddd:N,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:X,A:X,ZZ:F,Z:F},Q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(S){return c(Q,S)},ne=function(S,R,Ae){if(R===void 0&&(R=Q.default),Ae===void 0&&(Ae={}),typeof S=="number"&&(S=new Date(S)),Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw new Error("Invalid Date pass to format");R=Q[R]||R;var Se=[];R=R.replace(o,function(en,Re){return Se.push(Re),"@@@"});var I=c(c({},f),Ae);return R=R.replace(e,function(en){return y[en](S,I)}),R.replace(/@@@/g,function(){return Se.shift()})};function se(S,R,Ae){if(Ae===void 0&&(Ae={}),typeof R!="string")throw new Error("Invalid format in fecha parse");if(R=Q[R]||R,S.length>1e3)return null;var Se=new Date,I={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},en=[],Re=[],Me=R.replace(o,function(wi,Ge){return Re.push(b(Ge)),"@@@"}),xn={},Cn={};Me=b(Me).replace(e,function(wi){var Ge=q[wi],ir=Ge[0],zI=Ge[1],Ty=Ge[3];if(xn[ir])throw new Error("Invalid format. "+ir+" specified twice in format");return xn[ir]=!0,Ty&&(Cn[Ty]=!0),en.push(Ge),"("+zI+")"}),Object.keys(Cn).forEach(function(wi){if(!xn[wi])throw new Error("Invalid format. "+wi+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var ii=S.match(new RegExp(Me,"i"));if(!ii)return null;for(var G=c(c({},f),Ae),x=1;x11||I.month<0||I.day>31||I.day<1||I.hour>23||I.hour<0||I.minute>59||I.minute<0||I.second>59||I.second<0)return null;return dn}var De={format:ne,parse:se,defaultI18n:m,setGlobalDateI18n:w,setGlobalDateMasks:Z};t.assign=c,t.default=De,t.format=ne,t.parse=se,t.defaultI18n=m,t.setGlobalDateI18n=w,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var t0=v((Wle,i0)=>{"use strict";var a6=n0(),r6=Kn();i0.exports=r6((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():a6.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var r0=v((Ble,a0)=>{"use strict";var qC=hC(),s6=Kn(),{MESSAGE:kC}=sn();a0.exports=s6((t,e)=>(e.level!==!1&&(t.level=qC.strip(t.level)),e.message!==!1&&(t.message=qC.strip(String(t.message))),e.raw!==!1&&t[kC]&&(t[kC]=qC.strip(String(t[kC]))),t))});var HC=v(_C=>{"use strict";var o6=_C.format=Kn();_C.levels=y2();function Sn(t,e){Object.defineProperty(o6,t,{get(){return e()},configurable:!0})}Sn("align",function(){return j2()});Sn("errors",function(){return x2()});Sn("cli",function(){return M2()});Sn("combine",function(){return q2()});Sn("colorize",function(){return Op()});Sn("json",function(){return MC()});Sn("label",function(){return z2()});Sn("logstash",function(){return G2()});Sn("metadata",function(){return N2()});Sn("ms",function(){return L2()});Sn("padLevels",function(){return yC()});Sn("prettyPrint",function(){return F2()});Sn("printf",function(){return V2()});Sn("simple",function(){return K2()});Sn("splat",function(){return X2()});Sn("timestamp",function(){return t0()});Sn("uncolorize",function(){return r0()})});var RC=v(_p=>{"use strict";var{format:s0}=require("util");_p.warn={deprecated(t){return()=>{throw new Error(s0("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([s0("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(` +`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=_p.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=_p.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var o0=v((Jle,l6)=>{l6.exports={name:"winston",description:"A logger for just about everything.",version:"3.19.0",author:"Charlie Robbins ",maintainers:["David Hyde "],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.8","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",jest:"^29.7.0",rimraf:"5.0.10",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"jest","test:unit":"jest -c test/jest.config.unit.js","test:integration":"jest -c test/jest.config.integration.js","test:typescript":"npx --package typescript tsc --project test",build:"babel lib -d dist",prebuild:"rimraf dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var u0=v((Zle,l0)=>{l0.exports=require("util").deprecate});var IC=v((Kle,c0)=>{c0.exports=require("stream")});var DC=v((Qle,d0)=>{"use strict";function u6(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(zC,this,t)):process.nextTick(zC,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?n._writableState?n._writableState.errorEmitted?process.nextTick(Hp,n):(n._writableState.errorEmitted=!0,process.nextTick(p0,n,r)):process.nextTick(p0,n,r):e?(process.nextTick(Hp,n),e(r)):process.nextTick(Hp,n)}),this)}function p0(t,e){zC(t,e),Hp(t)}function Hp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function c6(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function zC(t,e){t.emit("error",e)}function p6(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}d0.exports={destroy:u6,undestroy:c6,errorOrDestroy:p6}});var Wt=v((Yle,m0)=>{"use strict";var g0={};function mi(t,e,n){n||(n=Error);function i(r,s,o){return typeof e=="string"?e:e(r,s,o)}class a extends n{constructor(s,o,l){super(i(s,o,l))}}a.prototype.name=n.name,a.prototype.code=t,g0[t]=a}function h0(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function d6(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function h6(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function g6(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}mi("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);mi("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&d6(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(h6(t," argument"))a=`The ${t} ${i} ${h0(e,"type")}`;else{let r=g6(t,".")?"property":"argument";a=`The "${t}" ${r} ${i} ${h0(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);mi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");mi("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});mi("ERR_STREAM_PREMATURE_CLOSE","Premature close");mi("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});mi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");mi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");mi("ERR_STREAM_WRITE_AFTER_END","write after end");mi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mi("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);mi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");m0.exports.codes=g0});var GC=v((Xle,f0)=>{"use strict";var m6=Wt().codes.ERR_INVALID_OPT_VALUE;function f6(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function w6(t,e,n,i){var a=f6(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=i?n:"highWaterMark";throw new m6(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}f0.exports={getHighWaterMark:w6}});var w0=v((eue,$C)=>{typeof Object.create=="function"?$C.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:$C.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var cs=v((nue,UC)=>{try{if(NC=require("util"),typeof NC.inherits!="function")throw"";UC.exports=NC.inherits}catch{UC.exports=w0()}var NC});var P0=v((iue,y0)=>{"use strict";function v0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function C0(t){for(var e=1;e0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return Rp.alloc(0);for(var i=Rp.allocUnsafe(n>>>0),a=this.head,r=0;a;)S6(a.data,i,r),r+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return ns.length?s.length:n;if(o===s.length?r+=s:r+=s.slice(0,n),n-=o,n===0){o===s.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(o));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(n){var i=Rp.allocUnsafe(n),a=this.head,r=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var s=a.data,o=n>s.length?s.length:n;if(s.copy(i,i.length-n,0,o),n-=o,n===0){o===s.length?(++r,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(o));break}++r}return this.length-=r,i}},{key:j6,value:function(n,i){return LC(this,C0(C0({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var O0=v((WC,S0)=>{var Ip=require("buffer"),Wi=Ip.Buffer;function j0(t,e){for(var n in t)e[n]=t[n]}Wi.from&&Wi.alloc&&Wi.allocUnsafe&&Wi.allocUnsafeSlow?S0.exports=Ip:(j0(Ip,WC),WC.Buffer=Va);function Va(t,e,n){return Wi(t,e,n)}Va.prototype=Object.create(Wi.prototype);j0(Wi,Va);Va.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Wi(t,e,n)};Va.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Wi(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Va.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Wi(t)};Va.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ip.SlowBuffer(t)}});var VC=v(T0=>{"use strict";var FC=O0().Buffer,x0=FC.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function O6(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function x6(t){var e=O6(t);if(typeof e!="string"&&(FC.isEncoding===x0||!x0(t)))throw new Error("Unknown encoding: "+t);return e||t}T0.StringDecoder=wl;function wl(t){this.encoding=x6(t);var e;switch(this.encoding){case"utf16le":this.text=_6,this.end=H6,e=4;break;case"utf8":this.fillLast=E6,e=4;break;case"base64":this.text=R6,this.end=I6,e=3;break;default:this.write=z6,this.end=D6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=FC.allocUnsafe(e)}wl.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function T6(t,e,n){var i=e.length-1;if(i=0?(a>0&&(t.lastNeed=a-1),a):--i=0?(a>0&&(t.lastNeed=a-2),a):--i=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function M6(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function E6(t){var e=this.lastTotal-this.lastNeed,n=M6(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function q6(t,e){var n=T6(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function k6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function _6(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function H6(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function R6(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function I6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function z6(t){return t.toString(this.encoding)}function D6(t){return t&&t.length?this.write(t):""}});var zp=v((aue,q0)=>{"use strict";var M0=Wt().codes.ERR_STREAM_PREMATURE_CLOSE;function G6(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a{"use strict";var Dp;function Bt(t,e,n){return e=U6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U6(t){var e=L6(t,"string");return typeof e=="symbol"?e:String(e)}function L6(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var W6=zp(),Ft=Symbol("lastResolve"),Ja=Symbol("lastReject"),vl=Symbol("error"),Gp=Symbol("ended"),Za=Symbol("lastPromise"),JC=Symbol("handlePromise"),Ka=Symbol("stream");function Vt(t,e){return{value:t,done:e}}function B6(t){var e=t[Ft];if(e!==null){var n=t[Ka].read();n!==null&&(t[Za]=null,t[Ft]=null,t[Ja]=null,e(Vt(n,!1)))}}function F6(t){process.nextTick(B6,t)}function V6(t,e){return function(n,i){t.then(function(){if(e[Gp]){n(Vt(void 0,!0));return}e[JC](n,i)},i)}}var J6=Object.getPrototypeOf(function(){}),Z6=Object.setPrototypeOf((Dp={get stream(){return this[Ka]},next:function(){var e=this,n=this[vl];if(n!==null)return Promise.reject(n);if(this[Gp])return Promise.resolve(Vt(void 0,!0));if(this[Ka].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[vl]?o(e[vl]):s(Vt(void 0,!0))})});var i=this[Za],a;if(i)a=new Promise(V6(i,this));else{var r=this[Ka].read();if(r!==null)return Promise.resolve(Vt(r,!1));a=new Promise(this[JC])}return this[Za]=a,a}},Bt(Dp,Symbol.asyncIterator,function(){return this}),Bt(Dp,"return",function(){var e=this;return new Promise(function(n,i){e[Ka].destroy(null,function(a){if(a){i(a);return}n(Vt(void 0,!0))})})}),Dp),J6),K6=function(e){var n,i=Object.create(Z6,(n={},Bt(n,Ka,{value:e,writable:!0}),Bt(n,Ft,{value:null,writable:!0}),Bt(n,Ja,{value:null,writable:!0}),Bt(n,vl,{value:null,writable:!0}),Bt(n,Gp,{value:e._readableState.endEmitted,writable:!0}),Bt(n,JC,{value:function(r,s){var o=i[Ka].read();o?(i[Za]=null,i[Ft]=null,i[Ja]=null,r(Vt(o,!1))):(i[Ft]=r,i[Ja]=s)},writable:!0}),n));return i[Za]=null,W6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=i[Ja];r!==null&&(i[Za]=null,i[Ft]=null,i[Ja]=null,r(a)),i[vl]=a;return}var s=i[Ft];s!==null&&(i[Za]=null,i[Ft]=null,i[Ja]=null,s(Vt(void 0,!0))),i[Gp]=!0}),e.on("readable",F6.bind(null,i)),i};k0.exports=K6});var z0=v((sue,I0)=>{"use strict";function H0(t,e,n,i,a,r,s){try{var o=t[r](s),l=o.value}catch(u){n(u);return}o.done?e(l):Promise.resolve(l).then(i,a)}function Q6(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var r=t.apply(e,n);function s(l){H0(r,i,a,s,o,"next",l)}function o(l){H0(r,i,a,s,o,"throw",l)}s(void 0)})}}function R0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function Y6(t){for(var e=1;e{"use strict";V0.exports=je;var ps;je.ReadableState=N0;var oue=require("events").EventEmitter,$0=function(e,n){return e.listeners(n).length},Al=IC(),$p=require("buffer").Buffer,aQ=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function rQ(t){return $p.from(t)}function sQ(t){return $p.isBuffer(t)||t instanceof aQ}var ZC=require("util"),ue;ZC&&ZC.debuglog?ue=ZC.debuglog("stream"):ue=function(){};var oQ=P0(),iA=DC(),lQ=GC(),uQ=lQ.getHighWaterMark,Np=Wt().codes,cQ=Np.ERR_INVALID_ARG_TYPE,pQ=Np.ERR_STREAM_PUSH_AFTER_EOF,dQ=Np.ERR_METHOD_NOT_IMPLEMENTED,hQ=Np.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ds,KC,QC;cs()(je,Al);var Cl=iA.errorOrDestroy,YC=["error","close","destroy","pause","resume"];function gQ(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function N0(t,e,n){ps=ps||Qa(),t=t||{},typeof n!="boolean"&&(n=e instanceof ps),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=uQ(this,t,"readableHighWaterMark",n),this.buffer=new oQ,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(ds||(ds=VC().StringDecoder),this.decoder=new ds(t.encoding),this.encoding=t.encoding)}function je(t){if(ps=ps||Qa(),!(this instanceof je))return new je(t);var e=this instanceof ps;this._readableState=new N0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Al.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});je.prototype.destroy=iA.destroy;je.prototype._undestroy=iA.undestroy;je.prototype._destroy=function(t,e){e(t)};je.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=$p.from(t,e),e=""),i=!0),U0(this,t,e,!1,i)};je.prototype.unshift=function(t){return U0(this,t,null,!0,!1)};function U0(t,e,n,i,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,wQ(t,r);else{var s;if(a||(s=mQ(r,e)),s)Cl(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==$p.prototype&&(e=rQ(e)),i)r.endEmitted?Cl(t,new hQ):XC(t,r,e,!0);else if(r.ended)Cl(t,new pQ);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!n?(e=r.decoder.write(e),r.objectMode||e.length!==0?XC(t,r,e,!1):nA(t,r)):XC(t,r,e,!1)}else i||(r.reading=!1,nA(t,r))}return!r.ended&&(r.length=D0?t=D0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function G0(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=fQ(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}je.prototype.read=function(t){ue("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?eA(this):Up(this),null;if(t=G0(t,e),t===0&&e.ended)return e.length===0&&eA(this),null;var i=e.needReadable;ue("need readable",i),(e.length===0||e.length-t0?a=B0(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&eA(this)),a!==null&&this.emit("data",a),a};function wQ(t,e){if(ue("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Up(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,L0(t)))}}function Up(t){var e=t._readableState;ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(L0,t))}function L0(t){var e=t._readableState;ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,tA(t)}function nA(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(vQ,t,e))}function vQ(t,e){for(;!e.reading&&!e.ended&&(e.length1&&F0(i.pipes,t)!==-1)&&!u&&(ue("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(f){ue("onerror",f),m(),t.removeListener("error",d),$0(t,"error")===0&&Cl(t,f)}gQ(t,"error",d);function h(){t.removeListener("finish",g),m()}t.once("close",h);function g(){ue("onfinish"),t.removeListener("close",h),m()}t.once("finish",g);function m(){ue("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(ue("pipe resume"),n.resume()),t};function CQ(t){return function(){var n=t._readableState;ue("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&$0(t,"data")&&(n.flowing=!0,tA(t))}}je.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,ue("on readable",i.length,i.reading),i.length?Up(this):i.reading||process.nextTick(AQ,this)),n};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var n=Al.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(W0,this),n};je.prototype.removeAllListeners=function(t){var e=Al.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(W0,this),e};function W0(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function AQ(t){ue("readable nexttick read 0"),t.read(0)}je.prototype.resume=function(){var t=this._readableState;return t.flowing||(ue("resume"),t.flowing=!t.readableListening,bQ(this,t)),t.paused=!1,this};function bQ(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(yQ,t,e))}function yQ(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),tA(t),e.flowing&&!e.reading&&t.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function tA(t){var e=t._readableState;for(ue("flow",e.flowing);e.flowing&&t.read()!==null;);}je.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(ue("wrapped end"),n.decoder&&!n.ended){var s=n.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ue("wrapped data"),n.decoder&&(s=n.decoder.write(s)),!(n.objectMode&&s==null)&&!(!n.objectMode&&(!s||!s.length))){var o=e.push(s);o||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=(function(o){return function(){return t[o].apply(t,arguments)}})(a));for(var r=0;r=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function eA(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(PQ,e,t))}function PQ(t,e){if(ue("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&(je.from=function(t,e){return QC===void 0&&(QC=z0()),QC(je,t,e)});function F0(t,e){for(var n=0,i=t.length;n{"use strict";var jQ=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};Z0.exports=Bi;var J0=aA(),sA=Bp();cs()(Bi,J0);for(rA=jQ(sA.prototype),Lp=0;Lp{"use strict";nH.exports=Ye;function Q0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){XQ(e,t)}}var hs;Ye.WritableState=yl;var xQ={deprecate:u0()},Y0=IC(),Vp=require("buffer").Buffer,TQ=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function MQ(t){return Vp.from(t)}function EQ(t){return Vp.isBuffer(t)||t instanceof TQ}var lA=DC(),qQ=GC(),kQ=qQ.getHighWaterMark,Jt=Wt().codes,_Q=Jt.ERR_INVALID_ARG_TYPE,HQ=Jt.ERR_METHOD_NOT_IMPLEMENTED,RQ=Jt.ERR_MULTIPLE_CALLBACK,IQ=Jt.ERR_STREAM_CANNOT_PIPE,zQ=Jt.ERR_STREAM_DESTROYED,DQ=Jt.ERR_STREAM_NULL_VALUES,GQ=Jt.ERR_STREAM_WRITE_AFTER_END,$Q=Jt.ERR_UNKNOWN_ENCODING,gs=lA.errorOrDestroy;cs()(Ye,Y0);function NQ(){}function yl(t,e,n){hs=hs||Qa(),t=t||{},typeof n!="boolean"&&(n=e instanceof hs),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=kQ(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){JQ(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Q0(this)}yl.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(yl.prototype,"buffer",{get:xQ.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Fp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Fp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return Fp.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof yl}})):Fp=function(e){return e instanceof this};function Ye(t){hs=hs||Qa();var e=this instanceof hs;if(!e&&!Fp.call(Ye,this))return new Ye(t);this._writableState=new yl(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Y0.call(this)}Ye.prototype.pipe=function(){gs(this,new IQ)};function UQ(t,e){var n=new GQ;gs(t,n),process.nextTick(e,n)}function LQ(t,e,n,i){var a;return n===null?a=new DQ:typeof n!="string"&&!e.objectMode&&(a=new _Q("chunk",["string","Buffer"],n)),a?(gs(t,a),process.nextTick(i,a),!1):!0}Ye.prototype.write=function(t,e,n){var i=this._writableState,a=!1,r=!i.objectMode&&EQ(t);return r&&!Vp.isBuffer(t)&&(t=MQ(t)),typeof e=="function"&&(n=e,e=null),r?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=NQ),i.ending?UQ(this,n):(r||LQ(this,i,t,n))&&(i.pendingcb++,a=BQ(this,i,r,t,e,n)),a};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&X0(this,t))};Ye.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new $Q(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function WQ(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Vp.from(e,n)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function BQ(t,e,n,i,a,r){if(!n){var s=WQ(e,i,a);i!==s&&(n=!0,a="buffer",i=s)}var o=e.objectMode?1:i.length;e.length+=o;var l=e.length{"use strict";var e8=require("util"),iH=Bp(),{LEVEL:tH}=sn(),Pl=aH.exports=function(e={}){iH.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};e8.inherits(Pl,iH);Pl.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[tH]]){if(e&&!this.format)return this.log(e,i);let r,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){r=o}if(r||!s){if(i(),r)throw r;return}return this.log(s,i)}return this._writableState.sync=!1,i(null)};Pl.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i=this.levels[n[tH]])&&(this.handleExceptions||n.exception!==!0))};Pl.prototype._nop=function(){}});var pA=v((due,sH)=>{"use strict";var n8=require("util"),{LEVEL:cA}=sn(),rH=uA(),jl=sH.exports=function(e={}){if(rH.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};n8.inherits(jl,rH);jl.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[cA]])&&this.transport.log(e[cA],e.message,e,this._nop),i(null)};jl.prototype._writev=function(e,n){for(let i=0;i{"use strict";dA.exports=uA();dA.exports.LegacyTransportStream=pA()});var uH=v((mue,lH)=>{"use strict";var i8=require("os"),{LEVEL:oH,MESSAGE:fs}=sn(),t8=ms();lH.exports=class extends t8{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:i8.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[oH]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[fs]}${this.eol}`):this._consoleError(e[fs]),n&&n();return}else if(this.consoleWarnLevels[e[oH]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[fs]}${this.eol}`):this._consoleWarn(e[fs]),n&&n();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[fs]}${this.eol}`):this._consoleLog(e[fs]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var Zp=v((Jp,cH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.default=a8;function a8(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}cH.exports=Jp.default});var dH=v((Kp,pH)=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};pH.exports=Kp.default});var mH=v(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.fallback=hH;Zt.wrap=gH;var r8=Zt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,s8=Zt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,o8=Zt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function hH(t){setTimeout(t,0)}function gH(t){return(e,...n)=>t(()=>e(...n))}var Sl;r8?Sl=queueMicrotask:s8?Sl=setImmediate:o8?Sl=process.nextTick:Sl=hH;Zt.default=gH(Sl)});var AH=v((Qp,CH)=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.default=h8;var l8=dH(),u8=vH(l8),c8=mH(),p8=vH(c8),d8=Ya();function vH(t){return t&&t.__esModule?t:{default:t}}function h8(t){return(0,d8.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return fH(i,n)}:(0,u8.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return fH(i,n);n(null,i)})}function fH(t,e){return t.then(n=>{wH(e,null,n)},n=>{wH(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function wH(t,e,n){try{t(e,n)}catch(i){(0,p8.default)(a=>{throw a},i)}}CH.exports=Qp.default});var Ya=v(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.isAsyncIterable=dt.isAsyncGenerator=dt.isAsync=void 0;var g8=AH(),m8=f8(g8);function f8(t){return t&&t.__esModule?t:{default:t}}function bH(t){return t[Symbol.toStringTag]==="AsyncFunction"}function w8(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function v8(t){return typeof t[Symbol.asyncIterator]=="function"}function C8(t){if(typeof t!="function")throw new Error("expected a function");return bH(t)?(0,m8.default)(t):t}dt.default=C8;dt.isAsync=bH;dt.isAsyncGenerator=w8;dt.isAsyncIterable=v8});var ws=v((Yp,yH)=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=A8;function A8(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,r)=>{i[e-1]=(s,...o)=>{if(s)return r(s);a(o.length>1?o:o[0])},t.apply(this,i)})}return n}yH.exports=Yp.default});var jH=v((Xp,PH)=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var b8=Zp(),y8=hA(b8),P8=Ya(),j8=hA(P8),S8=ws(),O8=hA(S8);function hA(t){return t&&t.__esModule?t:{default:t}}Xp.default=(0,O8.default)((t,e,n)=>{var i=(0,y8.default)(e)?[]:{};t(e,(a,r,s)=>{(0,j8.default)(a)((o,...l)=>{l.length<2&&([l]=l),i[r]=l,s(o)})},a=>n(a,i))},3);PH.exports=Xp.default});var gA=v((ed,SH)=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.default=x8;function x8(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}SH.exports=ed.default});var xH=v((nd,OH)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};OH.exports=nd.default});var EH=v((id,MH)=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.default=R8;var T8=Zp(),M8=TH(T8),E8=xH(),q8=TH(E8);function TH(t){return t&&t.__esModule?t:{default:t}}function k8(t){var e=-1,n=t.length;return function(){return++e{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=I8;function I8(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}qH.exports=td.default});var rd=v((ad,kH)=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var z8={};ad.default=z8;kH.exports=ad.default});var HH=v((sd,_H)=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.default=N8;var D8=rd(),G8=$8(D8);function $8(t){return t&&t.__esModule?t:{default:t}}function N8(t,e,n,i){let a=!1,r=!1,s=!1,o=0,l=0;function u(){o>=e||s||a||(s=!0,t.next().then(({value:d,done:h})=>{if(!(r||a)){if(s=!1,h){a=!0,o<=0&&i(null);return}o++,n(d,l,c),l++,u()}}).catch(p))}function c(d,h){if(o-=1,!r){if(d)return p(d);if(d===!1){a=!0,r=!0;return}if(h===G8.default||a&&o<=0)return a=!0,i(null);u()}}function p(d){r||(s=!1,a=!0,i(d))}u()}_H.exports=sd.default});var DH=v((od,zH)=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var U8=gA(),L8=Ol(U8),W8=EH(),B8=Ol(W8),F8=mA(),V8=Ol(F8),RH=Ya(),J8=HH(),IH=Ol(J8),Z8=rd(),K8=Ol(Z8);function Ol(t){return t&&t.__esModule?t:{default:t}}od.default=t=>(e,n,i)=>{if(i=(0,L8.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,RH.isAsyncGenerator)(e))return(0,IH.default)(e,t,n,i);if((0,RH.isAsyncIterable)(e))return(0,IH.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,B8.default)(e),r=!1,s=!1,o=0,l=!1;function u(p,d){if(!s)if(o-=1,p)r=!0,i(p);else if(p===!1)r=!0,s=!0;else{if(d===K8.default||r&&o<=0)return r=!0,i(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var Q8=DH(),Y8=fA(Q8),X8=Ya(),e7=fA(X8),n7=ws(),i7=fA(n7);function fA(t){return t&&t.__esModule?t:{default:t}}function t7(t,e,n,i){return(0,Y8.default)(e)(t,(0,e7.default)(n),i)}ld.default=(0,i7.default)(t7,4);GH.exports=ld.default});var UH=v((ud,NH)=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var a7=wA(),r7=$H(a7),s7=ws(),o7=$H(s7);function $H(t){return t&&t.__esModule?t:{default:t}}function l7(t,e,n){return(0,r7.default)(t,1,e,n)}ud.default=(0,o7.default)(l7,3);NH.exports=ud.default});var BH=v((cd,WH)=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.default=h7;var u7=jH(),c7=LH(u7),p7=UH(),d7=LH(p7);function LH(t){return t&&t.__esModule?t:{default:t}}function h7(t,e){return(0,c7.default)(d7.default,t,e)}WH.exports=cd.default});var vA=v((vue,VH)=>{"use strict";VH.exports=ht;var pd=Wt().codes,g7=pd.ERR_METHOD_NOT_IMPLEMENTED,m7=pd.ERR_MULTIPLE_CALLBACK,f7=pd.ERR_TRANSFORM_ALREADY_TRANSFORMING,w7=pd.ERR_TRANSFORM_WITH_LENGTH_0,dd=Qa();cs()(ht,dd);function v7(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new m7);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";ZH.exports=xl;var JH=vA();cs()(xl,JH);function xl(t){if(!(this instanceof xl))return new xl(t);JH.call(this,t)}xl.prototype._transform=function(t,e,n){n(null,t)}});var nR=v((Aue,eR)=>{"use strict";var CA;function A7(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var XH=Wt().codes,b7=XH.ERR_MISSING_ARGS,y7=XH.ERR_STREAM_DESTROYED;function QH(t){if(t)throw t}function P7(t){return t.setHeader&&typeof t.abort=="function"}function j7(t,e,n,i){i=A7(i);var a=!1;t.on("close",function(){a=!0}),CA===void 0&&(CA=zp()),CA(t,{readable:e,writable:n},function(s){if(s)return i(s);a=!0,i()});var r=!1;return function(s){if(!a&&!r){if(r=!0,P7(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(s||new y7("pipe"))}}}function YH(t){t()}function S7(t,e){return t.pipe(e)}function O7(t){return!t.length||typeof t[t.length-1]!="function"?QH:t.pop()}function x7(){for(var t=arguments.length,e=new Array(t),n=0;n0;return j7(s,l,u,function(c){a||(a=c),c&&r.forEach(YH),!l&&(r.forEach(YH),i(a))})});return e.reduce(S7)}eR.exports=x7});var Xa=v((fi,Ml)=>{var Tl=require("stream");process.env.READABLE_STREAM==="disable"&&Tl?(Ml.exports=Tl.Readable,Object.assign(Ml.exports,Tl),Ml.exports.Stream=Tl):(fi=Ml.exports=aA(),fi.Stream=Tl||fi,fi.Readable=fi,fi.Writable=Bp(),fi.Duplex=Qa(),fi.Transform=vA(),fi.PassThrough=KH(),fi.finished=zp(),fi.pipeline=nR())});var OA=v((bue,tR)=>{var vs=[],El=[],AA=function(){};function yA(t){return~vs.indexOf(t)?!1:(vs.push(t),!0)}function PA(t){AA=t}function T7(t){for(var e=[],n=0;n{var q7=OA(),k7=q7(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});aR.exports=k7});var pR=v((Pue,cR)=>{"use strict";var Fi={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},oR=Object.create(null);for(let t in Fi)Object.hasOwn(Fi,t)&&(oR[Fi[t]]=t);var pn={to:{},get:{}};pn.get=function(t){let e=t.slice(0,3).toLowerCase(),n,i;switch(e){case"hsl":{n=pn.get.hsl(t),i="hsl";break}case"hwb":{n=pn.get.hwb(t),i="hwb";break}default:{n=pn.get.rgb(t),i="rgb";break}}return n?{model:i,value:n}:null};pn.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,s=[0,0,0,1],o,l,u;if(o=t.match(n)){for(u=o[2],o=o[1],l=0;l<3;l++){let c=l*2;s[l]=Number.parseInt(o.slice(c,c+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(o=t.match(e)){for(o=o[1],u=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(o=t.match(i)){for(l=0;l<3;l++)s[l]=Number.parseInt(o[l+1],10);o[4]&&(s[3]=o[5]?Number.parseFloat(o[4])*.01:Number.parseFloat(o[4]))}else if(o=t.match(a)){for(l=0;l<3;l++)s[l]=Math.round(Number.parseFloat(o[l+1])*2.55);o[4]&&(s[3]=o[5]?Number.parseFloat(o[4])*.01:Number.parseFloat(o[4]))}else return(o=t.match(r))?o[1]==="transparent"?[0,0,0,0]:Object.hasOwn(Fi,o[1])?(s=Fi[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Kt(s[l],0,255);return s[3]=Kt(s[3],0,1),s};pn.get.hsl=function(t){if(!t)return null;let e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){let i=Number.parseFloat(n[4]),a=(Number.parseFloat(n[1])%360+360)%360,r=Kt(Number.parseFloat(n[2]),0,100),s=Kt(Number.parseFloat(n[3]),0,100),o=Kt(Number.isNaN(i)?1:i,0,1);return[a,r,s,o]}return null};pn.get.hwb=function(t){if(!t)return null;let e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){let i=Number.parseFloat(n[4]),a=(Number.parseFloat(n[1])%360+360)%360,r=Kt(Number.parseFloat(n[2]),0,100),s=Kt(Number.parseFloat(n[3]),0,100),o=Kt(Number.isNaN(i)?1:i,0,1);return[a,r,s,o]}return null};pn.to.hex=function(...t){return"#"+hd(t[0])+hd(t[1])+hd(t[2])+(t[3]<1?hd(Math.round(t[3]*255)):"")};pn.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};pn.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};pn.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};pn.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};pn.to.keyword=function(...t){return oR[t.slice(0,3)]};function Kt(t,e,n){return Math.min(Math.max(e,t),n)}function hd(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var lR={};for(let t of Object.keys(Fi))lR[Fi[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},gt=(6/29)**3;function Cs(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function As(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:n})}H.rgb.hsl=function(t){let e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),r=Math.max(e,n,i),s=r-a,o,l;switch(r){case a:{o=0;break}case e:{o=(n-i)/s;break}case n:{o=2+(i-e)/s;break}case i:{o=4+(e-n)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);let u=(a+r)/2;return r===a?l=0:u<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,u*100]};H.rgb.hsv=function(t){let e,n,i,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),p=function(d){return(u-d)/6/c+1/2};if(c===0)a=0,r=0;else{switch(r=c/u,e=p(s),n=p(o),i=p(l),u){case s:{a=i-n;break}case o:{a=1/3+e-i;break}case l:{a=2/3+n-e;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,r*100,u*100]};H.rgb.hwb=function(t){let e=t[0],n=t[1],i=t[2],a=H.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,r*100,i*100]};H.rgb.oklab=function(t){let e=As(t[0]/255),n=As(t[1]/255),i=As(t[2]/255),a=Math.cbrt(.4122214708*e+.5363325363*n+.0514459929*i),r=Math.cbrt(.2119034982*e+.6806995451*n+.1073969566*i),s=Math.cbrt(.0883024619*e+.2817188376*n+.6299787005*i),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.rgb.cmyk=function(t){let e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(1-e,1-n,1-i),r=(1-e-a)/(1-a)||0,s=(1-n-a)/(1-a)||0,o=(1-i-a)/(1-a)||0;return[r*100,s*100,o*100,a*100]};function _7(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=lR[t];if(e)return e;let n=Number.POSITIVE_INFINITY,i;for(let a of Object.keys(Fi)){let r=Fi[a],s=_7(t,r);sgt?n**(1/3):7.787*n+16/116,i=i>gt?i**(1/3):7.787*i+16/116,a=a>gt?a**(1/3):7.787*a+16/116;let r=116*i-16,s=500*(n-i),o=200*(i-a);return[r,s,o]};H.hsl.rgb=function(t){let e=t[0]/360,n=t[1]/100,i=t[2]/100,a,r;if(n===0)return r=i*255,[r,r,r];let s=i<.5?i*(1+n):i+n-i*n,o=2*i-s,l=[0,0,0];for(let u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?r=o+(s-o)*6*a:2*a<1?r=s:3*a<2?r=o+(s-o)*(2/3-a)*6:r=o,l[u]=r*255;return l};H.hsl.hsv=function(t){let e=t[0],n=t[1]/100,i=t[2]/100,a=n,r=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,a*=r<=1?r:2-r;let s=(i+n)/2,o=i===0?2*a/(r+a):2*n/(i+n);return[e,o*100,s*100]};H.hsv.rgb=function(t){let e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*i*(1-n),o=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,a){case 0:return[i,l,s];case 1:return[o,i,s];case 2:return[s,i,l];case 3:return[s,o,i];case 4:return[l,s,i];case 5:return[i,s,o]}};H.hsv.hsl=function(t){let e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),r,s;s=(2-n)*i;let o=(2-n)*a;return r=n*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,r*100,s*100]};H.hwb.rgb=function(t){let e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,r;a>1&&(n/=a,i/=a);let s=Math.floor(6*e),o=1-i;r=6*e-s,(s&1)!==0&&(r=1-r);let l=n+r*(o-n),u,c,p;switch(s){default:case 6:case 0:{u=o,c=l,p=n;break}case 1:{u=l,c=o,p=n;break}case 2:{u=n,c=o,p=l;break}case 3:{u=n,c=l,p=o;break}case 4:{u=l,c=n,p=o;break}case 5:{u=o,c=n,p=l;break}}return[u*255,c*255,p*255]};H.cmyk.rgb=function(t){let e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,r=1-Math.min(1,e*(1-a)+a),s=1-Math.min(1,n*(1-a)+a),o=1-Math.min(1,i*(1-a)+a);return[r*255,s*255,o*255]};H.xyz.rgb=function(t){let e=t[0]/100,n=t[1]/100,i=t[2]/100,a,r,s;return a=e*3.2404542+n*-1.5371385+i*-.4985314,r=e*-.969266+n*1.8760108+i*.041556,s=e*.0556434+n*-.2040259+i*1.0572252,a=Cs(a),r=Cs(r),s=Cs(s),[a*255,r*255,s*255]};H.xyz.lab=function(t){let e=t[0],n=t[1],i=t[2];e/=95.047,n/=100,i/=108.883,e=e>gt?e**(1/3):7.787*e+16/116,n=n>gt?n**(1/3):7.787*n+16/116,i=i>gt?i**(1/3):7.787*i+16/116;let a=116*n-16,r=500*(e-n),s=200*(n-i);return[a,r,s]};H.xyz.oklab=function(t){let e=t[0]/100,n=t[1]/100,i=t[2]/100,a=Math.cbrt(.8189330101*e+.3618667424*n-.1288597137*i),r=Math.cbrt(.0329845436*e+.9293118715*n+.0361456387*i),s=Math.cbrt(.0482003018*e+.2643662691*n+.633851707*i),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.oklab.oklch=function(t){return H.lab.lch(t)};H.oklab.xyz=function(t){let e=t[0]/100,n=t[1]/100,i=t[2]/100,a=(.999999998*e+.396337792*n+.215803758*i)**3,r=(1.000000008*e-.105561342*n-.063854175*i)**3,s=(1.000000055*e-.089484182*n-1.291485538*i)**3,o=1.227013851*a-.55779998*r+.281256149*s,l=-.040580178*a+1.11225687*r-.071676679*s,u=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,u*100]};H.oklab.rgb=function(t){let e=t[0]/100,n=t[1]/100,i=t[2]/100,a=(e+.3963377774*n+.2158037573*i)**3,r=(e-.1055613458*n-.0638541728*i)**3,s=(e-.0894841775*n-1.291485548*i)**3,o=Cs(4.0767416621*a-3.3077115913*r+.2309699292*s),l=Cs(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=Cs(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,u*255]};H.oklch.oklab=function(t){return H.lch.lab(t)};H.lab.xyz=function(t){let e=t[0],n=t[1],i=t[2],a,r,s;r=(e+16)/116,a=n/500+r,s=r-i/200;let o=r**3,l=a**3,u=s**3;return r=o>gt?o:(r-16/116)/7.787,a=l>gt?l:(a-16/116)/7.787,s=u>gt?u:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};H.lab.lch=function(t){let e=t[0],n=t[1],i=t[2],a;a=Math.atan2(i,n)*360/2/Math.PI,a<0&&(a+=360);let s=Math.sqrt(n*n+i*i);return[e,s,a]};H.lch.lab=function(t){let e=t[0],n=t[1],a=t[2]/360*2*Math.PI,r=n*Math.cos(a),s=n*Math.sin(a);return[e,r,s]};H.rgb.ansi16=function(t,e=null){let[n,i,a]=t,r=e===null?H.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),r===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return r===2&&(s+=60),s};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],n=t[1],i=t[2];return e>>4===n>>4&&n>>4===i>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)};H.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let n=(Math.trunc(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,r=(e>>2&1)*n*255;return[i,a,r]};H.ansi256.rgb=function(t){if(t=t[0],t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let e,n=Math.floor(t/36)/5*255,i=Math.floor((e=t%36)/6)/5*255,a=e%6/5*255;return[n,i,a]};H.rgb.hex=function(t){let n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16),a=i>>16&255,r=i>>8&255,s=i&255;return[a,r,s]};H.rgb.hcg=function(t){let e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),r=Math.min(Math.min(e,n),i),s=a-r,o,l=s<1?r/(1-s):0;return s<=0?o=0:a===e?o=(n-i)/s%6:a===n?o=2+(i-e)/s:o=4+(e-n)/s,o/=6,o%=1,[o*360,s*100,l*100]};H.hsl.hcg=function(t){let e=t[1]/100,n=t[2]/100,i=n<.5?2*e*n:2*e*(1-n),a=0;return i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};H.hsv.hcg=function(t){let e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};H.hcg.rgb=function(t){let e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];let a=[0,0,0],r=e%1*6,s=r%1,o=1-s,l=0;switch(Math.floor(r)){case 0:{a[0]=1,a[1]=s,a[2]=0;break}case 1:{a[0]=o,a[1]=1,a[2]=0;break}case 2:{a[0]=0,a[1]=1,a[2]=s;break}case 3:{a[0]=0,a[1]=o,a[2]=1;break}case 4:{a[0]=s,a[1]=0,a[2]=1;break}default:a[0]=1,a[1]=0,a[2]=o}return l=(1-n)*i,[(n*a[0]+l)*255,(n*a[1]+l)*255,(n*a[2]+l)*255]};H.hcg.hsv=function(t){let e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};H.hcg.hsl=function(t){let e=t[1]/100,i=t[2]/100*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};H.hcg.hwb=function(t){let e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};H.hwb.hcg=function(t){let e=t[1]/100,i=1-t[2]/100,a=i-e,r=0;return a<1&&(r=(i-a)/(1-a)),[t[0],a*100,r*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(i.length)+i};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function H7(){let t={},e=Object.keys(H);for(let{length:n}=e,i=0;i0;){let i=n.pop(),a=Object.keys(H[i]);for(let{length:r}=a,s=0;s1&&(n=i),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function N7(t){let e=function(...n){let i=n[0];if(i==null)return i;i.length>1&&(n=i);let a=t(n);if(typeof a=="object")for(let{length:r}=a,s=0;s0){this.model=e||"rgb",i=wn[this.model].channels;let a=Array.prototype.slice.call(t,0,i);this.color=MA(a,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let a=Object.keys(t);"alpha"in t&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let r=a.sort().join("");if(!(r in xA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=xA[r];let{labels:s}=wn[this.model],o=[];for(n=0;n(t%360+360)%360),saturationl:Xe("hsl",1,un(100)),lightness:Xe("hsl",2,un(100)),saturationv:Xe("hsv",1,un(100)),value:Xe("hsv",2,un(100)),chroma:Xe("hcg",1,un(100)),gray:Xe("hcg",2,un(100)),white:Xe("hwb",1,un(100)),wblack:Xe("hwb",2,un(100)),cyan:Xe("cmyk",0,un(100)),magenta:Xe("cmyk",1,un(100)),yellow:Xe("cmyk",2,un(100)),black:Xe("cmyk",3,un(100)),x:Xe("xyz",0,un(95.047)),y:Xe("xyz",1,un(100)),z:Xe("xyz",2,un(108.833)),l:Xe("lab",0,un(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new cn(t):wn[this.model].keyword(this.color)},hex(t){return t!==void 0?new cn(t):pn.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new cn(t);let e=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),pn.to.hex(...e)+n},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,e=[];for(let[n,i]of t.entries()){let a=i/255;e[n]=a<=.04045?a/12.92:((a+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){let e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(t){let e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){let e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){let e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){let e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){let e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){let e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){let e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){let t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return cn.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,r=2*a-1,s=n.alpha()-i.alpha(),o=((r*s===-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return cn.rgb(o*n.red()+l*i.red(),o*n.green()+l*i.green(),o*n.blue()+l*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};for(let t of Object.keys(wn)){if(uR.includes(t))continue;let{channels:e}=wn[t];cn.prototype[t]=function(...n){return this.model===t?new cn(this):n.length>0?new cn(n,t):new cn([...W7(wn[this.model][t].raw(this.color)),this.valpha],t)},cn[t]=function(...n){let i=n[0];return typeof i=="number"&&(i=MA(n,e)),new cn(i,t)}}function U7(t,e){return Number(t.toFixed(e))}function L7(t){return function(e){return U7(e,t)}}function Xe(t,e,n){t=Array.isArray(t)?t:[t];for(let i of t)(TA[i]||=[])[e]=n;return t=t[0],function(i){let a;return i!==void 0?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function un(t){return function(e){return Math.max(0,Math.min(t,e))}}function W7(t){return Array.isArray(t)?t:[t]}function MA(t,e){for(let n=0;n{"use strict";function Mi(t,e){if(e)return new Mi(t).style(e);if(!(this instanceof Mi))return new Mi(t);this.text=t}Mi.prototype.prefix="\x1B[";Mi.prototype.suffix="m";Mi.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};Mi.prototype.rgb=function(e,n,i){var a=e/255*5,r=n/255*5,s=i/255*5;return this.ansi(a,r,s)};Mi.prototype.ansi=function(e,n,i){var a=Math.round(e),r=Math.round(n),s=Math.round(i);return 16+a*36+r*6+s};Mi.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};Mi.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};dR.exports=Mi});var mR=v((Sue,gR)=>{var J7=pR(),Z7=hR();gR.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?Z7(i+":",J7(i)):i+":";return e[0]=a+" "+e[0],e}});var wR=v((Oue,fR)=>{"use strict";fR.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a{var K7=wR();vR.exports=function(e){return function(i){try{return K7(i,e())}catch{}return!1}}});var bR=v((Tue,AR)=>{var Q7=CR();AR.exports=Q7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var PR=v((Mue,yR)=>{yR.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var SR=v((Eue,jR)=>{var Y7=OA(),X7=require("tty").isatty(1),gd=Y7(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:X7,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});gd.modify(mR());gd.use(bR());gd.set(PR());jR.exports=gd});var ql=v((que,EA)=>{process.env.NODE_ENV==="production"?EA.exports=rR():EA.exports=SR()});var xR=v((kue,OR)=>{"use strict";var qA=require("fs"),{StringDecoder:eY}=require("string_decoder"),{Stream:nY}=Xa();function iY(){}OR.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new eY("utf8"),a=new nY,r="",s=0,o=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},qA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){qA.close(u,iY);return}return qA.read(u,n,0,n.length,s,(p,d)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!d)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(c,1e3);let h=i.write(n.slice(0,d));e||a.emit("data",h),h=(r+h).split(/\n+/);let g=h.length-1,m=0;for(;mt.start)&&(e?e(null,h[m]):a.emit("line",h[m])),o++;return r=h[g],s+=d,c()})})()}),e?a.destroy:a}});var qR=v((Hue,ER)=>{"use strict";var Qn=require("fs"),vn=require("path"),TR=BH(),tY=require("zlib"),{MESSAGE:aY}=sn(),{Stream:rY,PassThrough:MR}=Xa(),sY=ms(),Ei=ql()("winston:file"),oY=require("os"),lY=xR();ER.exports=class extends sY{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(r=>{if(e[r])throw new Error(`Cannot set ${r} and ${i} together`)})}if(this._stream=new MR,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?vn.basename(e.filename):"winston.log",this.dirname=e.dirname||vn.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=vn.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:oY.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}_final(e){if(this._opening){this.once("open",()=>this._final(e));return}if(this._stream.end(),!this._dest||this._dest.writableFinished)return e();this._dest.once("finish",e),this._dest.once("error",e)}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[aY]}${this.eol}`,a=Buffer.byteLength(i);function r(){if(this._size+=a,this._pendingSize-=a,Ei("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let s=this._stream.write(i,r.bind(this));return s?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),Ei("written",s,this._drain),this.finishIfEnding(),s}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=vn.join(this.dirname,this.filename),a="",r=[],s=0,o=Qn.createReadStream(i,{encoding:"utf8"});o.on("error",d=>{if(o.readable&&o.destroy(),!!n)return d.code!=="ENOENT"?n(d):n(null,r)}),o.on("data",d=>{d=(a+d).split(/\n+/);let h=d.length-1,g=0;for(;g=e.start)&&l(d[g]),s++;a=d[h]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),n&&n(null,r)});function l(d,h){try{let g=JSON.parse(d);c(g)&&u(g)}catch(g){h||o.emit("error",g)}}function u(d){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(d=e.fields.reduce((h,g)=>(h[g]=d[g],h),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(d)}function c(d){if(!d||typeof d!="object")return;let h=new Date(d.timestamp);if(!(e.from&&he.until||e.level&&e.level!==d.level))return!0}function p(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-1440*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let n=vn.join(this.dirname,this.filename),i=new rY,a={file:n,start:e.start};return i.destroy=lY(a,(r,s)=>{if(r)return i.emit("error",r);try{i.emit("data",s),s=JSON.parse(s),i.emit("log",s)}catch(o){i.emit("error",o)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);Ei("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let n=this._getFile(),i=vn.join(this.dirname,n);Qn.stat(i,(a,r)=>{if(a&&a.code==="ENOENT")return Ei("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return Ei(`err ${a.code} ${i}`),e(a);if(!r||this._needsNewFile(r.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,r.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=vn.join(this.dirname,this.filename);Ei("create stream start",n,this.options);let i=Qn.createWriteStream(n,this.options).on("error",a=>Ei(a)).on("close",()=>Ei("close",i.path,i.bytesWritten)).on("open",()=>{Ei("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new MR,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return Ei("create stream ok",n),i}_incFile(e){Ei("_incFile",this.filename);let n=vn.extname(this._basename),i=vn.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(vn.join(this.dirname,`${i}${s}${n}`),vn.join(this.dirname,`${i}${s}${n}.gz`),r)}.bind(this)),a.push(function(r){this.tailable?this._checkMaxFilesTailable(n,i,r):(this._created+=1,this._checkMaxFilesIncrementing(n,i,r))}.bind(this)),TR(a,e)}_getFile(){let e=vn.extname(this._basename),n=vn.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created1;s--)a.push(function(o,l){let u=`${n}${o-1}${e}${r}`,c=vn.join(this.dirname,u);Qn.exists(c,p=>{if(!p)return l(null);u=`${n}${o}${e}${r}`,Qn.rename(c,vn.join(this.dirname,u),l)})}.bind(this,s));TR(a,()=>{Qn.rename(vn.join(this.dirname,`${n}${e}${r}`),vn.join(this.dirname,`${n}1${e}${r}`),i)})}_compressFile(e,n,i){Qn.access(e,Qn.F_OK,a=>{if(a)return i();var r=tY.createGzip(),s=Qn.createReadStream(e),o=Qn.createWriteStream(n);o.on("finish",()=>{Qn.unlink(e,i)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Qn.existsSync(e)||Qn.mkdirSync(e,{recursive:!0})}}});var _R=v((Iue,kR)=>{"use strict";var uY=require("http"),cY=require("https"),{Stream:pY}=Xa(),dY=ms(),{configure:hY}=ml();kR.exports=class extends dY{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(r,s,o)=>{if(s&&s.statusCode!==200&&(r=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),r)return n(r);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return n(l)}n(null,o)})}stream(e={}){let n=new pY;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let r="",s=this._request(e,a,i);return n.destroy=()=>s.destroy(),s.on("data",o=>{o=(r+o).split(/\n+/);let l=o.length-1,u=0;for(;un.emit("error",o)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let r=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){r.batchTimeoutID=-1,r._doBatchRequest(r.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let r=Object.assign({},this.headers);i&&i.bearer&&(r.Authorization=`Bearer ${i.bearer}`);let s=(this.ssl?cY:uY).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:r,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});s.on("error",n),s.on("response",l=>l.on("end",()=>n(null,l)).resume());let o=hY({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var kA=v((zue,HR)=>{"use strict";var Vi=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Vi.writable=t=>Vi(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Vi.readable=t=>Vi(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Vi.duplex=t=>Vi.writable(t)&&Vi.readable(t);Vi.transform=t=>Vi.duplex(t)&&typeof t._transform=="function";HR.exports=Vi});var IR=v((Gue,RR)=>{"use strict";var gY=kA(),{MESSAGE:mY}=sn(),fY=require("os"),wY=ms();RR.exports=class extends wY{constructor(e={}){if(super(e),!e.stream||!gY(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:fY.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[mY]}${this.eol}`),n&&n()}}});var zR=v(kl=>{"use strict";Object.defineProperty(kl,"Console",{configurable:!0,enumerable:!0,get(){return uH()}});Object.defineProperty(kl,"File",{configurable:!0,enumerable:!0,get(){return qR()}});Object.defineProperty(kl,"Http",{configurable:!0,enumerable:!0,get(){return _R()}});Object.defineProperty(kl,"Stream",{configurable:!0,enumerable:!0,get(){return IR()}})});var fd=v(_l=>{"use strict";var md=HC(),{configs:_A}=sn();_l.cli=md.levels(_A.cli);_l.npm=md.levels(_A.npm);_l.syslog=md.levels(_A.syslog);_l.addColors=md.levels});var GR=v((wd,DR)=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var vY=Zp(),CY=er(vY),AY=rd(),bY=er(AY),yY=wA(),PY=er(yY),jY=gA(),SY=er(jY),OY=mA(),xY=er(OY),TY=Ya(),MY=er(TY),EY=ws(),qY=er(EY);function er(t){return t&&t.__esModule?t:{default:t}}function kY(t,e,n){n=(0,SY.default)(n);var i=0,a=0,{length:r}=t,s=!1;r===0&&n(null);function o(l,u){l===!1&&(s=!0),s!==!0&&(l?n(l):(++a===r||u===bY.default)&&n(null))}for(;i{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.default=RY;function RY(t){return(e,n,i)=>t(e,i)}$R.exports=vd.default});var bd=v((Ad,UR)=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var IY=GR(),zY=Cd(IY),DY=NR(),GY=Cd(DY),$Y=Ya(),NY=Cd($Y),UY=ws(),LY=Cd(UY);function Cd(t){return t&&t.__esModule?t:{default:t}}function WY(t,e,n){return(0,zY.default)(t,(0,GY.default)((0,NY.default)(e)),n)}Ad.default=(0,LY.default)(WY,3);UR.exports=Ad.default});var WR=v((Uue,LR)=>{"use strict";var BY=Object.prototype.toString;LR.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=BY.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var HA=v((Lue,BR)=>{"use strict";var FY=WR();BR.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=FY(e),a}});var RA=v(Rl=>{Rl.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(r,s){return s},Error.captureStackTrace(n,t||Rl.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};Rl.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(` +`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var r=null,s=null,o=null,l=null,u=null,c=a[5]==="native";if(a[1]){o=a[1];var p=o.lastIndexOf(".");if(o[p-1]=="."&&p--,p>0){r=o.substr(0,p),s=o.substr(p+1);var d=r.indexOf(".Module");d>0&&(o=o.substr(d+1),r=r.substr(0,d))}l=null}s&&(l=r,u=s),s===""&&(u=null,o=null);var h={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:u,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(h)}}).filter(function(i){return!!i})};function Hl(t){for(var e in t)this[e]=t[e]}var VY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],JY=["topLevel","eval","native","constructor"];VY.forEach(function(t){Hl.prototype[t]=null,Hl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});JY.forEach(function(t){Hl.prototype[t]=!1,Hl.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Rl._createParsedCallSite=function(t){return new Hl(t)}});var VR=v((Fue,FR)=>{"use strict";var{Writable:ZY}=Xa();FR.exports=class extends ZY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,n,i){return e.exception?this.transport.log(e,i):(i(),!0)}}});var zA=v((Jue,KR)=>{"use strict";var JR=require("os"),KY=bd(),IA=ql()("winston:exception"),QY=HA(),ZR=RA(),YY=VR();KR.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(` +`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:JR.loadavg(),uptime:JR.uptime()}}getTrace(e){return(e?ZR.parse(e):ZR.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let n=new YY(e);this.handlers.set(e,n),this.logger.pipe(n)}}_uncaughtException(e){let n=this.getAllInfo(e),i=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function s(){IA("doExit",a),IA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!i||i.length===0)return process.nextTick(s);KY(i,(o,l)=>{let u=QY(l),c=o.transport||o;function p(d){return()=>{IA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(n),a&&(r=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var YR=v((Kue,QR)=>{"use strict";var{Writable:XY}=Xa();QR.exports=class extends XY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,n,i){return e.rejection?this.transport.log(e,i):(i(),!0)}}});var GA=v((Yue,nI)=>{"use strict";var XR=require("os"),eX=bd(),DA=ql()("winston:rejection"),nX=HA(),eI=RA(),iX=YR();nI.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(` +`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:XR.loadavg(),uptime:XR.uptime()}}getTrace(e){return(e?eI.parse(e):eI.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let n=new iX(e);this.handlers.set(e,n),this.logger.pipe(n)}}_unhandledRejection(e){let n=this.getAllInfo(e),i=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function s(){DA("doExit",a),DA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!i||i.length===0)return process.nextTick(s);eX(i,(o,l)=>{let u=nX(l),c=o.transport||o;function p(d){return()=>{DA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(n),a&&(r=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var tI=v((Xue,iI)=>{"use strict";var $A=class{constructor(e){let n=yd();if(typeof e!="object"||Array.isArray(e)||!(e instanceof n))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let n=typeof e[e.length-1]=="object"?e.pop():{};return n.level=n.level||"info",n.durationMs=Date.now()-this.start,this.logger.write(n)}};iI.exports=$A});var yd=v((ece,oI)=>{"use strict";var{Stream:tX,Transform:aX}=Xa(),aI=bd(),{LEVEL:Ji,SPLAT:rI}=sn(),sI=kA(),rX=zA(),sX=GA(),oX=pA(),lX=tI(),{warn:uX}=RC(),cX=fd(),pX=/%[scdjifoO%]/g,Pd=class extends aX{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let n=this;return Object.create(n,{write:{value:function(i){let a=Object.assign({},e,i);i instanceof Error&&(a.stack=i.stack,a.message=i.message,a.cause=i.cause),n.write(a)}}})}configure({silent:e,format:n,defaultMeta:i,levels:a,level:r="info",exitOnError:s=!0,transports:o,colors:l,emitErrs:u,formatters:c,padLevels:p,rewriters:d,stripColors:h,exceptionHandlers:g,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||MC()(),this.defaultMeta=i||null,this.levels=a||this.levels||cX.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new rX(this),this.rejections=new sX(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(f=>this.add(f))),l||u||c||p||d||h)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` +`));g&&this.exceptions.handle(g),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=Il(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((n,i)=>{let a=Il(this.levels,i.level);return a!==null&&a>n?a:n},e)}isLevelEnabled(e){let n=Il(this.levels,e);if(n===null)return!1;let i=Il(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(r=>{let s=Il(this.levels,r.level);return s===null&&(s=i),s>=n})!==-1}log(e,n,...i){if(arguments.length===1)return e[Ji]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[Ji]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[Ji]:e,level:e,message:n},this._addDefaultMeta(n),this.write(n),this);let[a]=i;if(typeof a=="object"&&a!==null&&!(n&&n.match&&n.match(pX))){let s=Object.assign({},this.defaultMeta,a,{[Ji]:e,[rI]:i,level:e,message:n});return a.message&&(s.message=`${s.message} ${a.message}`),a.stack&&(s.stack=a.stack),a.cause&&(s.cause=a.cause),this.write(s),this}return this.write(Object.assign({},this.defaultMeta,{[Ji]:e,[rI]:i,level:e,message:n})),this}_transform(e,n,i){if(this.silent)return i();e[Ji]||(e[Ji]=e.level),!this.levels[e[Ji]]&&this.levels[e[Ji]]!==0&&console.error("[winston] Unknown logger level: %s",e[Ji]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,i()}}_final(e){let n=this.transports.slice();aI(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!sI(e)||e.log.length>2?new oX({transport:e}):e;if(!n._writableState||!n._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",n),this._onEvent("warn",n),this.pipe(n),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let n=e;return(!sI(e)||e.log.length>2)&&(n=this.transports.filter(i=>i.transport===e)[0]),n&&this.unpipe(n),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){uX.deprecated("setLevels")}query(e,n){typeof e=="function"&&(n=e,e={}),e=e||{};let i={},a=Object.assign({},e.query||{});function r(o,l){e.query&&typeof o.formatQuery=="function"&&(e.query=o.formatQuery(a)),o.query(e,(u,c)=>{if(u)return l(u);typeof o.formatResults=="function"&&(c=o.formatResults(c,e.format)),l(null,c)})}function s(o,l){r(o,(u,c)=>{l&&(c=u||c,c&&(i[o.name]=c),l()),l=null})}aI(this.transports.filter(o=>!!o.query),s,()=>n(null,i))}stream(e={}){let n=new tX,i=[];return n._streams=i,n.destroy=()=>{let a=i.length;for(;a--;)i[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let r=a.stream(e);r&&(i.push(r),r.on("log",s=>{s.transport=s.transport||[],s.transport.push(a.name),n.emit("log",s)}),r.on("error",s=>{s.transport=s.transport||[],s.transport.push(a.name),n.emit("error",s)}))}),n}startTimer(){return new lX(this)}profile(e,...n){let i=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof n[n.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),n.pop());let r=typeof n[n.length-1]=="object"?n.pop():{};return r.level=r.level||"info",r.durationMs=i-a,r.message=r.message||e,this.write(r)}return this.profilers[e]=i,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` +`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Il(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(Pd.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});oI.exports=Pd});var NA=v((nce,lI)=>{"use strict";var{LEVEL:dX}=sn(),hX=fd(),gX=yd(),mX=ql()("winston:create-logger");function fX(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}lI.exports=function(t={}){t.levels=t.levels||hX.npm.levels;class e extends gX{constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(mX('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let r=this||n;if(a.length===1){let[s]=a,o=s&&s.message&&s||{message:s};return o.level=o[dX]=i,r._addDefaultMeta(o),r.write(o),this||n}return a.length===0?(r.log(i,""),r):r.log(i,...a)},e.prototype[fX(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var cI=v((tce,uI)=>{"use strict";var wX=NA();uI.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=wX(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var dI=v(He=>{"use strict";var pI=HC(),{warn:zl}=RC();He.version=o0().version;He.transports=zR();He.config=fd();He.addColors=pI.levels;He.format=pI.format;He.createLogger=NA();He.Logger=yd();He.ExceptionHandler=zA();He.RejectionHandler=GA();He.Container=cI();He.Transport=ms();He.loggers=new He.Container;var Zi=He.createLogger();Object.keys(He.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>He[t]=(...e)=>Zi[t](...e));Object.defineProperty(He,"level",{get(){return Zi.level},set(t){Zi.level=t}});Object.defineProperty(He,"exceptions",{get(){return Zi.exceptions}});Object.defineProperty(He,"rejections",{get(){return Zi.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(He,t,{get(){return Zi[t]},set(e){Zi[t]=e}})});Object.defineProperty(He,"default",{get(){return{exceptionHandlers:Zi.exceptionHandlers,rejectionHandlers:Zi.rejectionHandlers,transports:Zi.transports}}});zl.deprecated(He,"setLevels");zl.forFunctions(He,"useFormat",["cli"]);zl.forProperties(He,"useFormat",["padLevels","stripColors"]);zl.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);zl.forProperties(He,"deprecated",["emitErrs","levelLength"])});var fI=v((rce,mI)=>{var Dl=require("path"),hI=require("fs"),gI=parseInt("0777",8);mI.exports=bs.mkdirp=bs.mkdirP=bs;function bs(t,e,n,i){typeof e=="function"?(n=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||hI;a===void 0&&(a=gI),i||(i=null);var s=n||function(){};t=Dl.resolve(t),r.mkdir(t,a,function(o){if(!o)return i=i||t,s(null,i);switch(o.code){case"ENOENT":if(Dl.dirname(t)===t)return s(o);bs(Dl.dirname(t),e,function(l,u){l?s(l,u):bs(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,i):s(null,i)});break}})}bs.sync=function t(e,n,i){(!n||typeof n!="object")&&(n={mode:n});var a=n.mode,r=n.fs||hI;a===void 0&&(a=gI),i||(i=null),e=Dl.resolve(e);try{r.mkdirSync(e,a),i=i||e}catch(o){switch(o.code){case"ENOENT":i=t(Dl.dirname(e),n,i),t(e,n,i);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return i}});var UA=v((sce,wI)=>{function vX(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function CX(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function AX(t,e,n){this.name=this.constructor.name,this.message=`Source contains parsing errors. +file: `+t+" line: "+e+` +`+n,Error.captureStackTrace(this,this.constructor)}function bX(t,e,n){this.name=this.constructor.name,this.message=`File contains no section headers. +file: `+t+" line: "+e+` +`+n,Error.captureStackTrace(this,this.constructor)}function yX(t,e,n,i){this.name=this.constructor.name,this.message="Exceeded Maximum Recursion Depth ("+i+") for key "+e+" in section "+t+` +value: `+n,Error.captureStackTrace(this,this.constructor)}wI.exports={DuplicateSectionError:vX,NoSectionError:CX,ParseError:AX,MissingSectionHeaderError:bX,MaximumInterpolationDepthError:yX}});var bI=v((oce,AI)=>{var PX=UA(),vI=new RegExp(/%\(([\w-]+)\)s/),LA=50;function jX(t,e,n){return CI(t,e,n,1)}function CI(t,e,n,i){let a=t.get(e,n,!0);if(i>LA)throw new PX.MaximumInterpolationDepthError(e,n,a,LA);let r=vI.exec(a);for(;r!==null;){let s=r[1],o=CI(t,e,s,i+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=vI.exec(a)}return a}AI.exports={interpolate:jX,MAXIMUM_INTERPOLATION_DEPTH:LA}});var TI=v((uce,xI)=>{var Sd=require("util"),Gl=require("fs"),yI=require("path"),PI=fI(),jd=UA(),SX=bI(),OX=new RegExp(/^\s*\[([^\]]+)]$/),xX=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),TX=new RegExp(/^\s*[;#]/),jI=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),MX=Sd.promisify(Gl.readFile),EX=Sd.promisify(Gl.writeFile),lce=Sd.promisify(Gl.stat),qX=Sd.promisify(PI);function On(){this._sections={}}On.prototype.sections=function(){return Object.keys(this._sections)};On.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new jd.DuplicateSectionError(t);this._sections[t]={}};On.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};On.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new jd.NoSectionError(t)}};On.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};On.prototype.read=function(t){let e=Gl.readFileSync(t).toString("utf8").split(jI);SI.call(this,t,e)};On.prototype.readAsync=async function(t){let e=(await MX(t)).toString("utf8").split(jI);SI.call(this,t,e)};On.prototype.get=function(t,e,n){if(this._sections.hasOwnProperty(t))return n?this._sections[t][e]:SX.interpolate(this,t,e)};On.prototype.getInt=function(t,e,n){if(this._sections.hasOwnProperty(t))return n||(n=10),parseInt(this._sections[t][e],n)};On.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};On.prototype.items=function(t){return this._sections[t]};On.prototype.set=function(t,e,n){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=n)};On.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};On.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};On.prototype.write=function(t,e=!1){if(e){let n=yI.dirname(t);PI.sync(n)}Gl.writeFileSync(t,OI.call(this))};On.prototype.writeAsync=async function(t,e=!1){if(e){let n=yI.dirname(t);await qX(n)}await EX(t,OI.call(this))};function SI(t,e){let n=null;e.forEach((i,a)=>{if(!i||i.match(TX))return;let r=OX.exec(i);if(r){let s=r[1];n={},this._sections[s]=n}else if(n)if(r=xX.exec(i),r){let s=r[1];n[s]=r[2]}else throw new jd.ParseError(t,a,i);else throw new jd.MissingSectionHeaderError(t,a,i)})}function OI(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] +`;let n=this._sections[e],i;for(i in n){if(!n.hasOwnProperty(i))continue;let a=n[i];t+=i+"="+a+` +`}t+=` +`}return t}xI.exports=On});var kI=v((cce,qI)=>{"use strict";var kX=Kk(),_X=N_();function EI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var WA=EI(kX),MI=EI(_X),HX={us_east_1:"mypurecloud.com",eu_west_1:"mypurecloud.ie",ap_southeast_2:"mypurecloud.com.au",ap_northeast_1:"mypurecloud.jp",eu_central_1:"mypurecloud.de",us_west_2:"usw2.pure.cloud",ca_central_1:"cac1.pure.cloud",ap_northeast_2:"apne2.pure.cloud",eu_west_2:"euw2.pure.cloud",ap_south_1:"aps1.pure.cloud",us_east_2:"use2.us-gov-pure.cloud",sa_east_1:"sae1.pure.cloud",me_central_1:"mec1.pure.cloud",ap_northeast_3:"apne3.pure.cloud",eu_central_2:"euc2.pure.cloud",mx_central_1:"mxc1.pure.cloud",ap_southeast_1:"apse1.pure.cloud"},$l=class{constructor(){this.timeout=16e3}setTimeout(e){if(e==null||typeof e!="number")throw new Error("The 'timeout' property must be a number");this.timeout=e}setHttpsAgent(e){if(e&&typeof e!="object")throw new Error("The 'httpsAgent' property must be an object");this.httpsAgent=e}request(e){throw new Error("method must be implemented")}enableHooks(){throw new Error("method must be implemented")}setPreHook(e){if(typeof e!="function"||e.length!==1)throw new Error("preHook must be a function that accepts (config)");this.preHook=e,this.enableHooks()}setPostHook(e){if(typeof e!="function"||e.length!==1)throw new Error("postHook must be a function that accepts (response)");this.postHook=e,this.enableHooks()}},Qt=class{constructor(e,n,i,a,r,s){this.setUrl(e),this.setMethod(n),i&&this.setHeaders(i),a&&this.setParams(a),r&&this.setData(r),s!=null?this.setTimeout(s):this.timeout=16e3}setUrl(e){if(!e)throw new Error("The 'url' property is required");this.url=e}setMethod(e){if(!e||!["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD"].includes(e.toUpperCase()))throw new Error("The 'method' property is invalid or missing");this.method=e.toUpperCase()}setData(e){if(e==null)throw new Error("The 'data' property is required");this.data=e}setParams(e){if(e&&typeof e!="object")throw new Error("The 'params' property must be an object");this.params=e}setHeaders(e){if(e&&typeof e!="object")throw new Error("The 'headers' property must be an object");this.headers=e}setTimeout(e){if(e==null||typeof e!="number")throw new Error("The 'timeout' property must be a number");this.timeout=e}},Od=class extends $l{constructor(e,n){super(),e!=null?this.setTimeout(e):this.timeout=16e3,n!=null?this.setHttpsAgent(n):this.httpsAgent,this._axiosInstance=WA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&WA.default.interceptors.request.eject(this.requestInterceptorId),this.requestInterceptorId=this._axiosInstance.interceptors.request.use(async e=>(e=await this.preHook(e),e),e=>(console.error("Request Pre-Hook Error:",e.message),Promise.reject(e)))),this.postHook&&typeof this.postHook=="function"&&(this.responseInterceptorId!==void 0&&WA.default.interceptors.response.eject(this.responseInterceptorId),this.responseInterceptorId=this._axiosInstance.interceptors.response.use(async e=>(e=await this.postHook(e),e),async e=>(console.error("Post-Hook: Response Error",e.message),Promise.reject(e))))}request(e){if(!(e instanceof Qt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let n=this.toAxiosConfig(e);return this._axiosInstance.request(n)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var n={url:e.url,method:e.method};return e.params&&(n.params=e.params),e.headers&&(n.headers=e.headers),e.data&&(n.data=e.data),this.timeout!=null&&this.timeout!=null&&(n.timeout=this.timeout),this.httpsAgent&&(n.httpsAgent=this.httpsAgent),n}},RX={levels:{none:0,error:1,debug:2,trace:3}},ys={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},nr={formats:{JSON:"json",TEXT:"text"}},BA=class{get logLevelEnum(){return ys}get logFormatEnum(){return nr}constructor(){this.log_level=ys.level.LNone,this.log_format=nr.formats.TEXT,this.log_to_console=!0,this.log_file_path,this.log_response_body=!1,this.log_request_body=!1,this.setLogger()}setLogger(){if(typeof window>"u"){let e=dI();this.logger=e.createLogger({levels:RX.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===nr.formats.JSON?this.logger.add(new e.transports.File({format:e.format.json(),filename:this.log_file_path})):this.logger.add(new e.transports.File({format:e.format.combine(e.format(n=>(n.level=n.level.toUpperCase(),n))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===nr.formats.JSON?this.logger.add(new e.transports.Console({format:e.format.json()})):this.logger.add(new e.transports.Console({format:e.format.combine(e.format(n=>(n.level=n.level.toUpperCase(),n))(),e.format.simple())})))}}log(e,n,i,a,r,s,o,l){var u=this.formatLog(e,n,i,a,r,s,o,l);if(typeof window<"u"){var c=this.calculateLogLevel(e);c>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(u):console.log(`${e.toUpperCase()}: ${u}`))}else this.logger.transports.length>0&&this.logger.log(e,u)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,n,i,a,r,s,o,l){var u,c=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,d=o?JSON.parse(JSON.stringify(o)):null,h=l?JSON.parse(JSON.stringify(l)):null;return r&&(c.Authorization="[REDACTED]"),this.log_request_body||(d=void 0),this.log_response_body||(h=void 0),this.log_format&&this.log_format===nr.formats.JSON?(u={level:e,date:new Date().toISOString(),method:i,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:n},c&&(u.requestHeaders=c),p&&(u.responseHeaders=p),d&&(u.requestBody=d),h&&(u.responseBody=h)):u=`${new Date().toISOString()} +=== REQUEST === +${this.formatValue("URL",decodeURIComponent(a))}${this.formatValue("Method",i)}${this.formatValue("Headers",this.formatHeaderString(c))}${this.formatValue("Body",d?JSON.stringify(d,null,2):"")} +=== RESPONSE === +${this.formatValue("Status",n)}${this.formatValue("Headers",this.formatHeaderString(p))}${this.formatValue("CorrelationId",p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"")}${this.formatValue("Body",h?JSON.stringify(h,null,2):"")}`,u}formatHeaderString(e){var n="";if(!e)return n;for(let[i,a]of Object.entries(e))n+=` + ${i}: ${a}`;return n}formatValue(e,n){return!n||n===""||n==="{}"?"":`${e}: ${n} +`}getLogLevel(e){switch(e){case"error":return ys.level.LError;case"debug":return ys.level.LDebug;case"trace":return ys.level.LTrace;default:return ys.level.LNone}}getLogFormat(e){switch(e){case"json":return nr.formats.JSON;default:return nr.formats.TEXT}}},FA=class t{get instance(){return t.instance}set instance(e){t.instance=e}constructor(){if(t.instance||(t.instance=this),typeof window<"u")this.configPath="";else{let e=require("os"),n=require("path");this.configPath=n.join(e.homedir(),".genesyscloudjavascript","config")}this.watchedConfigPath,this.refresh_access_token=!0,this.refresh_token_wait_max=10,this._live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new BA,this.setEnvironment(),this.liveLoadConfig()}get live_reload_config(){return this._live_reload_config}set live_reload_config(e){if(typeof window>"u"){let n=require("fs");e!=null&&this.live_reload_config!==e&&(this._live_reload_config=e,this.watchedConfigPath&&(n.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),e===!0&&this.liveLoadConfig());return}this._live_reload_config=!1}liveLoadConfig(){if(typeof window>"u"){if(this.updateConfigFromFile(),this.live_reload_config&&this.live_reload_config===!0&&this.configPath)try{let e=require("fs");this.watchedConfigPath=this.configPath,e.watchFile(this.watchedConfigPath,{persistent:!1},(n,i)=>{this.updateConfigFromFile(),this.live_reload_config||this.watchedConfigPath&&(e.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null)})}catch{this.watchedConfigPath=null}return}this.configPath=""}setConfigPath(e){if(typeof window>"u"){let n=require("fs");e&&e!==this.configPath?(this.configPath=e,this.watchedConfigPath&&(n.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),this.liveLoadConfig()):!e&&this.configPath&&(this.configPath="",this.watchedConfigPath&&(n.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null));return}this.configPath=""}updateConfigFromFile(){if(typeof window>"u"&&this.configPath){let i=TI();try{var e=new i;e.read(this.configPath),this.config=e}catch(a){if(a.name&&a.name==="MissingSectionHeaderError"){var n=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(n)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=this.getConfigBoolean("logging","log_to_console")!==void 0?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=this.getConfigString("logging","log_file_path")!==void 0?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=this.getConfigBoolean("logging","log_response_body")!==void 0?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=this.getConfigBoolean("logging","log_request_body")!==void 0?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=this.getConfigBoolean("reauthentication","refresh_access_token")!==void 0?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=this.getConfigInt("reauthentication","refresh_token_wait_max")!==void 0?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=this.getConfigBoolean("general","live_reload_config")!==void 0?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=this.getConfigString("general","host")!==void 0?this.getConfigString("general","host"):this.host,this.getConfigString("gateway","host")!==void 0){let e={host:this.getConfigString("gateway","host")};this.getConfigString("gateway","protocol")!==void 0&&(e.protocol=this.getConfigString("gateway","protocol")),this.getConfigInt("gateway","port")!==void 0&&(e.port=this.getConfigInt("gateway","port")),this.getConfigString("gateway","path_params_login")!==void 0&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),this.getConfigString("gateway","path_params_api")!==void 0&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),this.getConfigString("gateway","username")!==void 0&&(e.username=this.getConfigString("gateway","username")),this.getConfigString("gateway","password")!==void 0&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){e?this.environment=e:this.environment=this.host?this.host:"mypurecloud.com",this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,n){if(!this.gateway||!this.gateway.host)return n;var i=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(i=i+":"+this.gateway.port.toString()),e==="login"?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?i=i+this.gateway.path_params_login:i=i+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?i=i+this.gateway.path_params_api:i=i+"/"+this.gateway.path_params_api),i}getConfigString(e,n){if(this.config._sections[e])return this.config._sections[e][n]}getConfigBoolean(e,n){if(this.config._sections[e]&&this.config._sections[e][n]!==void 0)return typeof this.config._sections[e][n]=="string"?this.config._sections[e][n]==="true":this.config._sections[e][n]}getConfigInt(e,n){if(this.config._sections[e]&&this.config._sections[e][n])return typeof this.config._sections[e][n]=="string"?parseInt(this.config._sections[e][n]):this.config._sections[e][n]}},k=class t{get instance(){return t.instance}set instance(e){t.instance=e}constructor(){t.instance||(t.instance=this),this.CollectionFormatEnum={CSV:",",SSV:" ",TSV:" ",PIPES:"|",MULTI:"multi"},this.useLegacyParameterFilter=!1;try{localStorage.setItem("purecloud_local_storage_test","purecloud_local_storage_test"),localStorage.removeItem("purecloud_local_storage_test"),this.hasLocalStorage=!0}catch{this.hasLocalStorage=!1}this.authentications={"Guest Chat JWT":{type:"apiKey",in:"header",name:"Authorization"},"PureCloud OAuth":{type:"oauth2"}},this.defaultHeaders={},this.timeout=16e3,this.authData={},this.settingsPrefix="purecloud",this.refreshInProgress=!1,this.httpClient,this.proxyAgent,this.config=new FA,typeof window<"u"&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,n){this.persistSettings=e,this.settingsPrefix=n?n.replace(/\W+/g,"_"):"purecloud"}_saveSettings(e){try{if(this.authData.accessToken=e.accessToken,this.authentications["PureCloud OAuth"].accessToken=e.accessToken,e.state&&(this.authData.state=e.state),this.authData.error=e.error,this.authData.error_description=e.error_description,e.tokenExpiryTime&&(this.authData.tokenExpiryTime=e.tokenExpiryTime,this.authData.tokenExpiryTimeString=e.tokenExpiryTimeString),this.persistSettings!==!0||!this.hasLocalStorage)return;let n=JSON.parse(JSON.stringify(this.authData));delete n.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(n))}catch(n){console.error(n)}}_loadSettings(){if(this.persistSettings!==!0||!this.hasLocalStorage)return;let e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_clearSettings(){try{if(this.authData&&this.authData.accessToken&&(this.authData.accessToken=null),this.authentications["PureCloud OAuth"]&&this.authentications["PureCloud OAuth"].accessToken&&(this.authentications["PureCloud OAuth"].accessToken=null),this.authData&&this.authData.state&&(this.authData.state=null),this.authData&&this.authData.error&&(this.authData.error=null),this.authData&&this.authData.error_description&&(this.authData.error_description=null),this.authData&&this.authData.tokenExpiryTime&&(this.authData.tokenExpiryTime=0),this.authData&&this.authData.tokenExpiryTimeString&&(this.authData.tokenExpiryTimeString=null),this.persistSettings!==!0||!this.hasLocalStorage)return;let e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(e))}catch(e){console.error(e)}}setEnvironment(e){this.config.setEnvironment(e)}setDefaultHeaders(e){if(!e||typeof e!="object")throw new Error("default headers must be a map");this.defaultHeaders=e}getDefaultHeaders(){return this.defaultHeaders}setGenesysAppHeader(e){if(!e||typeof e!="string")throw new Error("headerValue must be a non empty string");this.defaultHeaders?this.defaultHeaders["Genesys-App"]=e:this.defaultHeaders={"Genesys-App":e}}getGenesysAppHeader(){return this.defaultHeaders&&this.defaultHeaders["Genesys-App"]?this.defaultHeaders["Genesys-App"]:null}setHttpClient(e){if(!(e instanceof $l))throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");this.httpClient=e}getHttpClient(){return this.httpClient?this.httpClient:(this.httpClient=new Od(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,n,i){if(typeof window>"u"){let a={};e&&(a.cert=require("fs").readFileSync(e)),n&&(a.key=require("fs").readFileSync(n)),i&&(a.ca=require("fs").readFileSync(i)),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setPreHook(e){this.getHttpClient().setPreHook(e)}setPostHook(e){this.getHttpClient().setPostHook(e)}setMTLSContents(e,n,i){if(typeof window>"u"){let a={};e&&(a.cert=e),n&&(a.key=n),i&&(a.ca=i),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,n,i){let a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=n,i||(i={}),new Promise((r,s)=>{if(i.org&&!i.provider?s(new Error("opts.provider must be set if opts.org is set")):i.provider&&!i.org&&s(new Error("opts.org must be set if opts.provider is set")),a&&a.error)return a.accessToken=void 0,this._saveSettings(a),s(new Error(`[${a.error}] ${a.error_description}`));this._testTokenAccess().then(()=>{!this.authData.state&&i.state&&(this.authData.state=i.state),r(this.authData)}).catch(o=>{var l={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};i.state&&(l.state=encodeURIComponent(i.state)),i.org&&(l.org=encodeURIComponent(i.org)),i.provider&&(l.provider=encodeURIComponent(i.provider)),i.prompt&&i.prompt=="login"&&(l.prompt=encodeURIComponent(i.prompt));var u=this._buildAuthUrl("oauth/authorize",l);window.location.replace(u)})})}loginClientCredentialsGrant(e,n){this.clientId=e;var i=Buffer.from(`${e}:${n}`).toString("base64"),a=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((r,s)=>{if(typeof window<"u"){s(new Error("The client credentials grant is not supported in a browser."));return}let o={Authorization:`Basic ${i}`};var l=new Qt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,n,i,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{if(typeof window<"u"){o(new Error("The saml2bearer grant is not supported in a browser."));return}var l=Buffer.from(e+":"+n).toString("base64"),u=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:i,assertion:a});u.proxy=this.proxy;var c={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:i,assertion:a};u.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,u.headers,p.headers,c,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,u.headers,void 0,c,void 0);var d=p.data.access_token;this.setAccessToken(d),this.authData.tokenExpiryTime=new Date().getTime()+p.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),s(this.authData)}).catch(p=>{p.response&&this.config.logger.log("error",p.response.status,"POST",`${r}/oauth/token`,u.headers,p.response.headers,c,p.response.data),o(p)})})}authorizePKCEGrant(e,n,i,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{var l={"Content-Type":"application/x-www-form-urlencoded"},u=MI.default.stringify({grant_type:"authorization_code",code:i,code_verifier:n,client_id:e,redirect_uri:a}),c=new Qt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code:i,code_verifier:n,client_id:e,redirect_uri:a};p.request(c).then(h=>{this.config.logger.log("trace",h.status,"POST",`${r}/oauth/token`,c.headers,h.headers,d,void 0),this.config.logger.log("debug",h.status,"POST",`${r}/oauth/token`,c.headers,void 0,d,void 0);var g=h.data.access_token;let m={accessToken:g};h.data.expires_in!==null&&h.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+h.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(h=>{h.response&&this.config.logger.log("error",h.response.status,"POST",`${r}/oauth/token`,c.headers,h.response.headers,d,h.response.data),o(h)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let n=require("crypto").getRandomValues,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(n(new Uint32Array(e))).map(r=>i[r%i.length]).join("")}catch{throw new Error("Crypto module is missing/not supported.")}else{let n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(a=>n[a%n.length]).join("")}}computePKCECodeChallenge(e){if(e.length<43||e.length>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let n=require("crypto").createHash,i=new TextEncoder().encode(e);return new Promise((a,r)=>{let s=n("sha256").update(i).digest(),o=Buffer.from(s).toString("base64url");a(o)})}catch{throw new Error("Crypto module is missing/not supported.")}else{let n=new TextEncoder().encode(e);return new Promise((i,a)=>{window.crypto.subtle.digest("SHA-256",n).then(r=>{let o=btoa(String.fromCharCode(...new Uint8Array(r))).replaceAll("+","-").replaceAll("/","_");o=o.split("=")[0],i(o)}).catch(r=>a(new Error(`Code Challenge Error ${r}`)))})}}loginPKCEGrant(e,n,i,a){if(!this.hasLocalStorage&&!a)throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");let r=this._setValuesFromUrlQuery();return this.clientId=e,this.redirectUri=n,this.codeVerifier=a,i||(i={}),new Promise((s,o)=>{if(i.org&&!i.provider)return o(new Error("opts.provider must be set if opts.org is set"));if(i.provider&&!i.org)return o(new Error("opts.org must be set if opts.provider is set"));if(r&&r.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),o(new Error(`[${r.error}] ${r.error_description}`));r&&r.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,r.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&r.state&&(this.authData.state=r.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&i.state&&(this.authData.state=i.state),s(this.authData)}).catch(l=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(u=>{var c={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(u),response_type:"code",code_challenge_method:"S256"};i.state&&(c.state=encodeURIComponent(i.state)),i.org&&(c.org=encodeURIComponent(i.org)),i.provider&&(c.provider=encodeURIComponent(i.provider)),i.prompt&&i.prompt=="login"&&(c.prompt=encodeURIComponent(i.prompt));var p=this._buildAuthUrl("oauth/authorize",c);window.location.replace(p)}).catch(u=>o(new Error(`[${u.name}]`)))})})}_setValuesFromUrlQuery(){if(!(typeof window<"u"&&window.location.search))return;let e={},n=new URLSearchParams(window.location.search),i=n.get("code"),a=n.get("error"),r=n.get("error_description"),s=n.get("state");if(a)return e.error=a,r&&(e.error_description=r),e;i&&(e.code=i,s&&(e.state=s));var o,l,u=window.location;return"replaceState"in history?history.replaceState("",document.title,u.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,u.pathname),document.body.scrollTop=o,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,n,i,a){return this.clientId=e,this.clientSecret=n,new Promise((r,s)=>{if(typeof window<"u"){s(new Error("The Code Authorization grant is not supported in a browser."));return}var o=Buffer.from(e+":"+n).toString("base64"),l=this._formAuthRequest(o,{grant_type:"authorization_code",code:i,redirect_uri:a});l.proxy=this.proxy;var u={grant_type:"authorization_code",code:i,redirect_uri:a};this._handleCodeAuthorizationResponse(l,u,r,s)})}refreshCodeAuthorizationGrant(e,n,i){return new Promise((a,r)=>{if(typeof window<"u"){r(new Error("The Code Authorization grant is not supported in a browser."));return}var s=Buffer.from(e+":"+n).toString("base64"),o=this._formAuthRequest(s,{grant_type:"refresh_token",refresh_token:i});o.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:i};this._handleCodeAuthorizationResponse(o,l,a,r)})}_handleCodeAuthorizationResponse(e,n,i,a){var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);e.then(s=>{this.config.logger.log("trace",s.status,"POST",`${r}/oauth/token`,e.headers,s.headers,n,void 0),this.config.logger.log("debug",s.status,"POST",`${r}/oauth/token`,e.headers,void 0,n,void 0);var o=s.data.access_token,l=s.data.refresh_token;this.setAccessToken(o),this.authData.refreshToken=l,this.authData.tokenExpiryTime=new Date().getTime()+s.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),i(this.authData)}).catch(s=>{s.response&&this.config.logger.log("error",s.response.status,"POST",`${r}/oauth/token`,e.headers,s.response.headers,n,s.response.data),a(s)})}_formAuthRequest(e,n){var i=this.config.getConfUrl("login",`https://login.${this.config.environment}`),a={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},r=new Qt(`${i}/oauth/token`,"POST",a,null,MI.default.stringify(n),this.timeout);return this.getHttpClient().request(r)}_handleExpiredAccessToken(){return new Promise((e,n)=>{if(typeof window<"u"){n(new Error("This method is not supported in a browser."));return}this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?n(new Error(`Token refresh took longer than ${this.config.refresh_token_wait_max} seconds`)):e()}):(this.refreshInProgress=!0,this.refreshCodeAuthorizationGrant(this.clientId,this.clientSecret,this.authData.refreshToken).then(()=>{this.refreshInProgress=!1,e()}).catch(i=>{this.refreshInProgress=!1,n(i)}))})}_sleep(e){return new Promise(n=>setTimeout(n,e))}_testTokenAccess(){return new Promise((e,n)=>{if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken){n(new Error("Token is not set"));return}this.callApi("/api/v2/tokens/me","GET",null,null,null,null,null,["PureCloud OAuth"],["application/json"],["application/json"]).then(()=>{e()}).catch(i=>{this._saveSettings({accessToken:void 0}),n(i)})})}_setValuesFromUrlHash(){if(!(typeof window<"u"&&window.location.hash))return;let e=new RegExp("^#*(.+?)=(.+?)$","i"),n={};if(window.location.hash.split("&").forEach(s=>{let o=e.exec(s);o&&(n[o[1]]=decodeURIComponent(decodeURIComponent(o[2].replace(/\+/g,"%20"))))}),n.error)return n;if(n.access_token){let s={};n.state&&(s.state=n.state),n.expires_in&&(s.tokenExpiryTime=new Date().getTime()+parseInt(n.expires_in.replace(/\+/g,"%20"))*1e3,s.tokenExpiryTimeString=new Date(s.tokenExpiryTime).toUTCString()),s.accessToken=n.access_token.replace(/\+/g,"%20");var i,a,r=window.location;"replaceState"in history?history.replaceState("",document.title,r.pathname+r.search):(i=document.body.scrollTop,a=document.body.scrollLeft,r.hash="",document.body.scrollTop=i,document.body.scrollLeft=a),this._saveSettings(s)}}setAccessToken(e){this._saveSettings({accessToken:e})}clearAccessToken(){this._clearSettings()}setStorageKey(e){this.storageKey=e,this.setAccessToken(this.authentications["PureCloud OAuth"].accessToken)}logout(e){this.hasLocalStorage&&this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0});var n={client_id:encodeURIComponent(this.clientId)};e&&(n.redirect_uri=encodeURI(e));var i=this._buildAuthUrl("logout",n);window.location.replace(i)}_buildAuthUrl(e,n){n||(n={});var i=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(n).reduce((a,r)=>n[r]?`${a}&${r}=${n[r]}`:a,`${i}/${e}?`)}setUseLegacyParameterFilter(e){this.useLegacyParameterFilter=e}getUseLegacyParameterFilter(){return this.useLegacyParameterFilter}paramToString(e){if(this.useLegacyParameterFilter!==!0&&e!=null){if(typeof e=="boolean")return e.toString().toLowerCase();if(e instanceof Boolean)return e.toString().toLowerCase();if(typeof e=="number")return e.toString()}return e?e instanceof Date?e.toJSON():e instanceof Boolean?e.toString().toLowerCase():e.toString():""}serialize(e){var n={};for(var i in e)e.hasOwnProperty(i)&&e[i]!==void 0&&(n[encodeURIComponent(i)]=Array.isArray(e[i])?e[i].join(","):this.paramToString(e[i]));return n}addHeaders(e,...n){return e?e=Object.assign(e,...n):e=Object.assign(...n),e}buildUrl(e,n){e.match(/^\//)||(e=`/${e}`);var i=this.config.getConfUrl("api",this.config.basePath)+e;return i=i.replace(/\{([\w-]+)\}/g,(a,r)=>{var s;return n.hasOwnProperty(r)?s=this.paramToString(n[r]):s=a,encodeURIComponent(s)}),i}isJsonMime(e){return!!(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var n=0;n"u"&&typeof require=="function"&&require("fs")&&e instanceof require("fs").ReadStream||typeof Buffer=="function"&&e instanceof Buffer||typeof Blob=="function"&&e instanceof Blob||typeof File=="function"&&e instanceof File)}normalizeParams(e){var n={};for(var i in e)if(e.hasOwnProperty(i)&&e[i]!==void 0){var a=e[i];this.isFileParam(a)||Array.isArray(a)?n[i]=a:n[i]=this.paramToString(a)}return n}buildCollectionParam(e,n){if(e)switch(Array.isArray(e)||(e=[e]),n){case"csv":return e.map(i=>this.paramToString(i)).join(",");case"ssv":return e.map(i=>this.paramToString(i)).join(" ");case"tsv":return e.map(i=>this.paramToString(i)).join(" ");case"pipes":return e.map(i=>this.paramToString(i)).join("|");case"multi":return e.map(i=>this.paramToString(i));default:throw new Error(`Unknown collection format: ${n}`)}}applyAuthToRequest(e,n){n.forEach(i=>{var a=this.authentications[i];switch(a.type){case"basic":(a.username||a.password)&&(e.auth={username:a.username||"",password:a.password||""});break;case"apiKey":if(a.apiKey){var r={};a.apiKeyPrefix?r[a.name]=`${a.apiKeyPrefix} ${a.apiKey}`:r[a.name]=a.apiKey,a.in==="header"?e.headers=this.addHeaders(e.headers,r):(e.setParams(this.serialize(r)),e.headers=this.addHeaders(e.headers,{}))}else e.headers=this.addHeaders(e.headers,{});break;case"oauth2":a.accessToken?e.headers=this.addHeaders(e.headers,{Authorization:`Bearer ${a.accessToken}`}):e.headers=this.addHeaders(e.headers,{});break;default:throw new Error(`Unknown authentication type: ${a.type}`)}})}setProxyAgent(e){this.proxyAgent=e,this.getHttpClient().setHttpsAgent(this.proxyAgent)}callApi(e,n,i,a,r,s,o,l,u,c,p){return new Promise((d,h)=>{g(this);function g(m){var f=m.buildUrl(e,i),w=new Qt(f,n,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(w,l);let b=m.defaultHeaders,A=m.normalizeParams(r);if(w.headers=m.addHeaders(w.headers,b,A),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[q,Q]of Object.entries(p)){if(typeof q!="string"||typeof Q!="string")throw new Error(`Invalid header: "${q}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(q))throw new Error(`Invalid header name: "${q}" - must be a valid HTTP token`);for(let Z=0;Z=33&&ne<=126||ne===32||ne===9||ne>=128&&ne<=255))throw new Error(`Invalid header value for "${q}": contains invalid characters`)}w.headers[q]=Q}}var y=m.jsonPreferredMime(u);if(y?w.headers["Content-Type"]=y:w.headers["Content-Type"]||(w.headers["Content-Type"]="application/json"),y==="application/x-www-form-urlencoded")w.setData(m.normalizeParams(s));else if(y=="multipart/form-data"){var O=m.normalizeParams(s);for(var $ in O)if(O.hasOwnProperty($)){var N=new FormData;N.set($,O[$]),w.setData(N)}}else o&&w.setData(o);var X=m.jsonPreferredMime(c);X&&(w.headers.Accept=X),m.getHttpClient().request(w).then(q=>{var Q=m.returnExtended===!0?{status:q.status,statusText:q.statusText,headers:q.headers,body:q.data,text:q.text,error:null}:q.data?q.data:q.text;m.config.logger.log("trace",q.status,n,f,w.headers,q.headers,o,void 0),m.config.logger.log("debug",q.status,n,f,w.headers,void 0,o,void 0),d(Q)}).catch(q=>{var Q=q;q.response&&q.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{g(m)}).catch(Z=>{h(Z)}):q.response&&(m.config.logger.log("error",q.response.status,n,f,w.headers,q.response.headers,o,q.response.data),Q=m.returnExtended===!0?{status:q.response.status,statusText:q.response.statusText,headers:q.response.headers,body:q.response.data,text:q.response.text,error:q}:q.response.data?q.response.data:q.response.text),h(Q)})}})}},VA=class{constructor(e){this.apiClient=e||k.instance}deleteConversationsSummariesSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling deleteConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","DELETE",{summarySettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteGuideJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling deleteGuideJobs';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs","DELETE",{guideId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsSummariesSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling getConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","GET",{summarySettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsSummariesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/summaries/settings","GET",{},{language:e.language,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuide(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","GET",{guideId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getGuideJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs/{jobId}","GET",{guideId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGuideVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","GET",{guideId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGuideVersionJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersionJob';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getGuideVersionJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getGuideVersionJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}/jobs/{jobId}","GET",{guideId:e,versionId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGuides(e){return e=e||{},this.apiClient.callApi("/api/v2/guides","GET",{},{name:e.name,nameContains:e.nameContains,status:e.status,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuidesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getGuidesJob';return this.apiClient.callApi("/api/v2/guides/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGuide(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuide';if(n==null)throw'Missing the required parameter "body" when calling patchGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","PATCH",{guideId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchGuideVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuideVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling patchGuideVersion';if(i==null)throw'Missing the required parameter "body" when calling patchGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","PATCH",{guideId:e,versionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSummariesPreview(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsSummariesPreview';return this.apiClient.callApi("/api/v2/conversations/summaries/preview","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsSummariesSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsSummariesSettings';return this.apiClient.callApi("/api/v2/conversations/summaries/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGuideSessionTurns(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideSessionTurns';if(n==null||n==="")throw'Missing the required parameter "guideSessionId" when calling postGuideSessionTurns';if(i==null)throw'Missing the required parameter "body" when calling postGuideSessionTurns';return this.apiClient.callApi("/api/v2/guides/{guideId}/sessions/{guideSessionId}/turns","POST",{guideId:e,guideSessionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersionJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';if(i==null)throw'Missing the required parameter "body" when calling postGuideVersionJobs';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}/jobs","POST",{guideId:e,versionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersions';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions","POST",{guideId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGuides(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGuides';return this.apiClient.callApi("/api/v2/guides","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGuidesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGuidesJobs';return this.apiClient.callApi("/api/v2/guides/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGuidesUploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGuidesUploads';return this.apiClient.callApi("/api/v2/guides/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsSummariesSetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';if(n==null)throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","PUT",{summarySettingId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},JA=class{constructor(e){this.apiClient=e||k.instance}deleteAssistant(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","DELETE",{assistantId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantQueue(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAssistantQueues(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","DELETE",{assistantId:e},{queueIds:n.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantsAgentchecklist(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling deleteAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","DELETE",{agentChecklistId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistant(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:n.expand,languageVariation:n.languageVariation,fallbackToPrimaryAssistant:n.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantQueue(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:n},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantQueueUsersJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueueUsersJob';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling getAssistantQueueUsersJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getAssistantQueueUsersJob';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}/users/jobs/{jobId}","GET",{assistantId:e,queueId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAssistantQueues(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","GET",{assistantId:e},{before:n.before,after:n.after,pageSize:n.pageSize,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistants(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,name:e.name,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklist(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling getAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","GET",{agentChecklistId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantsAgentchecklists(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,namePrefix:e.namePrefix,language:e.language,sortOrder:e.sortOrder,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklistsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAssistant(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistant';if(n==null)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchAssistantQueues(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(n==null)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAssistantQueueUsersBulkAdd(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';if(i==null)throw'Missing the required parameter "body" when calling postAssistantQueueUsersBulkAdd';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}/users/bulk/add","POST",{assistantId:e,queueId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersBulkRemove(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';if(i==null)throw'Missing the required parameter "body" when calling postAssistantQueueUsersBulkRemove';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}/users/bulk/remove","POST",{assistantId:e,queueId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersJobs';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersJobs';if(i==null)throw'Missing the required parameter "body" when calling postAssistantQueueUsersJobs';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}/users/jobs","POST",{assistantId:e,queueId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersQuery(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';if(i==null)throw'Missing the required parameter "body" when calling postAssistantQueueUsersQuery';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}/users/query","POST",{assistantId:e,queueId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistants(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAssistants';return this.apiClient.callApi("/api/v2/assistants","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantsAgentchecklists(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAssistantsAgentchecklists';return this.apiClient.callApi("/api/v2/assistants/agentchecklists","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAssistantQueue(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(n==null||n==="")throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(i==null)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAssistantsAgentchecklist(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling putAssistantsAgentchecklist';if(n==null)throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","PUT",{agentChecklistId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ZA=class{constructor(e){this.apiClient=e||k.instance}getAssistantCopilot(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","GET",{assistantId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantsCopilotFeaturesupport(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/copilot/featuresupport","GET",{},{language:e.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putAssistantCopilot(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(n==null)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},KA=class{constructor(e){this.apiClient=e||k.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","DELETE",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(n==null)throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PATCH",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(n==null)throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PUT",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},QA=class{constructor(e){this.apiClient=e||k.instance}deleteAlertingAlert(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling deleteAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","DELETE",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAlertingAlertsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/alerts/all","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteAlertingRule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling deleteAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAlertingAlert(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling getAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","GET",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAlertingRule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","GET",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAlertingAlert(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAlertingAlertsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/alerts/all","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAlertingAlertsBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchAlertingAlertsBulk';return this.apiClient.callApi("/api/v2/alerting/alerts/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAlertingRulesBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchAlertingRulesBulk';return this.apiClient.callApi("/api/v2/alerting/rules/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAlertingAlertsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/alerts/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postAlertingRules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAlertingRules';return this.apiClient.callApi("/api/v2/alerting/rules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAlertingRulesBulkRemove(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAlertingRulesBulkRemove';return this.apiClient.callApi("/api/v2/alerting/rules/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAlertingRulesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/rules/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putAlertingAlert(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAlertingRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(n==null)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},YA=class{constructor(e){this.apiClient=e||k.instance}deleteAnalyticsActionsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsActionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsAgentcopilotsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsAgentcopilotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsAgentutilizationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsAgentutilizationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/agentutilizations/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsBotsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsBotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsCasemanagementAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsCasemanagementAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/casemanagement/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsConversationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsCopilotsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsCopilotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/copilots/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsEvaluationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsFlowexecutionsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowexecutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsFlowsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsJourneysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsKnowledgeAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsKnowledgeAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsResolutionsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsResolutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsSummariesAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsSummariesAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/summaries/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsTaskmanagementAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsTaskmanagementAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsTranscriptsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsTranscriptsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsUsersAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsUsersDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsActionsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsActionsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsAgentStatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getAnalyticsAgentStatus';return this.apiClient.callApi("/api/v2/analytics/agents/{userId}/status","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsAgentcopilotsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsAgentcopilotsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsAgentutilizationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsAgentutilizationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/agentutilizations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsAgentutilizationsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsAgentutilizationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/agentutilizations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsBotflowDivisionsReportingturns(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowDivisionsReportingturns';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/divisions/reportingturns","GET",{botFlowId:e},{after:n.after,pageSize:n.pageSize,interval:n.interval,actionId:n.actionId,sessionId:n.sessionId,language:n.language,askActionResults:n.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsBotflowReportingturns(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowReportingturns';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/reportingturns","GET",{botFlowId:e},{after:n.after,pageSize:n.pageSize,interval:n.interval,actionId:n.actionId,sessionId:n.sessionId,language:n.language,askActionResults:n.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsBotflowSessions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowSessions';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/sessions","GET",{botFlowId:e},{after:n.after,pageSize:n.pageSize,interval:n.interval,botResultCategories:n.botResultCategories,endLanguage:n.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsBotsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsBotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsBotsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsBotsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsCasemanagementAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsCasemanagementAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/casemanagement/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsCasemanagementAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsCasemanagementAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/casemanagement/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationDetails(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getAnalyticsConversationDetails';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsConversationsDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsDetailsJobsAvailability(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsCopilotsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsCopilotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/copilots/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsCopilotsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsCopilotsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/copilots/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsDataextractionDownload(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getAnalyticsDataextractionDownload';return this.apiClient.callApi("/api/v2/analytics/dataextraction/downloads/{downloadId}","GET",{downloadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsDataextractionDownloadsMetadata(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/dataextraction/downloads/metadata","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,dataSchema:e.dataSchema,dateStart:e.dateStart,dateEnd:e.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsDataretentionSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/dataretention/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsFlowexecutionsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsFlowexecutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsFlowexecutionsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsFlowexecutionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsFlowsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsJourneysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsKnowledgeAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsKnowledgeAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingDashboardsUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getAnalyticsReportingDashboardsUser';return this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingDashboardsUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users","GET",{},{sortBy:e.sortBy,pageNumber:e.pageNumber,pageSize:e.pageSize,id:this.apiClient.buildCollectionParam(e.id,"multi"),state:e.state,deletedOnly:e.deletedOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsReportingExports(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/exports","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsReportingExportsMetadata(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/exports/metadata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsReportingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsReportingSettingsDashboardsQuery(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(n==null)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:i.name,dashboardType:e,dashboardState:i.dashboardState,dashboardAccessFilter:n,sortBy:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsReportingSettingsUserDashboards(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/users/{userId}/dashboards","GET",{userId:e},{sortBy:n.sortBy,pageNumber:n.pageNumber,pageSize:n.pageSize,publicOnly:n.publicOnly,favoriteOnly:n.favoriteOnly,deletedOnly:n.deletedOnly,name:n.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsResolutionsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsResolutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsResolutionsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsResolutionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsSummariesAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsSummariesAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/summaries/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsSummariesAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsSummariesAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/summaries/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsSurveysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsTaskmanagementAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsTaskmanagementAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsTaskmanagementAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsTaskmanagementAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsTranscriptsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsTranscriptsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsTranscriptsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsTranscriptsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersDetailsJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersDetailsJobsAvailability(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/users/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAnalyticsReportingSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';return this.apiClient.callApi("/api/v2/analytics/reporting/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsActionsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsActionsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsAgentcopilotsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsAgentcopilotsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsAgentsStatusCounts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsAgentsStatusCounts';return this.apiClient.callApi("/api/v2/analytics/agents/status/counts","POST",{},{groupBy:this.apiClient.buildCollectionParam(n.groupBy,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsAgentsStatusQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsAgentsStatusQuery';return this.apiClient.callApi("/api/v2/analytics/agents/status/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsAgentutilizationsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsAgentutilizationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/agentutilizations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsAgentutilizationsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsAgentutilizationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/agentutilizations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsBotsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsBotsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsBotsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsBotsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsCasemanagementAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsCasemanagementAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/casemanagement/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsCasemanagementAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsCasemanagementAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/casemanagement/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationDetailsProperties(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(n==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsDetailsJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsDetailsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsCopilotsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsCopilotsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/copilots/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsCopilotsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsCopilotsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/copilots/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsDataextractionDownloadsBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsDataextractionDownloadsBulk';return this.apiClient.callApi("/api/v2/analytics/dataextraction/downloads/bulk","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowexecutionsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowexecutionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowexecutionsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowexecutionsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsObservationsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/flows/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsKnowledgeAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsKnowledgeAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsKnowledgeAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsKnowledgeAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsQueuesObservationsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/queues/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsRatelimitsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/ratelimits/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsReportingDashboardsUsersBulkRemove(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsReportingDashboardsUsersBulkRemove';return this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsReportingExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsReportingExports';return this.apiClient.callApi("/api/v2/analytics/reporting/exports","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsReportingSettingsDashboardsBulkRemove(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsBulkRemove';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsReportingSettingsDashboardsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsResolutionsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsResolutionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsResolutionsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsResolutionsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsRoutingActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsSummariesAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsSummariesAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/summaries/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsSummariesAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsSummariesAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/summaries/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTaskmanagementAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTaskmanagementAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTaskmanagementMetricsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementMetricsQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/metrics/query","POST",{},{after:n.after,pageSize:n.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTeamsActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTranscriptsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTranscriptsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTranscriptsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTranscriptsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersDetailsJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersDetailsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/users/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersObservationsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/users/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAnalyticsDataretentionSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';return this.apiClient.callApi("/api/v2/analytics/dataretention/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},XA=class{constructor(e){this.apiClient=e||k.instance}deleteArchitectEmergencygroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling deleteArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","DELETE",{emergencyGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammar(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","DELETE",{grammarId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectGrammarLanguageFilesDtmf(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesDtmf';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf","DELETE",{grammarId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectGrammarLanguageFilesVoice(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesVoice';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice","DELETE",{grammarId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectIvr(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling deleteArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","DELETE",{ivrId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPrompt(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","DELETE",{promptId:e},{allResources:n.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPromptResource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPromptResourceAudio(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResourceAudio';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio","DELETE",{promptId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPrompts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteArchitectPrompts';return this.apiClient.callApi("/api/v2/architect/prompts","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectSchedule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling deleteArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","DELETE",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectSchedulegroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling deleteArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","DELETE",{scheduleGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectSystempromptResource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlow(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling deleteFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","DELETE",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlowInstancesSettingsLoglevels(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling deleteFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","DELETE",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlows(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteFlows';return this.apiClient.callApi("/api/v2/flows","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlowsDatatable(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","DELETE",{datatableId:e},{force:n.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlowsDatatableRow(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(n==null||n==="")throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlowsInstancesSettingsLoglevelsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteFlowsMilestone(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling deleteFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","DELETE",{milestoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectDependencytracking(e,n){if(n=n||{},e==null)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:n.pageNumber,pageSize:n.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(n.objectType,"multi"),consumedResources:n.consumedResources,consumingResources:n.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(n.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(n.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectDependencytrackingBuild(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/build","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectDependencytrackingConsumedresources(e,n,i,a){if(a=a||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(n==null)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(i==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:n,objectType:i,resourceType:this.apiClient.buildCollectionParam(a.resourceType,"multi"),pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getArchitectDependencytrackingConsumingresources(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(n==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:n,resourceType:this.apiClient.buildCollectionParam(i.resourceType,"multi"),version:i.version,pageNumber:i.pageNumber,pageSize:i.pageSize,flowFilter:i.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectDependencytrackingDeletedresourceconsumers(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/deletedresourceconsumers","GET",{},{name:e.name,objectType:this.apiClient.buildCollectionParam(e.objectType,"multi"),flowFilter:e.flowFilter,consumedResources:e.consumedResources,consumedResourceType:this.apiClient.buildCollectionParam(e.consumedResourceType,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectDependencytrackingObject(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:n.version,objectType:n.objectType,consumedResources:n.consumedResources,consumingResources:n.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(n.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(n.consumingResourceType,"multi"),consumedResourceRequest:n.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectDependencytrackingType(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getArchitectDependencytrackingType';return this.apiClient.callApi("/api/v2/architect/dependencytracking/types/{typeId}","GET",{typeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectDependencytrackingTypes(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/types","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectDependencytrackingUpdatedresourceconsumers(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/updatedresourceconsumers","GET",{},{name:e.name,objectType:this.apiClient.buildCollectionParam(e.objectType,"multi"),consumedResources:e.consumedResources,consumedResourceType:this.apiClient.buildCollectionParam(e.consumedResourceType,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectEmergencygroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling getArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","GET",{emergencyGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectEmergencygroups(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/emergencygroups","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectEmergencygroupsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/emergencygroups/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectGrammar(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","GET",{grammarId:e},{includeFileUrls:n.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectGrammarLanguage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectGrammars(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/grammars","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,includeFileUrls:e.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectIvr(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling getArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","GET",{ivrId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectIvrIdentityresolution(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling getArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","GET",{ivrId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectIvrs(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/ivrs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,dnis:e.dnis,scheduleGroup:e.scheduleGroup,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectIvrsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/ivrs/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectPrompt(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","GET",{promptId:e},{includeMediaUris:n.includeMediaUris,includeResources:n.includeResources,language:this.apiClient.buildCollectionParam(n.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptHistoryHistoryId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(n==null||n==="")throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,sortBy:i.sortBy,action:this.apiClient.buildCollectionParam(i.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptResource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptResources(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","GET",{promptId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling getArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","GET",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSchedulegroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling getArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","GET",{scheduleGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSchedulegroups(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedulegroups","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,scheduleIds:e.scheduleIds,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedulegroupsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedulegroups/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedulesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedules/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSystemprompt(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystemprompt';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}","GET",{promptId:e},{includeMediaUris:n.includeMediaUris,includeResources:n.includeResources,language:this.apiClient.buildCollectionParam(n.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptHistoryHistoryId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(n==null||n==="")throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,sortBy:i.sortBy,action:this.apiClient.buildCollectionParam(i.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptResource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptResources(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","GET",{promptId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystemprompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/systemprompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlow(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowHistoryHistoryId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(n==null||n==="")throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,sortBy:i.sortBy,action:this.apiClient.buildCollectionParam(i.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowInstancesSettingsLoglevels(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","GET",{flowId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowLatestconfiguration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowLatestconfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/latestconfiguration","GET",{flowId:e},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:n},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersionConfiguration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:n},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersionHealth(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:n},{language:i.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersionIntentHealth(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getFlowVersionIntentHealth';if(a==null)throw'Missing the required parameter "language" when calling getFlowVersionIntentHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/health","GET",{flowId:e,versionId:n,intentId:i},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getFlowVersionIntentUtteranceHealth(e,n,i,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getFlowVersionIntentUtteranceHealth';if(a==null||a==="")throw'Missing the required parameter "utteranceId" when calling getFlowVersionIntentUtteranceHealth';if(r==null)throw'Missing the required parameter "language" when calling getFlowVersionIntentUtteranceHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/utterances/{utteranceId}/health","GET",{flowId:e,versionId:n,intentId:i,utteranceId:a},{language:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getFlowVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","GET",{flowId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlows(e){return e=e||{},this.apiClient.callApi("/api/v2/flows","GET",{},{type:this.apiClient.buildCollectionParam(e.type,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,publishVersionId:e.publishVersionId,editableBy:e.editableBy,lockedBy:e.lockedBy,lockedByClientId:e.lockedByClientId,secure:e.secure,deleted:e.deleted,includeSchemas:e.includeSchemas,virtualAgentEnabled:e.virtualAgentEnabled,publishedAfter:e.publishedAfter,publishedBefore:e.publishedBefore,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsDatatable(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","GET",{datatableId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableExportJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(n==null||n==="")throw'Missing the required parameter "exportJobId" when calling getFlowsDatatableExportJob';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}","GET",{datatableId:e,exportJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableImportJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling getFlowsDatatableImportJob';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId}","GET",{datatableId:e,importJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableImportJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","GET",{datatableId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableRow(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(n==null||n==="")throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:n},{showbrief:i.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableRows(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","GET",{datatableId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,showbrief:n.showbrief,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatables(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/datatables","GET",{},{expand:e.expand,pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsDatatablesDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatablesDivisionview';return this.apiClient.callApi("/api/v2/flows/datatables/divisionviews/{datatableId}","GET",{datatableId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatablesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/datatables/divisionviews","GET",{},{expand:e.expand,pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/divisionviews","GET",{},{type:this.apiClient.buildCollectionParam(e.type,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,publishVersionId:e.publishVersionId,publishedAfter:e.publishedAfter,publishedBefore:e.publishedBefore,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),includeSchemas:e.includeSchemas},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsExecution(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowExecutionId" when calling getFlowsExecution';return this.apiClient.callApi("/api/v2/flows/executions/{flowExecutionId}","GET",{flowExecutionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsExportJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getFlowsExportJob';return this.apiClient.callApi("/api/v2/flows/export/jobs/{jobId}","GET",{jobId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsInstance(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "instanceId" when calling getFlowsInstance';return this.apiClient.callApi("/api/v2/flows/instances/{instanceId}","GET",{instanceId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsInstancesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getFlowsInstancesJob';return this.apiClient.callApi("/api/v2/flows/instances/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsInstancesQuerycapabilities(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/querycapabilities","GET",{},{expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsInstancesSettingsExecutiondata(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/executiondata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsInstancesSettingsLoglevels(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsInstancesSettingsLoglevelsCharacteristics(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/characteristics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsInstancesSettingsLoglevelsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getFlowsJob';return this.apiClient.callApi("/api/v2/flows/jobs/{jobId}","GET",{jobId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsMilestone(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling getFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","GET",{milestoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsMilestonesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcome(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling getFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","GET",{flowOutcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchArchitectGrammar(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchArchitectGrammarLanguage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchFlowsInstancesSettingsExecutiondata(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchFlowsInstancesSettingsExecutiondata';return this.apiClient.callApi("/api/v2/flows/instances/settings/executiondata","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectDependencytrackingBuild(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/build","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postArchitectEmergencygroups(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postArchitectEmergencygroups';return this.apiClient.callApi("/api/v2/architect/emergencygroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectGrammarLanguageFilesDtmf(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesDtmf';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf","POST",{grammarId:e,languageCode:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguageFilesVoice(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesVoice';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice","POST",{grammarId:e,languageCode:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(n==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postArchitectGrammars(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postArchitectGrammars';return this.apiClient.callApi("/api/v2/architect/grammars","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectIvrs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postArchitectIvrs';return this.apiClient.callApi("/api/v2/architect/ivrs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptHistory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptHistory';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history","POST",{promptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptResourceUploads(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling postArchitectPromptResourceUploads';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}/uploads","POST",{promptId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postArchitectPromptResources(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(n==null)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postArchitectPrompts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postArchitectPrompts';return this.apiClient.callApi("/api/v2/architect/prompts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSchedulegroups(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postArchitectSchedulegroups';return this.apiClient.callApi("/api/v2/architect/schedulegroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSchedules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postArchitectSchedules';return this.apiClient.callApi("/api/v2/architect/schedules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptHistory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptHistory';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history","POST",{promptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptResourceUploads(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling postArchitectSystempromptResourceUploads';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}/uploads","POST",{promptId:e,languageCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postArchitectSystempromptResources(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(n==null)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowHistory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowHistory';return this.apiClient.callApi("/api/v2/flows/{flowId}/history","POST",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowInstancesSettingsLoglevels(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(n==null)throw'Missing the required parameter "body" when calling postFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","POST",{flowId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowVersions';if(n==null)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlows(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:n.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsActionsCheckin(e,n){if(n=n||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsCheckin';return this.apiClient.callApi("/api/v2/flows/actions/checkin","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsActionsCheckout(e,n){if(n=n||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsCheckout';return this.apiClient.callApi("/api/v2/flows/actions/checkout","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsActionsDeactivate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsDeactivate';return this.apiClient.callApi("/api/v2/flows/actions/deactivate","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsActionsPublish(e,n){if(n=n||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsActionsRevert(e,n){if(n=n||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsRevert';return this.apiClient.callApi("/api/v2/flows/actions/revert","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsActionsUnlock(e,n){if(n=n||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsUnlock';return this.apiClient.callApi("/api/v2/flows/actions/unlock","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableExportJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableExportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/export/jobs","POST",{datatableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableImportCsvJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';if(n==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportCsvJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/csv/jobs","POST",{datatableId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsDatatableImportJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(n==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsDatatableRows(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(n==null)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsDatatables(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postFlowsDatatables';return this.apiClient.callApi("/api/v2/flows/datatables","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsExecutions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "flowLaunchRequest" when calling postFlowsExecutions';return this.apiClient.callApi("/api/v2/flows/executions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsExportJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postFlowsExportJobs';return this.apiClient.callApi("/api/v2/flows/export/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsInstancesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:n.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsInstancesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:n.indexOnly,pageSize:n.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putArchitectEmergencygroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(n==null)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putArchitectIvr(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(n==null)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putArchitectIvrIdentityresolution(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';if(n==null)throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","PUT",{ivrId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putArchitectPrompt(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(n==null)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putArchitectPromptResource(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(i==null)throw'Missing the required parameter "body" when calling putArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","PUT",{promptId:e,languageCode:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putArchitectSchedule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(n==null)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putArchitectSchedulegroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(n==null)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putArchitectSystempromptResource(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(n==null||n==="")throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","PUT",{promptId:e,languageCode:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putFlow(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlow';if(n==null)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowInstancesSettingsLoglevels(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(n==null)throw'Missing the required parameter "body" when calling putFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","PUT",{flowId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsDatatable(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(n==null)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:i.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsDatatableRow(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(n==null||n==="")throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsInstancesSettingsLoglevelsDefault(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putFlowsInstancesSettingsLoglevelsDefault';return this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","PUT",{},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsMilestone(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsOutcome(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},eb=class{constructor(e){this.apiClient=e||k.instance}deleteAssistantVariation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantVariation';if(n==null||n==="")throw'Missing the required parameter "variationId" when calling deleteAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","DELETE",{assistantId:e,variationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantVariation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariation';if(n==null||n==="")throw'Missing the required parameter "variationId" when calling getAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","GET",{assistantId:e,variationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantVariations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","GET",{assistantId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantVariations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantVariations';if(n==null)throw'Missing the required parameter "body" when calling postAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","POST",{assistantId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAssistantVariation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantVariation';if(n==null||n==="")throw'Missing the required parameter "variationId" when calling putAssistantVariation';if(i==null)throw'Missing the required parameter "body" when calling putAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","PUT",{assistantId:e,variationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},nb=class{constructor(e){this.apiClient=e||k.instance}getAuditsQueryRealtimeServicemapping(e){return e=e||{},this.apiClient.callApi("/api/v2/audits/query/realtime/servicemapping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuditsQueryServicemapping(e){return e=e||{},this.apiClient.callApi("/api/v2/audits/query/servicemapping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuditsQueryTransactionId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionId';return this.apiClient.callApi("/api/v2/audits/query/{transactionId}","GET",{transactionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuditsQueryTransactionIdResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionIdResults';return this.apiClient.callApi("/api/v2/audits/query/{transactionId}/results","GET",{transactionId:e},{cursor:n.cursor,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),allowRedirect:n.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuditsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAuditsQuery';return this.apiClient.callApi("/api/v2/audits/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuditsQueryRealtime(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';return this.apiClient.callApi("/api/v2/audits/query/realtime","POST",{},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuditsQueryRealtimeRelated(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';return this.apiClient.callApi("/api/v2/audits/query/realtime/related","POST",{},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ib=class{constructor(e){this.apiClient=e||k.instance}deleteAuthorizationDivision(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","DELETE",{divisionId:e},{force:n.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationPoliciesTargetSubjectSubjectId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';if(n==null||n==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/subject/{subjectId}","DELETE",{targetName:e,subjectId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAuthorizationRole(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling deleteAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","DELETE",{roleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "roleId" when calling deleteAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","DELETE",{subjectId:e,divisionId:n,roleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAuthorizationDivision(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling getAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","GET",{divisionId:e},{objectCount:n.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivisionGrants(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling getAuthorizationDivisionGrants';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/grants","GET",{divisionId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivisions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,objectCount:e.objectCount,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsDeleted(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/deleted","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsHome(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/home","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsLimit(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/limit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/query","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionspermittedMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:n.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/me","GET",{},{permission:e,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(n==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:n,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPermissions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/permissions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,queryType:e.queryType,query:e.query},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationPolicies(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/policies","GET",{},{after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationPoliciesSubjectSubjectId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationPoliciesSubjectSubjectId';return this.apiClient.callApi("/api/v2/authorization/policies/subject/{subjectId}","GET",{subjectId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationPoliciesTarget(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","GET",{targetName:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationPoliciesTargetSubjectSubjectId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';if(n==null||n==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationPoliciesTargetSubjectSubjectId';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/subject/{subjectId}","GET",{targetName:e,subjectId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTargets(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/policies/targets","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationPolicy(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling getAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationPolicyAttributes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling getAuthorizationPolicyAttributes';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/attributes","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationProducts(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/products","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationRole(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling getAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","GET",{roleId:e},{userCount:n.userCount,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleComparedefaultRightRoleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(n==null||n==="")throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleSubjectgrants(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling getAuthorizationRoleSubjectgrants';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/subjectgrants","GET",{roleId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),nextPage:n.nextPage,previousPage:n.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleUsers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling getAuthorizationRoleUsers';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users","GET",{roleId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoles(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/roles","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,permission:this.apiClient.buildCollectionParam(e.permission,"multi"),defaultRoleId:this.apiClient.buildCollectionParam(e.defaultRoleId,"multi"),userCount:e.userCount,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationRolesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/roles/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationSubject(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}","GET",{subjectId:e},{includeDuplicates:n.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubjectsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/me","GET",{},{includeDuplicates:e.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationSubjectsRolecounts(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/rolecounts","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUserRoles(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","GET",{subjectId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAuthorizationRole(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(n==null)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchAuthorizationSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchAuthorizationSettings';return this.apiClient.callApi("/api/v2/authorization/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisionObject(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(n==null||n==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionObject';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/objects/{objectType}","POST",{divisionId:e,objectType:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationDivisions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisions';return this.apiClient.callApi("/api/v2/authorization/divisions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPoliciesTarget(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","POST",{targetName:e},{skipLockoutCheck:i.skipLockoutCheck},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationPoliciesTargetValidate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/validate","POST",{targetName:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationPolicySimulate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/simulate","POST",{policyId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationRole(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:i.subjectType},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationRoleComparedefaultRightRoleId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(n==null||n==="")throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","POST",{leftRoleId:e,rightRoleId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationRoles(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAuthorizationRoles';return this.apiClient.callApi("/api/v2/authorization/roles","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRolesDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/roles/default","POST",{},{force:e.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postAuthorizationSubjectBulkadd(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:i.subjectType},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationSubjectBulkremove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationSubjectBulkreplace(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:i.subjectType},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationSubjectDivisionRole(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "roleId" when calling postAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","POST",{subjectId:e,divisionId:n,roleId:i},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAuthorizationDivision(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(n==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAuthorizationPoliciesTarget(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';if(n==null)throw'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","PUT",{targetName:e},{skipLockoutCheck:i.skipLockoutCheck},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAuthorizationPolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putAuthorizationPolicy';if(n==null)throw'Missing the required parameter "body" when calling putAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","PUT",{policyId:e},{skipLockoutCheck:i.skipLockoutCheck},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAuthorizationRole(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(n==null)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAuthorizationRoleUsersAdd(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(n==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAuthorizationRoleUsersRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(n==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAuthorizationRolesDefault(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putAuthorizationRolesDefault';return this.apiClient.callApi("/api/v2/authorization/roles/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRolesSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putAuthorizationRolesSettings';return this.apiClient.callApi("/api/v2/authorization/roles/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoles(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(n==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},tb=class{constructor(e){this.apiClient=e||k.instance}postBackgroundassistantToken(e){return e=e||{},this.apiClient.callApi("/api/v2/backgroundassistant/token","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postScreenrecordingToken(e){return e=e||{},this.apiClient.callApi("/api/v2/screenrecording/token","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},ab=class{constructor(e){this.apiClient=e||k.instance}getBillingContract(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContract';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}","GET",{contractId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingContractBillingperiod(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';if(n==null||n==="")throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}","GET",{contractId:e,billingPeriodId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBillingContracts(e){return e=e||{},this.apiClient.callApi("/api/v2/billing/contracts","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,dateStart:e.dateStart,dateEnd:e.dateEnd,status:e.status,externalNumber:e.externalNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getBillingContractsInvoiceDocument(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceDocument';return this.apiClient.callApi("/api/v2/billing/contracts/invoices/{invoiceId}/document","GET",{invoiceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingContractsInvoiceLines(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceLines';return this.apiClient.callApi("/api/v2/billing/contracts/invoices/{invoiceId}/lines","GET",{invoiceId:e},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingContractsInvoices(e){return e=e||{},this.apiClient.callApi("/api/v2/billing/contracts/invoices","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,dateStart:e.dateStart,dateEnd:e.dateEnd,paymentStatus:e.paymentStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getBillingReportsBillableusage(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(n==null)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBillingTrusteebillingoverviewTrustorOrgId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';return this.apiClient.callApi("/api/v2/billing/trusteebillingoverview/{trustorOrgId}","GET",{trustorOrgId:e},{billingPeriodIndex:n.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},rb=class{constructor(e){this.apiClient=e||k.instance}deleteBusinessrulesDecisiontable(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","DELETE",{tableId:e},{forceDelete:n.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteBusinessrulesDecisiontableVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';if(n==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersion';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}","DELETE",{tableId:e,tableVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableVersionRow(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';if(n==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling deleteBusinessrulesDecisiontableVersionRow';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}","DELETE",{tableId:e,tableVersion:n,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteBusinessrulesSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling deleteBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontable(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","GET",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';if(n==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersion';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}","GET",{tableId:e,tableVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesDecisiontableVersionRow(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';if(n==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling getBusinessrulesDecisiontableVersionRow';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}","GET",{tableId:e,tableVersion:n,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getBusinessrulesDecisiontableVersionRows(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';if(n==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRows';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows","GET",{tableId:e,tableVersion:n},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesDecisiontableVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","GET",{tableId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontables(e){return e=e||{},this.apiClient.callApi("/api/v2/businessrules/decisiontables","GET",{},{after:e.after,pageSize:e.pageSize,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getBusinessrulesDecisiontablesSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/businessrules/decisiontables/search","GET",{},{after:e.after,pageSize:e.pageSize,schemaId:e.schemaId,name:e.name,withPublishedVersion:e.withPublishedVersion,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),ids:this.apiClient.buildCollectionParam(e.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getBusinessrulesSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/businessrules/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getBusinessrulesSchemasCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coreTypeName" when calling getBusinessrulesSchemasCoretype';return this.apiClient.callApi("/api/v2/businessrules/schemas/coretypes/{coreTypeName}","GET",{coreTypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesSchemasCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/businessrules/schemas/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchBusinessrulesDecisiontable(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';if(n==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","PATCH",{tableId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchBusinessrulesDecisiontableVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';if(n==null)throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersion';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}","PATCH",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableExecute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';if(n==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/execute","POST",{tableId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontableVersionCopy(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionCopy';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/copy","POST",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionExecute(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/execute","POST",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRows(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRows';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows","POST",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsSearch(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsSearch';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/search","POST",{tableId:e,tableVersion:n},{pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionSync(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionSync';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/sync","POST",{tableId:e,tableVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontableVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","POST",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontables(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontables';return this.apiClient.callApi("/api/v2/businessrules/decisiontables","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesSchemas(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postBusinessrulesSchemas';return this.apiClient.callApi("/api/v2/businessrules/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putBusinessrulesDecisiontableVersionPublish(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';if(n==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionPublish';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/publish","PUT",{tableId:e,tableVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putBusinessrulesDecisiontableVersionRow(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';if(n==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling putBusinessrulesDecisiontableVersionRow';if(a==null)throw'Missing the required parameter "body" when calling putBusinessrulesDecisiontableVersionRow';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}","PUT",{tableId:e,tableVersion:n,rowId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putBusinessrulesSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';if(n==null)throw'Missing the required parameter "body" when calling putBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},sb=class{constructor(e){this.apiClient=e||k.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "phoneNumber" when calling getCarrierservicesIntegrationsEmergencylocationsMe';return this.apiClient.callApi("/api/v2/carrierservices/integrations/emergencylocations/me","GET",{},{phoneNumber:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCarrierservicesIntegrationsEmergencylocationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/carrierservices/integrations/emergencylocations/me","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},ob=class{constructor(e){this.apiClient=e||k.instance}deleteCasemanagementCase(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling deleteCasemanagementCase';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}","DELETE",{caseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteCasemanagementCaseplan(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling deleteCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","DELETE",{caseplanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCase(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCase';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}","GET",{caseId:e},{expands:n.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseAssociation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociation';if(n==null||n==="")throw'Missing the required parameter "associationId" when calling getCasemanagementCaseAssociation';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations/{associationId}","GET",{caseId:e,associationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseAssociations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","GET",{caseId:e},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStage';if(n==null||n==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStage';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}","GET",{caseId:e,stageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStageStep(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageStep';if(n==null||n==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling getCasemanagementCaseStageStep';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}/steps/{stepId}","GET",{caseId:e,stageId:n,stepId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseStageSteps(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageSteps';if(n==null||n==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageSteps';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}/steps","GET",{caseId:e,stageId:n},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStages';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages","GET",{caseId:e},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseTerminateJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseTerminateJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getCasemanagementCaseTerminateJob';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/terminate/jobs/{jobId}","GET",{caseId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseplan(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","GET",{caseplanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersion';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}","GET",{caseplanId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseplanVersionDataschemas(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionDataschemas';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionDataschemas';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}/dataschemas","GET",{caseplanId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseplanVersionIntakesettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionIntakesettings';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}/intakesettings","GET",{caseplanId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseplanVersionStageplan(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplan';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling getCasemanagementCaseplanVersionStageplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}/stageplans/{stageplanId}","GET",{caseplanId:e,versionId:n,stageplanId:i},{expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplan(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(a==null||a==="")throw'Missing the required parameter "stepplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}/stageplans/{stageplanId}/stepplans/{stepplanId}","GET",{caseplanId:e,versionId:n,stageplanId:i,stepplanId:a},{expands:this.apiClient.buildCollectionParam(r.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplans(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}/stageplans/{stageplanId}/stepplans","GET",{caseplanId:e,versionId:n,stageplanId:i},{before:a.before,after:a.after,pageSize:a.pageSize,expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplans';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplans';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}/stageplans","GET",{caseplanId:e,versionId:n},{before:i.before,after:i.after,pageSize:i.pageSize,expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseplans(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/caseplans","GET",{},{after:e.after,pageSize:e.pageSize,customerIntentId:e.customerIntentId,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getCasemanagementCasesExternalcontact(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling getCasemanagementCasesExternalcontact';return this.apiClient.callApi("/api/v2/casemanagement/cases/externalcontacts/{externalContactId}","GET",{externalContactId:e},{after:n.after,pageSize:n.pageSize,divisionIds:n.divisionIds,expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCasesReference(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "referenceId" when calling getCasemanagementCasesReference';return this.apiClient.callApi("/api/v2/casemanagement/cases/references/{referenceId}","GET",{referenceId:e},{expands:n.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseDatedue(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDatedue';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDatedue';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/datedue","PATCH",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCasePriority(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCasePriority';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCasePriority';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/priority","PATCH",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseSummary(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseSummary';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseSummary';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/summary","PATCH",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplan';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","PATCH",{caseplanId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseplanStageplan(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplan';if(n==null||n==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplan';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplanStageplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans/{stageplanId}","PATCH",{caseplanId:e,stageplanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCasemanagementCaseplanStageplanStepplan(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(n==null||n==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stepplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(a==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplanStageplanStepplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans/{stageplanId}/stepplans/{stepplanId}","PATCH",{caseplanId:e,stageplanId:n,stepplanId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postCasemanagementCaseAssociations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCaseTerminateJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseTerminateJobs';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/terminate/jobs","POST",{caseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCaseplanPublish(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanPublish';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/publish","POST",{caseplanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCaseplanVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanVersions';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions","POST",{caseplanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCaseplans(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplans';return this.apiClient.callApi("/api/v2/casemanagement/caseplans","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCaseplansQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplansQuery';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCases(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCasemanagementCases';return this.apiClient.callApi("/api/v2/casemanagement/cases","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCasesAssociationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putCasemanagementCaseplanIntakesettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanIntakesettings';if(n==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings","PUT",{caseplanId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},lb=class{constructor(e){this.apiClient=e||k.instance}deleteChatsRoomMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteChatsRoomMessagesPin(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(n==null||n==="")throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomMessagesPin';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins/{pinnedMessageId}","DELETE",{roomJid:e,pinnedMessageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteChatsRoomParticipant(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(n==null||n==="")throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteChatsUserMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteChatsUserMessagesPin(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(n==null||n==="")throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins/{pinnedMessageId}","DELETE",{userId:e,pinnedMessageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteChatsUsersMeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/chats/users/me/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getChatsMessage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getChatsMessage';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}","GET",{messageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoom(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","GET",{roomJid:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(n==null||n==="")throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","GET",{roomJid:e},{limit:n.limit,before:n.before,after:n.after,excludeMetadata:n.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomParticipant(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(n==null||n==="")throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomParticipants(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipants';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants","GET",{roomJid:e},{notify:n.notify},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/chats/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getChatsThreadMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';return this.apiClient.callApi("/api/v2/chats/threads/{threadId}/messages","GET",{threadId:e},{limit:n.limit,before:n.before,after:n.after,excludeMetadata:n.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUser';return this.apiClient.callApi("/api/v2/chats/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(n==null||n==="")throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUserMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","GET",{userId:e},{limit:n.limit,before:n.before,after:n.after,excludeMetadata:n.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUsersMeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/chats/users/me/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchChatsRoom(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(n==null)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchChatsRoomMessage(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(i==null)throw'Missing the required parameter "body" when calling patchChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","PATCH",{roomJid:e,messageId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchChatsSettings';return this.apiClient.callApi("/api/v2/chats/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsUserMessage(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(i==null)throw'Missing the required parameter "body" when calling patchChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","PATCH",{userId:e,messageId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsUserSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(n==null)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchChatsUsersMeSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchChatsUsersMeSettings';return this.apiClient.callApi("/api/v2/chats/users/me/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomMessages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(n==null)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postChatsRoomMessagesPins(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(n==null)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postChatsRoomParticipant(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(n==null||n==="")throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postChatsRooms(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postChatsRooms';return this.apiClient.callApi("/api/v2/chats/rooms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUserMessages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(n==null)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postChatsUserMessagesPins(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(n==null)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postChatsUsersMeSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postChatsUsersMeSettings';return this.apiClient.callApi("/api/v2/chats/users/me/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putChatsMessageReactions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(n==null)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putChatsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putChatsSettings';return this.apiClient.callApi("/api/v2/chats/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ub=class{constructor(e){this.apiClient=e||k.instance}deleteCoachingAppointment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","DELETE",{appointmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteCoachingAppointmentAnnotation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(n==null||n==="")throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","GET",{appointmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentAnnotation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(n==null||n==="")throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointmentAnnotations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","GET",{appointmentId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentStatuses(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentStatuses';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/statuses","GET",{appointmentId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "userIds" when calling getCoachingAppointments';return this.apiClient.callApi("/api/v2/coaching/appointments","GET",{},{userIds:this.apiClient.buildCollectionParam(e,"multi"),interval:n.interval,pageNumber:n.pageNumber,pageSize:n.pageSize,statuses:this.apiClient.buildCollectionParam(n.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(n.facilitatorIds,"multi"),sortOrder:n.sortOrder,relationships:this.apiClient.buildCollectionParam(n.relationships,"multi"),completionInterval:n.completionInterval,overdue:n.overdue,intervalCondition:n.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/coaching/appointments/me","GET",{},{interval:e.interval,pageNumber:e.pageNumber,pageSize:e.pageSize,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(e.facilitatorIds,"multi"),sortOrder:e.sortOrder,relationships:this.apiClient.buildCollectionParam(e.relationships,"multi"),completionInterval:e.completionInterval,overdue:e.overdue,intervalCondition:e.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getCoachingNotification(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling getCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","GET",{notificationId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/coaching/notifications","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getCoachingScheduleslotsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getCoachingScheduleslotsJob';return this.apiClient.callApi("/api/v2/coaching/scheduleslots/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingAppointment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(n==null)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCoachingAppointmentAnnotation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(n==null||n==="")throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","PATCH",{appointmentId:e,annotationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCoachingAppointmentStatus(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(n==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCoachingNotification(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(n==null)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCoachingAppointmentAnnotations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(n==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCoachingAppointmentConversations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(n==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCoachingAppointments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCoachingAppointments';return this.apiClient.callApi("/api/v2/coaching/appointments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentsAggregatesQuery';return this.apiClient.callApi("/api/v2/coaching/appointments/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingScheduleslotsJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCoachingScheduleslotsJobs';return this.apiClient.callApi("/api/v2/coaching/scheduleslots/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingScheduleslotsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';return this.apiClient.callApi("/api/v2/coaching/scheduleslots/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},cb=class{constructor(e){this.apiClient=e||k.instance}deleteContentmanagementDocument(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling deleteContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","DELETE",{documentId:e},{override:n.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementShare(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "shareId" when calling deleteContentmanagementShare';return this.apiClient.callApi("/api/v2/contentmanagement/shares/{shareId}","DELETE",{shareId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementStatusStatusId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "statusId" when calling deleteContentmanagementStatusStatusId';return this.apiClient.callApi("/api/v2/contentmanagement/status/{statusId}","DELETE",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspace(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","DELETE",{workspaceId:e},{moveChildrenToWorkspaceId:n.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspaceMember(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementWorkspaceTagvalue(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(n==null||n==="")throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocument(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling getContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","GET",{documentId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocumentContent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling getContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","GET",{documentId:e},{disposition:n.disposition,contentType:n.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocuments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:n.name,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,sortOrder:n.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementSecurityprofile(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "securityProfileId" when calling getContentmanagementSecurityprofile';return this.apiClient.callApi("/api/v2/contentmanagement/securityprofiles/{securityProfileId}","GET",{securityProfileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementSecurityprofiles(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/securityprofiles","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getContentmanagementShare(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "shareId" when calling getContentmanagementShare';return this.apiClient.callApi("/api/v2/contentmanagement/shares/{shareId}","GET",{shareId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementSharedSharedId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sharedId" when calling getContentmanagementSharedSharedId';return this.apiClient.callApi("/api/v2/contentmanagement/shared/{sharedId}","GET",{sharedId:e},{disposition:n.disposition,contentType:n.contentType,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementShares(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/shares","GET",{},{entityId:e.entityId,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getContentmanagementStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/status","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getContentmanagementStatusStatusId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "statusId" when calling getContentmanagementStatusStatusId';return this.apiClient.callApi("/api/v2/contentmanagement/status/{statusId}","GET",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementUsage(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/usage","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getContentmanagementWorkspace(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","GET",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceDocuments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/documents","GET",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceMember(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceMembers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMembers';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members","GET",{workspaceId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceTagvalue(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(n==null||n==="")throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceTagvalues(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","GET",{workspaceId:e},{value:n.value,pageSize:n.pageSize,pageNumber:n.pageNumber,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaces(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/workspaces","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,access:this.apiClient.buildCollectionParam(e.access,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postContentmanagementDocument(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(n==null)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:i.expand,override:i.override},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementDocumentContent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(n==null)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:i.override},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementDocuments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:n.copySource,moveSource:n.moveSource,override:n.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:n.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementShares(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementShares';return this.apiClient.callApi("/api/v2/contentmanagement/shares","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaceTagvalues(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(n==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementWorkspaceTagvaluesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(n==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvaluesQuery';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/query","POST",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementWorkspaces(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaces';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putContentmanagementWorkspace(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(n==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putContentmanagementWorkspaceMember(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","PUT",{workspaceId:e,memberId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putContentmanagementWorkspaceTagvalue(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(n==null||n==="")throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","PUT",{workspaceId:e,tagId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},pb=class{constructor(e){this.apiClient=e||k.instance}deleteAnalyticsConversationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}","DELETE",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationCustomattribute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';if(n==null||n==="")throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","DELETE",{conversationId:e,attributesId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteConversationParticipantCode(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(i==null||i==="")throw'Missing the required parameter "addCommunicationCode" when calling deleteConversationParticipantCode';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/codes/{addCommunicationCode}","DELETE",{conversationId:e,participantId:n,addCommunicationCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationParticipantFlaggedreason(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteConversationsCallParticipantCommunicationPostflowaction(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/postflowaction","DELETE",{conversationId:e,participantId:n,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationsCallParticipantConsult(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","DELETE",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteConversationsEmailMessagesDraftAttachment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(n==null||n==="")throw'Missing the required parameter "attachmentId" when calling deleteConversationsEmailMessagesDraftAttachment';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/{attachmentId}","DELETE",{conversationId:e,attachmentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteConversationsMessagesCachedmediaCachedMediaItemId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "cachedMediaItemId" when calling deleteConversationsMessagesCachedmediaCachedMediaItemId';return this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia/{cachedMediaItemId}","DELETE",{cachedMediaItemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingIntegrationsAppleIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingIntegrationsOpenIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling deleteConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","DELETE",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagingSettingsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteConversationsMessagingSupportedcontentSupportedContentId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling deleteConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","DELETE",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationDetails(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getAnalyticsConversationDetails';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsConversationsDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsConversationsDetailsJobsAvailability(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationAssistantCopilotcontext(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationAssistantCopilotcontext';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assistant/copilotcontext","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCommunicationAgentchecklist(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklist';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "agentChecklistId" when calling getConversationCommunicationAgentchecklist';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists/{agentChecklistId}","GET",{conversationId:e,communicationId:n,agentChecklistId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationAgentchecklistJob(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklistJob';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklistJob';if(i==null||i==="")throw'Missing the required parameter "agentChecklistId" when calling getConversationCommunicationAgentchecklistJob';if(a==null||a==="")throw'Missing the required parameter "jobId" when calling getConversationCommunicationAgentchecklistJob';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists/{agentChecklistId}/jobs/{jobId}","GET",{conversationId:e,communicationId:n,agentChecklistId:i,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getConversationCommunicationAgentchecklists(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklists';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklists';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists","GET",{conversationId:e,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationCommunicationInternalmessage(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationCommunicationInternalmessage';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages/{messageId}","GET",{conversationId:e,communicationId:n,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationInternalmessages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","GET",{conversationId:e,communicationId:n},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationCustomattribute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';if(n==null||n==="")throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","GET",{conversationId:e,attributesId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationCustomattributes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantSecureivrsession(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(i==null||i==="")throw'Missing the required parameter "secureSessionId" when calling getConversationParticipantSecureivrsession';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions/{secureSessionId}","GET",{conversationId:e,participantId:n,secureSessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationParticipantSecureivrsessions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationParticipantWrapup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:n},{provisional:i.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationParticipantWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSecureattributes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSuggestion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(n==null||n==="")throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSuggestions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions","GET",{conversationId:e},{before:n.before,after:n.after,pageSize:n.pageSize,type:n.type,state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSummaries(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSummaries';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversations(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations","GET",{},{communicationType:e.communicationType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCall(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsCallParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallParticipantWrapup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:n},{provisional:i.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsCallParticipantWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsCallback(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbackParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsCallbackParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallbackParticipantWrapup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:n},{provisional:i.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsCallbackParticipantWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsCallbacks(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCalls(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsMaximumconferenceparties(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsChat(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:n.after,before:n.before,sortOrder:n.sortOrder,maxResults:n.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsChatParticipantWrapup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:n},{provisional:i.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatParticipantWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChats(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCobrowsesession(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCobrowsesessionParticipantWrapup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:n},{provisional:i.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsCobrowsesessionParticipantWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsCobrowsesessions(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/cobrowsesessions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCustomattributesSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getConversationsCustomattributesSchemaVersion';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsCustomattributesSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersions';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/customattributes/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCustomattributesSchemasCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coreTypeName" when calling getConversationsCustomattributesSchemasCoretype';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/coretypes/{coreTypeName}","GET",{coreTypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemasCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCustomattributesSchemasLimits(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsEmail(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","GET",{conversationId:e},{includeAgentlessStitchedMessages:n.includeAgentlessStitchedMessages},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessagesDraft(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsEmailParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsEmailParticipantWrapup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:n},{provisional:i.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailParticipantWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailSettings';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/settings","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmails(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/emails","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsInternalmessage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsInternalmessage';return this.apiClient.callApi("/api/v2/conversations/internalmessages/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsInternalmessages(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/internalmessages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsKeyconfiguration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling getConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","GET",{keyconfigurationsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsKeyconfigurations(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/keyconfigurations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageCommunicationMessagesMedia(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMedia';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media","GET",{conversationId:e,communicationId:n},{status:i.status,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageCommunicationMessagesMediaMediaId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(i==null||i==="")throw'Missing the required parameter "mediaId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/{mediaId}","GET",{conversationId:e,communicationId:n,mediaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageDetails(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:n.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:n},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageParticipantWrapup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:n},{provisional:i.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageParticipantWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagesCachedmedia(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,url:e.url},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagesCachedmediaCachedMediaItemId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "cachedMediaItemId" when calling getConversationsMessagesCachedmediaCachedMediaItemId';return this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia/{cachedMediaItemId}","GET",{cachedMediaItemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingFacebookApp(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/facebook/app","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingFacebookPermissions(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/facebook/permissions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/apple/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/instagram/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/whatsapp/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationTwitterOauthSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationTwitterOauthSettings';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/{integrationId}/twitter/oauth/settings","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsApple(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsAppleIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","GET",{integrationId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsFacebook(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsFacebookIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","GET",{integrationId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsInstagram(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsInstagramIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","GET",{integrationId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsOpen(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}","GET",{integrationId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/oauth/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}","GET",{tokenId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}/accounts","GET",{tokenId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsOpenIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","GET",{integrationId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsTwitter(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsTwitterIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","GET",{integrationId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingIntegrationsTwitterOauthSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/oauth/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsWhatsapp(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingIntegrationsWhatsappIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","GET",{integrationId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingOauthAppleCallback(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "code" when calling getConversationsMessagingOauthAppleCallback';if(n==null)throw'Missing the required parameter "state" when calling getConversationsMessagingOauthAppleCallback';return this.apiClient.callApi("/api/v2/conversations/messaging/oauth/apple/callback","GET",{},{code:e,state:n,error:i.error},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessagingSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling getConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","GET",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/settings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingSettingsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingSupportedcontent(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingSupportedcontentDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsMessagingSupportedcontentSupportedContentId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling getConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","GET",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingThreadingtimeline(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/threadingtimeline","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsScreenshareParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsSocialParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsSocialParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideoDetails(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conferenceId" when calling getConversationsVideoDetails';return this.apiClient.callApi("/api/v2/conversations/videos/{conferenceId}/details","GET",{conferenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsVideoParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsVideoParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:n,communicationId:i},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideosMeeting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "meetingId" when calling getConversationsVideosMeeting';return this.apiClient.callApi("/api/v2/conversations/videos/meetings/{meetingId}","GET",{meetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationCustomattributes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PATCH",{conversationId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationCustomattributesBulk(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributesBulk';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/bulk","PATCH",{conversationId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationParticipant(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(i==null)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationParticipantAttributes(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling patchConversationRecordingstate';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingstate","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationSecureattributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(n==null)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationSummaryEngagements(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';if(n==null||n==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements","PATCH",{conversationId:e,summaryId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationSummaryFeedback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';if(n==null||n==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","PATCH",{conversationId:e,summaryId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationUtilizationlabel(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(n==null)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsAftercallworkConversationIdParticipantCommunication(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/aftercallwork/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCall(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsCallConference(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsCallConference';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/conference","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsCallParticipant(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallParticipant';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantAttributes(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantCommunication(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsCallParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallParticipantCommunicationPostflowaction(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/postflowaction","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantConsult(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantUserUserId(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchConversationsCallParticipantUserUserId';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/user/{userId}","PATCH",{conversationId:e,participantId:n,userId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsCallbackParticipant(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipant';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantAttributes(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantCommunication(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsCallbackParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallbacks(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchConversationsCallbacks';return this.apiClient.callApi("/api/v2/conversations/callbacks","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsChat(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsChatParticipant(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantAttributes(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantCommunication(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCobrowsesession(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsCobrowsesessionParticipant(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsCobrowsesessionParticipantAttributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsCobrowsesessionParticipantCommunication(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesessionParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmail(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsEmailMessagesDraft(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PATCH",{conversationId:e},{autoFill:n.autoFill,discard:n.discard},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsEmailParticipant(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipant';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantAttributes(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantCommunication(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsEmailParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmailParticipantParkingstate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantParkingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/parkingstate","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessageParticipant(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessageParticipantAttributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessageParticipantCommunication(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling patchConversationsMessageParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsMessageParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsMessageParticipantParkingstate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessageParticipantParkingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/parkingstate","PATCH",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessagingIntegrationsAppleIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingIntegrationsOpenIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingSetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsMessagingSupportedcontentSupportedContentId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchConversationsSettings';return this.apiClient.callApi("/api/v2/conversations/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationDetailsProperties(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(n==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsDetailsJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsDetailsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationAssign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(n==null)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationBarge(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationBarge';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/barge","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationCobrowse(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCobrowse';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/cobrowse","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationCommunicationAgentchecklist(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklist';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "agentChecklistId" when calling postConversationCommunicationAgentchecklist';if(a==null)throw'Missing the required parameter "body" when calling postConversationCommunicationAgentchecklist';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists/{agentChecklistId}","POST",{conversationId:e,communicationId:n,agentChecklistId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistAgentaction(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(i==null||i==="")throw'Missing the required parameter "agentChecklistId" when calling postConversationCommunicationAgentchecklistAgentaction';if(a==null)throw'Missing the required parameter "body" when calling postConversationCommunicationAgentchecklistAgentaction';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists/{agentChecklistId}/agentaction","POST",{conversationId:e,communicationId:n,agentChecklistId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistJobs(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistJobs';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistJobs';if(i==null||i==="")throw'Missing the required parameter "agentChecklistId" when calling postConversationCommunicationAgentchecklistJobs';if(a==null)throw'Missing the required parameter "body" when calling postConversationCommunicationAgentchecklistJobs';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists/{agentChecklistId}/jobs","POST",{conversationId:e,communicationId:n,agentChecklistId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistsFinalize(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(i==null)throw'Missing the required parameter "body" when calling postConversationCommunicationAgentchecklistsFinalize';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists/finalize","POST",{conversationId:e,communicationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationCommunicationInternalmessages(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","POST",{conversationId:e,communicationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationDisconnect(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationDisconnect';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/disconnect","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantCallbacks(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationParticipantDigits(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationParticipantInternalmessagesUsersCommunications(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(i==null)throw'Missing the required parameter "body" when calling postConversationParticipantInternalmessagesUsersCommunications';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/internalmessages/users/communications","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplace(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(i==null)throw'Missing the required parameter "body" when calling postConversationParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceAgent(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(i==null)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceAgent';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/agent","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceContactExternal(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceContactExternal';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceContactExternal';if(i==null)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceContactExternal';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/contact/external","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceExternal(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(i==null)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceExternal';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/external","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceQueue(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(i==null)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceQueue';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/queue","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantSecureivrsessions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationParticipantTransfer(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantTransfer';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantTransfer';if(i==null)throw'Missing the required parameter "body" when calling postConversationParticipantTransfer';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/transfer","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionEngagement(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(n==null||n==="")throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(i==null)throw'Missing the required parameter "body" when calling postConversationSuggestionEngagement';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}/engagement","POST",{conversationId:e,suggestionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionsFeedback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(n==null)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationSummaryFeedback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(n==null||n==="")throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCall(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(n==null)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCallParticipantBarge(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantBarge';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/barge","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCallParticipantCoach(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCoach';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/coach","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCallParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsCallParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsult(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultAgent(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultAgent';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/agent","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultContactExternal(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultContactExternal';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultContactExternal';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultContactExternal';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/contact/external","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultExternal(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultExternal';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/external","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultQueue(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultQueue';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/queue","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantMonitor(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantMonitor';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/monitor","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCallParticipantReplace(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantSnippetRecord(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantSnippetRecord';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantSnippetRecord';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantSnippetRecord';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/snippet/record","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantVoiceConsult(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantVoiceConsult';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantVoiceConsult';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantVoiceConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/voice/consult","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipants(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(n==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCallParticipantsUserUserId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';if(n==null||n==="")throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipantsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/user/{userId}","POST",{conversationId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsCallbackParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantReplace(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallbackParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbacks(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsCallbacks';return this.apiClient.callApi("/api/v2/conversations/callbacks","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallbacksBulkDisconnect(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsCallbacksBulkDisconnect';return this.apiClient.callApi("/api/v2/conversations/callbacks/bulk/disconnect","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallbacksBulkUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsCallbacksBulkUpdate';return this.apiClient.callApi("/api/v2/conversations/callbacks/bulk/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCalls(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsCalls';return this.apiClient.callApi("/api/v2/conversations/calls","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallsUserUserId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';if(n==null)throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/user/{userId}","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsChatCommunicationMessages(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatCommunicationTyping(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsChatParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatParticipantReplace(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(i==null)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChats(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCobrowsesessionParticipantReplace(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCustomattributesSchemas(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsCustomattributesSchemas';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsCustomattributesSearch';return this.apiClient.callApi("/api/v2/conversations/customattributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailInboundmessages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsEmailMessages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsEmailMessagesDraftAttachmentsCopy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(n==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessagesDraftAttachmentsCopy';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/copy","POST",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsEmailParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsEmailParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailParticipantReplace(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailReconnect(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/reconnect","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmails(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsEmails';return this.apiClient.callApi("/api/v2/conversations/emails","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailsAgentless(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsEmailsAgentless';return this.apiClient.callApi("/api/v2/conversations/emails/agentless","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsFaxes(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsFaxes';return this.apiClient.callApi("/api/v2/conversations/faxes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsKeyconfigurations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsKeyconfigurations';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsKeyconfigurationsValidate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsKeyconfigurationsValidate';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageCommunicationMessages(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:n},{useNormalizedMessage:a.useNormalizedMessage},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationMessagesMedia(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media","POST",{conversationId:e,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageCommunicationMessagesMediaUploads(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(i==null)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationMessagesMediaUploads';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/uploads","POST",{conversationId:e,communicationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationSocialmediaMessages(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationSocialmediaMessages';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/socialmedia/messages","POST",{conversationId:e,communicationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationTyping(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(i==null)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageInboundOpenEvent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(n==null)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenEvent';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/event","POST",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageInboundOpenMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(n==null)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/message","POST",{integrationId:e},{prefetchConversationId:i.prefetchConversationId},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageInboundOpenReceipt(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(n==null)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenReceipt';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/receipt","POST",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageInboundOpenStructuredResponse(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';if(n==null)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenStructuredResponse';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/structured/response","POST",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageMessagesBulk(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:n.useNormalizedMessage},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageParticipantMonitor(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantMonitor';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/monitor","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageParticipantReplace(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(i==null)throw'Missing the required parameter "body" when calling postConversationsMessageParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessages';return this.apiClient.callApi("/api/v2/conversations/messages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagesAgentless(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{useNormalizedMessage:n.useNormalizedMessage},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagesInboundOpen(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesInboundOpen';return this.apiClient.callApi("/api/v2/conversations/messages/inbound/open","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsApple(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsApple';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsFacebook(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsFacebook';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsInstagram(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsInstagram';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsOpen(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpen';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsTwitter(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsTwitter';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsWhatsapp(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsapp';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsappEmbeddedsignup';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingSettings';return this.apiClient.callApi("/api/v2/conversations/messaging/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessagingSupportedcontent(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagingSupportedcontent';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsParticipantsAttributesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';return this.apiClient.callApi("/api/v2/conversations/participants/attributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsScreenshareParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSocialParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsSocialParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideoAgentconferenceCommunication(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsVideoAgentconferenceCommunication';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/agentconference/communications/{communicationId}","POST",{conversationId:e,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsVideoParticipantCommunicationWrapup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsVideoParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideosMeetings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsVideosMeetings';return this.apiClient.callApi("/api/v2/conversations/videos/meetings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationCustomattributes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PUT",{conversationId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationCustomattributesBulk(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributesBulk';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/bulk","PUT",{conversationId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationParticipantFlaggedreason(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationSecureattributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(n==null)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationTags(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationTags';if(n==null)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsCallParticipantCommunicationUuidata(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling putConversationsCallParticipantCommunicationUuidata';if(a==null)throw'Missing the required parameter "body" when calling putConversationsCallParticipantCommunicationUuidata';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/uuidata","PUT",{conversationId:e,participantId:n,communicationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putConversationsCallRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsCallbackRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsChatRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsCobrowsesessionRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsCustomattributesSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';if(n==null)throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsEmailMessagesDraft(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(n==null)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsEmailRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsKeyconfiguration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(n==null)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessageRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/apple/{integrationId}","PUT",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}","PUT",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/instagram/{integrationId}","PUT",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}","PUT",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}","PUT",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';if(n==null)throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/identityresolution/integrations/whatsapp/{integrationId}","PUT",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsMessagingSettingsDefault(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putConversationsMessagingSettingsDefault';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingSupportedcontentDefault(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putConversationsMessagingSupportedcontentDefault';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingThreadingtimeline(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putConversationsMessagingThreadingtimeline';return this.apiClient.callApi("/api/v2/conversations/messaging/threadingtimeline","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsScreenshareRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsSocialRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationsVideoRecordingstate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(n==null)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},db=class{constructor(e){this.apiClient=e||k.instance}getDataextensionsCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coretypeName" when calling getDataextensionsCoretype';return this.apiClient.callApi("/api/v2/dataextensions/coretypes/{coretypeName}","GET",{coretypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getDataextensionsCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/dataextensions/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getDataextensionsLimits(e){return e=e||{},this.apiClient.callApi("/api/v2/dataextensions/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},hb=class{constructor(e){this.apiClient=e||k.instance}deleteDataprivacyMaskingrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling deleteDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getDataprivacyMaskingrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","GET",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getDataprivacyMaskingrules(e){return e=e||{},this.apiClient.callApi("/api/v2/dataprivacy/maskingrules","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchDataprivacyMaskingrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postDataprivacyMaskingrules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postDataprivacyMaskingrules';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postDataprivacyMaskingrulesValidate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},gb=class{constructor(e){this.apiClient=e||k.instance}getDownload(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:n.contentDisposition,issueRedirect:n.issueRedirect,redirectToAuth:n.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},mb=class{constructor(e){this.apiClient=e||k.instance}deleteEmailsSettingsThreading(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings/threading","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getEmailsSettingsThreading(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings/threading","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchEmailsSettingsThreading(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings/threading","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},fb=class{constructor(e){this.apiClient=e||k.instance}deleteEmployeeengagementCelebration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling deleteEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","DELETE",{celebrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getEmployeeengagementCelebrations(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeengagement/celebrations","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getEmployeeengagementRecognition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recognitionId" when calling getEmployeeengagementRecognition';return this.apiClient.callApi("/api/v2/employeeengagement/recognitions/{recognitionId}","GET",{recognitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getEmployeeengagementRecognitions(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeengagement/recognitions","GET",{},{direction:e.direction,recipient:e.recipient,dateStart:e.dateStart,dateEnd:e.dateEnd,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchEmployeeengagementCelebration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(n==null)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postEmployeeengagementRecognitions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';return this.apiClient.callApi("/api/v2/employeeengagement/recognitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},wb=class{constructor(e){this.apiClient=e||k.instance}postEventsConversations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postEventsConversations';return this.apiClient.callApi("/api/v2/events/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEventsRoutingCustomkpiattributions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postEventsRoutingCustomkpiattributions';return this.apiClient.callApi("/api/v2/events/routing/customkpiattributions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEventsUsersPresence(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postEventsUsersPresence';return this.apiClient.callApi("/api/v2/events/users/presence","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEventsUsersRoutingstatus(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';return this.apiClient.callApi("/api/v2/events/users/routingstatus","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},vb=class{constructor(e){this.apiClient=e||k.instance}deleteExternalcontactsContact(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","DELETE",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsContactNote(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteExternalcontactsContactsSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling deleteExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsExternalsource(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling deleteExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","DELETE",{externalSourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsImportCsvSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","DELETE",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsImportSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","DELETE",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganization(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","DELETE",{externalOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganizationNote(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteExternalcontactsOrganizationTrustor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationTrustor';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor","DELETE",{externalOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsRelationship(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling deleteExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","DELETE",{relationshipId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContact(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","GET",{contactId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactIdentifiers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","GET",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactJourneySegments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySegments';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/segments","GET",{contactId:e},{includeMerged:n.includeMerged,limit:n.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactJourneySessions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySessions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/sessions","GET",{contactId:e},{pageSize:n.pageSize,after:n.after,includeMerged:n.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactNote(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactNotes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","GET",{contactId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactUnresolved(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactUnresolved';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/unresolved","GET",{contactId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContacts(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/contacts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsContactsExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "exportId" when calling getExternalcontactsContactsExport';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/exports/{exportId}","GET",{exportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsExports(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/contacts/exports","GET",{},{divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsContactsSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getExternalcontactsContactsSchemaVersion';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactsSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsContactsSchemasCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coreTypeName" when calling getExternalcontactsContactsSchemasCoretype';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/coretypes/{coreTypeName}","GET",{coreTypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemasCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsContactsSchemasLimits(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsExternalsource(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling getExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","GET",{externalSourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling getExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","GET",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsImportCsvSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings","GET",{},{after:e.after,pageSize:e.pageSize,externalSettingsId:e.externalSettingsId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvUploadDetails(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "uploadId" when calling getExternalcontactsImportCsvUploadDetails';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads/{uploadId}/details","GET",{uploadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsImportCsvUploadPreview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "uploadId" when calling getExternalcontactsImportCsvUploadPreview';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads/{uploadId}/preview","GET",{uploadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsImportJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","GET",{jobId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsImportJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/jobs","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,jobStatus:e.jobStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling getExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","GET",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganization(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","GET",{externalOrganizationId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),includeTrustors:n.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationContacts(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationContacts';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/contacts","GET",{externalOrganizationId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,q:n.q,sortOrder:n.sortOrder,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationIdentifiers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","GET",{externalOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationNote(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationNotes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","GET",{externalOrganizationId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationRelationships(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships","GET",{externalOrganizationId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getExternalcontactsOrganizationsSchemaVersion';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationsSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersions';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchemasCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coreTypeName" when calling getExternalcontactsOrganizationsSchemasCoretype';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/coretypes/{coreTypeName}","GET",{coreTypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemasCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchemasLimits(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsRelationship(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling getExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","GET",{relationshipId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsReversewhitepageslookup(e,n){if(n=n||{},e==null)throw'Missing the required parameter "lookupVal" when calling getExternalcontactsReversewhitepageslookup';return this.apiClient.callApi("/api/v2/externalcontacts/reversewhitepageslookup","GET",{},{lookupVal:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),divisionId:n.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsScanContacts(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/contacts","GET",{},{limit:e.limit,cursor:e.cursor,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsScanContactsDivisionviewsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/contacts/divisionviews/all","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsScanNotes(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/notes","GET",{},{limit:e.limit,cursor:e.cursor,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsScanNotesDivisionviewsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/notes/divisionviews/all","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsScanOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/organizations","GET",{},{limit:e.limit,cursor:e.cursor,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsScanOrganizationsDivisionviewsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/organizations/divisionviews/all","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsScanRelationships(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/relationships","GET",{},{limit:e.limit,cursor:e.cursor,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsScanRelationshipsDivisionviewsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/relationships/divisionviews/all","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchExternalcontactsContact(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContact';if(n==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PATCH",{contactId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchExternalcontactsContactIdentifiers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(n==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchExternalcontactsOrganizationIdentifiers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';if(n==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","PATCH",{externalOrganizationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkContacts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContacts';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContactsAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContactsDivisionviews(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsDivisionviews';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/divisionviews","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContactsEnrich(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/enrich","POST",{},{dryRun:n.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContactsRemove(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContactsUnresolved(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUnresolved';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/unresolved","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContactsUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkNotes(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotes';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkNotesAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkNotesRemove(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkNotesUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkOrganizations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizations';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkOrganizationsAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkOrganizationsDivisionviews(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsDivisionviews';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/divisionviews","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkOrganizationsEnrich(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/enrich","POST",{},{dryRun:n.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkOrganizationsRemove(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkOrganizationsUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkRelationships(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkRelationshipsAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkRelationshipsRemove(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkRelationshipsUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactJourneySegments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactJourneySegments';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/segments","POST",{contactId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactNotes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(n==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactPromotion(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactPromotion';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/promotion","POST",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContacts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContacts';return this.apiClient.callApi("/api/v2/externalcontacts/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactsEnrich(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/enrich","POST",{},{dryRun:n.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactsExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsExports';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/exports","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactsMerge(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsMerge';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/merge","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactsSchemas(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsSchemas';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsExternalsources(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsExternalsources';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsIdentifierlookup(e,n){if(n=n||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsIdentifierlookupContacts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupContacts';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup/contacts","POST",{},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsIdentifierlookupOrganizations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupOrganizations';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup/organizations","POST",{},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsImportCsvJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvJobs';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsImportCsvSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvSettings';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsImportCsvUploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvUploads';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsImportJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsImportJobs';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsImportSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsImportSettings';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsMergeContacts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsMergeContacts';return this.apiClient.callApi("/api/v2/externalcontacts/merge/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizationNotes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(n==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsOrganizations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizations';return this.apiClient.callApi("/api/v2/externalcontacts/organizations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizationsEnrich(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/enrich","POST",{},{dryRun:n.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizationsSchemas(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsSchemas';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsRelationships(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/relationships","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsContact(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsContactNote(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","PUT",{contactId:e,noteId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsContactsSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsConversation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsExternalsource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsImportCsvSetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsImportJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsImportSetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsOrganization(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsOrganizationNote(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","PUT",{externalOrganizationId:e,noteId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsOrganizationTrustorTrustorId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(n==null||n==="")throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsOrganizationsSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsRelationship(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(n==null)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Cb=class{constructor(e){this.apiClient=e||k.instance}deleteFaxDocument(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling deleteFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","DELETE",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFaxDocument(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling getFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","GET",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFaxDocumentContent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling getFaxDocumentContent';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}/content","GET",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putFaxDocument(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling putFaxDocument';if(n==null)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},Ab=class{constructor(e){this.apiClient=e||k.instance}deleteAnalyticsFlowsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsFlowsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsFlowsObservationsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/flows/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},bb=class{constructor(e){this.apiClient=e||k.instance}deleteEmployeeperformanceExternalmetricsDefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling deleteEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","DELETE",{metricId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteGamificationContest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling deleteGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","DELETE",{contestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getEmployeeperformanceExternalmetricsDefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling getEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","GET",{metricId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getEmployeeperformanceExternalmetricsDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationContest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","GET",{contestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationContestAgentsScores(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScores';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/agents/scores","GET",{contestId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,workday:n.workday,returnsView:n.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationContestAgentsScoresMe(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresMe';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/agents/scores/me","GET",{contestId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,workday:n.workday,returnsView:n.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationContestAgentsScoresTrends(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresTrends';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/agents/scores/trends","GET",{contestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationContestAgentsScoresTrendsMe(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresTrendsMe';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/agents/scores/trends/me","GET",{contestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationContestPrizeimage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';if(n==null||n==="")throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}","GET",{contestId:e,prizeImageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContests(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/contests","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,dateStart:e.dateStart,dateEnd:e.dateEnd,status:this.apiClient.buildCollectionParam(e.status,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationContestsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/contests/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,dateStart:e.dateStart,dateEnd:e.dateEnd,status:this.apiClient.buildCollectionParam(e.status,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder,view:e.view},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationInsights(e,n,i,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsights';if(a==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsights';if(r==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsights';return this.apiClient.callApi("/api/v2/gamification/insights","GET",{},{filterType:e,filterId:n,granularity:i,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r,pageSize:s.pageSize,pageNumber:s.pageNumber,sortKey:s.sortKey,sortMetricId:s.sortMetricId,sortOrder:s.sortOrder,userIds:s.userIds,reportsTo:s.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsDetails(e,n,i,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsDetails';if(a==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsDetails';if(r==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsDetails';return this.apiClient.callApi("/api/v2/gamification/insights/details","GET",{},{filterType:e,filterId:n,granularity:i,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsGroupsTrends(e,n,i,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsGroupsTrends';if(a==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsGroupsTrends';if(r==null)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrends';if(s==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrends';if(o==null)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsGroupsTrends';return this.apiClient.callApi("/api/v2/gamification/insights/groups/trends","GET",{},{filterType:e,filterId:n,granularity:i,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsGroupsTrendsAll(e,n,i,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsGroupsTrendsAll';if(a==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(r==null)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(s==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(o==null)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';return this.apiClient.callApi("/api/v2/gamification/insights/groups/trends/all","GET",{},{filterType:e,filterId:n,granularity:i,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsManagers(e,n,i,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsManagers';if(a==null)throw'Missing the required parameter "startWorkday" when calling getGamificationInsightsManagers';return this.apiClient.callApi("/api/v2/gamification/insights/managers","GET",{},{filterType:e,filterId:n,granularity:i,startWorkday:a,pageSize:r.pageSize,pageNumber:r.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsMembers(e,n,i,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsMembers';if(a==null)throw'Missing the required parameter "startWorkday" when calling getGamificationInsightsMembers';return this.apiClient.callApi("/api/v2/gamification/insights/members","GET",{},{filterType:e,filterId:n,granularity:i,startWorkday:a,reportsTo:r.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsRankings(e,n,i,a,r,s,o){if(o=o||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsRankings';if(a==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsRankings';if(r==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsRankings';if(s==null)throw'Missing the required parameter "sortKey" when calling getGamificationInsightsRankings';return this.apiClient.callApi("/api/v2/gamification/insights/rankings","GET",{},{filterType:e,filterId:n,granularity:i,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r,sortKey:s,sortMetricId:o.sortMetricId,sectionSize:o.sectionSize,userIds:o.userIds,reportsTo:o.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsTrends(e,n,i,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(i==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsTrends';if(a==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsTrends';if(r==null)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsTrends';if(s==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsTrends';if(o==null)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsTrends';return this.apiClient.callApi("/api/v2/gamification/insights/trends","GET",{},{filterType:e,filterId:n,granularity:i,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsUserDetails(e,n,i,a,r,s,o){if(o=o||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(n==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsUserDetails';if(a==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsUserDetails';if(r==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsUserDetails';if(s==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsUserDetails';return this.apiClient.callApi("/api/v2/gamification/insights/users/{userId}/details","GET",{userId:e},{filterType:n,filterId:i,granularity:a,comparativePeriodStartWorkday:r,primaryPeriodStartWorkday:s},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsUserTrends(e,n,i,a,r,s,o,l,u){if(u=u||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(n==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsUserTrends';if(a==null)throw'Missing the required parameter "granularity" when calling getGamificationInsightsUserTrends';if(r==null)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsUserTrends';if(s==null)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsUserTrends';if(o==null)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsUserTrends';if(l==null)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsUserTrends';return this.apiClient.callApi("/api/v2/gamification/insights/users/{userId}/trends","GET",{userId:e},{filterType:n,filterId:i,granularity:a,comparativePeriodStartWorkday:r,comparativePeriodEndWorkday:s,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],u.customHeaders)}getGamificationLeaderboard(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(n==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:n,metricId:i.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationLeaderboardAll(e,n,i,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboardAll';if(a==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboardAll';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all","GET",{},{filterType:e,filterId:n,startWorkday:i,endWorkday:a,metricId:r.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationLeaderboardAllBestpoints(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationLeaderboardBestpoints(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/leaderboard/bestpoints","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationMetricdefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricDefinitionId" when calling getGamificationMetricdefinition';return this.apiClient.callApi("/api/v2/gamification/metricdefinitions/{metricDefinitionId}","GET",{metricDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationMetricdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/metricdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationProfile(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","GET",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMembers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","GET",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetric(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(n==null||n==="")throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:n},{workday:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationProfileMetrics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","GET",{profileId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),workday:n.workday,metricIds:n.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetricsObjectivedetails(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetricsObjectivedetails';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/objectivedetails","GET",{profileId:e},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfiles(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/profiles","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationProfilesUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationProfilesUser';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}","GET",{userId:e},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfilesUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/profiles/users/me","GET",{},{workday:e.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationScorecards(e,n){if(n=n||{},e==null)throw'Missing the required parameter "workday" when calling getGamificationScorecards';return this.apiClient.callApi("/api/v2/gamification/scorecards","GET",{},{workday:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsAttendance(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(n==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsBestpoints(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/scorecards/bestpoints","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationScorecardsPointsAlltime(e,n){if(n=n||{},e==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsAlltime';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/alltime","GET",{},{endWorkday:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsPointsAverage(e,n){if(n=n||{},e==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsPointsAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/average","GET",{},{workday:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsPointsTrends(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(n==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:n,dayOfWeek:i.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsProfileMetricUserValuesTrends(e,n,i,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(n==null||n==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(a==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(r==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricUserValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/users/{userId}/values/trends","GET",{profileId:e,metricId:n,userId:i},{startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricUsersValuesTrends(e,n,i,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(n==null||n==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(a==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(r==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/users/values/trends","GET",{profileId:e,metricId:n},{filterType:i,filterId:s.filterId,startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricValuesTrends(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(n==null||n==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricValuesTrends';if(a==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/values/trends","GET",{profileId:e,metricId:n},{filterType:r.filterType,startWorkday:i,endWorkday:a,referenceWorkday:r.referenceWorkday,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(n==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:n,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsUserAttendance(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(n==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/attendance","GET",{userId:e},{startWorkday:n,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserBestpoints(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserBestpoints';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/bestpoints","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserPointsAlltime(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(n==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserPointsAlltime';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/points/alltime","GET",{userId:e},{endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsUserPointsTrends(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(n==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/points/trends","GET",{userId:e},{startWorkday:n,endWorkday:i,dayOfWeek:a.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserValuesTrends(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(n==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/values/trends","GET",{userId:e},{startWorkday:n,endWorkday:i,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersPointsAverage(e,n,i,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUsersPointsAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/points/average","GET",{},{filterType:e,filterId:n,workday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesAverage(e,n,i,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUsersValuesAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/values/average","GET",{},{filterType:e,filterId:n,workday:i,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesTrends(e,n,i,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(n==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUsersValuesTrends';if(a==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUsersValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/values/trends","GET",{},{filterType:e,filterId:n,startWorkday:i,endWorkday:a,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsValuesAverage(e,n){if(n=n||{},e==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsValuesAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/average","GET",{},{workday:e,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsValuesTrends(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(n==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:i.filterType,referenceWorkday:i.referenceWorkday,startWorkday:e,endWorkday:n,timeZone:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/status","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGamificationTemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "templateId" when calling getGamificationTemplate';return this.apiClient.callApi("/api/v2/gamification/templates/{templateId}","GET",{templateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationTemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/templates","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchEmployeeperformanceExternalmetricsDefinition(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(n==null)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchGamificationContest(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling patchGamificationContest';if(n==null)throw'Missing the required parameter "body" when calling patchGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PATCH",{contestId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postEmployeeperformanceExternalmetricsData(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/data","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postEmployeeperformanceExternalmetricsDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postGamificationContests(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGamificationContests';return this.apiClient.callApi("/api/v2/gamification/contests","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationContestsUploadsPrizeimages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGamificationContestsUploadsPrizeimages';return this.apiClient.callApi("/api/v2/gamification/contests/uploads/prizeimages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileActivate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileActivate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/activate","POST",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileDeactivate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileDeactivate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/deactivate","POST",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMembers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(n==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfileMembersValidate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(n==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfileMetricLink(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(n==null||n==="")throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetricLink';return this.apiClient.callApi("/api/v2/gamification/profiles/{sourceProfileId}/metrics/{sourceMetricId}/link","POST",{sourceProfileId:e,sourceMetricId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGamificationProfileMetrics(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(n==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfiles(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:n.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfilesUserQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(n==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfilesUsersMeQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUsersMeQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/me/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationContest(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling putGamificationContest';if(n==null)throw'Missing the required parameter "body" when calling putGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PUT",{contestId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGamificationProfile(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationProfileMetric(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(n==null||n==="")throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(i==null)throw'Missing the required parameter "body" when calling putGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","PUT",{profileId:e,metricId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putGamificationStatus(e,n){if(n=n||{},e==null)throw'Missing the required parameter "status" when calling putGamificationStatus';return this.apiClient.callApi("/api/v2/gamification/status","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},yb=class{constructor(e){this.apiClient=e||k.instance}getGdprRequest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "requestId" when calling getGdprRequest';return this.apiClient.callApi("/api/v2/gdpr/requests/{requestId}","GET",{requestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGdprRequests(e){return e=e||{},this.apiClient.callApi("/api/v2/gdpr/requests","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGdprSubjects(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(n==null)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGdprRequests(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:n.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Pb=class{constructor(e){this.apiClient=e||k.instance}getGeolocationsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/geolocations/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUserGeolocation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(n==null||n==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchGeolocationsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchGeolocationsSettings';return this.apiClient.callApi("/api/v2/geolocations/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserGeolocation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(n==null||n==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(i==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},jb=class{constructor(e){this.apiClient=e||k.instance}deleteGreeting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling deleteGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","DELETE",{greetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGreeting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling getGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","GET",{greetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGreetingDownloads(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling getGreetingDownloads';return this.apiClient.callApi("/api/v2/greetings/{greetingId}/downloads","GET",{greetingId:e},{formatId:n.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGreetingGroupsDownloads(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling getGreetingGroupsDownloads';return this.apiClient.callApi("/api/v2/greetings/{greetingId}/groups/downloads","GET",{greetingId:e},{formatId:n.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGreetingMedia(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling getGreetingMedia';return this.apiClient.callApi("/api/v2/greetings/{greetingId}/media","GET",{greetingId:e},{formatId:n.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGreetingUsersDownloads(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling getGreetingUsersDownloads';return this.apiClient.callApi("/api/v2/greetings/{greetingId}/users/downloads","GET",{greetingId:e},{formatId:n.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGreetings(e){return e=e||{},this.apiClient.callApi("/api/v2/greetings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGreetingsDefaults(e){return e=e||{},this.apiClient.callApi("/api/v2/greetings/defaults","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGroupGreetings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","GET",{groupId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroupGreetingsDefaults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserGreetings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserGreetingsDefaults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGreetings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGreetings';return this.apiClient.callApi("/api/v2/greetings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroupGreetings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(n==null)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserGreetings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserGreetings';if(n==null)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGreeting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling putGreeting';if(n==null)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGreetingsDefaults(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putGreetingsDefaults';return this.apiClient.callApi("/api/v2/greetings/defaults","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGroupGreetingsDefaults(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(n==null)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserGreetingsDefaults(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(n==null)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Sb=class{constructor(e){this.apiClient=e||k.instance}deleteGroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","DELETE",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteGroupDynamicsettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","DELETE",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteGroupMembers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(n==null)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFieldconfig(e,n){if(n=n||{},e==null)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroupDynamicsettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroupIndividuals(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getGroupIndividuals';return this.apiClient.callApi("/api/v2/groups/{groupId}/individuals","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroupMembers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","GET",{groupId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroupProfile(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getGroupProfile';return this.apiClient.callApi("/api/v2/groups/{groupId}/profile","GET",{groupId:e},{fields:n.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/groups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGroupsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getProfilesGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/profiles/groups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postGroupMembers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupMembers';if(n==null)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGroups(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGroups';return this.apiClient.callApi("/api/v2/groups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroupsDynamicsettingsPreview(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGroupsDynamicsettingsPreview';return this.apiClient.callApi("/api/v2/groups/dynamicsettings/preview","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroupsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGroupDynamicsettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(n==null)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Ob=class{constructor(e){this.apiClient=e||k.instance}deleteIdentityprovider(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling deleteIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","DELETE",{providerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteIdentityprovidersAdfs(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/adfs","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersCic(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/cic","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersGeneric(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/generic","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersGsuite(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/gsuite","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersIdentitynow(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/identitynow","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersOkta(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/okta","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersOnelogin(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/onelogin","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersPing(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/ping","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersPurecloud(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/purecloud","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersPureengage(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/pureengage","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteIdentityprovidersSalesforce(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/salesforce","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovider(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling getIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","GET",{providerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIdentityproviders(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersAdfs(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/adfs","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersCic(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/cic","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersGeneric(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/generic","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersGsuite(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/gsuite","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersIdentitynow(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/identitynow","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersOkta(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/okta","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersOnelogin(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/onelogin","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersPing(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/ping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersPurecloud(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/purecloud","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersPureengage(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/pureengage","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIdentityprovidersSalesforce(e){return e=e||{},this.apiClient.callApi("/api/v2/identityproviders/salesforce","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postIdentityproviders(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIdentityproviders';return this.apiClient.callApi("/api/v2/identityproviders","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovider(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(n==null)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIdentityprovidersAdfs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersAdfs';return this.apiClient.callApi("/api/v2/identityproviders/adfs","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersCic(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersCic';return this.apiClient.callApi("/api/v2/identityproviders/cic","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersGeneric(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersGeneric';return this.apiClient.callApi("/api/v2/identityproviders/generic","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersGsuite(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersGsuite';return this.apiClient.callApi("/api/v2/identityproviders/gsuite","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersIdentitynow(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersIdentitynow';return this.apiClient.callApi("/api/v2/identityproviders/identitynow","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersOkta(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersOkta';return this.apiClient.callApi("/api/v2/identityproviders/okta","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersOnelogin(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersOnelogin';return this.apiClient.callApi("/api/v2/identityproviders/onelogin","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersPing(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersPing';return this.apiClient.callApi("/api/v2/identityproviders/ping","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersPurecloud(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersPurecloud';return this.apiClient.callApi("/api/v2/identityproviders/purecloud","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersPureengage(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersPureengage';return this.apiClient.callApi("/api/v2/identityproviders/pureengage","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersSalesforce(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';return this.apiClient.callApi("/api/v2/identityproviders/salesforce","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xb=class{constructor(e){this.apiClient=e||k.instance}getInfrastructureascodeAccelerator(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "acceleratorId" when calling getInfrastructureascodeAccelerator';return this.apiClient.callApi("/api/v2/infrastructureascode/accelerators/{acceleratorId}","GET",{acceleratorId:e},{preferredLanguage:n.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getInfrastructureascodeAccelerators(e){return e=e||{},this.apiClient.callApi("/api/v2/infrastructureascode/accelerators","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,description:e.description,origin:e.origin,type:e.type,classification:e.classification,tags:e.tags},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getInfrastructureascodeJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getInfrastructureascodeJob';return this.apiClient.callApi("/api/v2/infrastructureascode/jobs/{jobId}","GET",{jobId:e},{details:n.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getInfrastructureascodeJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/infrastructureascode/jobs","GET",{},{maxResults:e.maxResults,includeErrors:e.includeErrors,sortBy:e.sortBy,sortOrder:e.sortOrder,acceleratorId:e.acceleratorId,submittedBy:e.submittedBy,status:e.status},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postInfrastructureascodeJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';return this.apiClient.callApi("/api/v2/infrastructureascode/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Tb=class{constructor(e){this.apiClient=e||k.instance}deleteIntegration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling deleteIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteIntegrationsAction(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling deleteIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","DELETE",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteIntegrationsActionDraft(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling deleteIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","DELETE",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteIntegrationsCredential(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling deleteIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","DELETE",{credentialId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),nextPage:n.nextPage,previousPage:n.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationConfigCurrent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationConfigCurrent';return this.apiClient.callApi("/api/v2/integrations/{integrationId}/config/current","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),integrationType:e.integrationType,reportedState:e.reportedState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsAction(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","GET",{actionId:e},{expand:n.expand,flatten:n.flatten,includeConfig:n.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraft(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","GET",{actionId:e},{expand:n.expand,flatten:n.flatten,includeConfig:n.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftFunction(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(n==null||n==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}","GET",{actionId:e,fileName:n},{flatten:i.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraftTemplate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(n==null||n==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/templates/{fileName}","GET",{actionId:e,fileName:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],i.customHeaders)}getIntegrationsActionDraftValidation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftValidation';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/validation","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionFunction(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/function","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(n==null||n==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:n},{flatten:i.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionTemplate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(n==null||n==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],i.customHeaders)}getIntegrationsActions(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,category:e.category,name:e.name,ids:e.ids,secure:e.secure,includeAuthActions:e.includeAuthActions,includeConfig:e.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsActionsCategories(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/categories","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,secure:e.secure},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsActionsCertificates(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/certificates","GET",{},{status:e.status,type:e.type},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsActionsCertificatesTruststore(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/certificates/truststore","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsActionsDrafts(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/drafts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,category:e.category,name:e.name,ids:e.ids,secure:e.secure,includeAuthActions:e.includeAuthActions,includeConfig:e.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsActionsFunctionsRuntimes(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/functions/runtimes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsBotconnectorBot(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';if(n==null||n==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:n},{version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorBots(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBots';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots","GET",{integrationId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorBotsSummaries(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBotsSummaries';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/summaries","GET",{integrationId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBot(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(n==null||n==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:n},{version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(n==null||n==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}/versions","GET",{integrationId:e,botId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBots(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotsSummaries';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/summaries","GET",{integrationId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredential(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling getIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","GET",{credentialId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsCredentials(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredentialsListing(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials/listing","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredentialsTypes(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials/types","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechAudioconnector(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/audioconnector","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechAudioconnectorIntegrationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsSpeechAudioconnectorIntegrationId';return this.apiClient.callApi("/api/v2/integrations/speech/audioconnector/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechDialogflowAgent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getIntegrationsSpeechDialogflowAgent';return this.apiClient.callApi("/api/v2/integrations/speech/dialogflow/agents/{agentId}","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechDialogflowAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/dialogflow/agents","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechDialogflowcxAgent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getIntegrationsSpeechDialogflowcxAgent';return this.apiClient.callApi("/api/v2/integrations/speech/dialogflowcx/agents/{agentId}","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechDialogflowcxAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/dialogflowcx/agents","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechLexBotAlias(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "aliasId" when calling getIntegrationsSpeechLexBotAlias';return this.apiClient.callApi("/api/v2/integrations/speech/lex/bot/alias/{aliasId}","GET",{aliasId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechLexBotBotIdAliases(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechLexBotBotIdAliases';return this.apiClient.callApi("/api/v2/integrations/speech/lex/bot/{botId}/aliases","GET",{botId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,status:n.status,name:n.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechLexBots(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/lex/bots","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechLexv2BotAlias(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "aliasId" when calling getIntegrationsSpeechLexv2BotAlias';return this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bot/alias/{aliasId}","GET",{aliasId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechLexv2BotBotIdAliases(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechLexv2BotBotIdAliases';return this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bot/{botId}/aliases","GET",{botId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,status:n.status,name:n.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechLexv2Bots(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bots","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBot(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(n==null||n==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}","GET",{nuanceIntegrationId:e,botId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),targetChannel:i.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(n==null||n==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}","GET",{nuanceIntegrationId:e,botId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(n==null||n==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}/results","GET",{nuanceIntegrationId:e,botId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots","GET",{nuanceIntegrationId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,onlyRegisteredBots:n.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}","GET",{nuanceIntegrationId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}/results","GET",{nuanceIntegrationId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechSttEngine(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechSttEngine';return this.apiClient.callApi("/api/v2/integrations/speech/stt/engines/{engineId}","GET",{engineId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechSttEngines(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/stt/engines","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechTtsEngine(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngine';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}","GET",{engineId:e},{includeVoices:n.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngineVoice(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(n==null||n==="")throw'Missing the required parameter "voiceId" when calling getIntegrationsSpeechTtsEngineVoice';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}/voices/{voiceId}","GET",{engineId:e,voiceId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechTtsEngineVoices(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoices';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}/voices","GET",{engineId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngines(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/tts/engines","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,includeVoices:e.includeVoices,name:e.name,language:e.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsSpeechTtsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/tts/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsType(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsType';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}","GET",{typeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsTypeConfigschema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(n==null||n==="")throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsTypes(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/types","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsUnifiedcommunicationsClientapp(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling getIntegrationsUnifiedcommunicationsClientapp';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/clientapps/{ucIntegrationId}","GET",{ucIntegrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsUnifiedcommunicationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsUserapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/userapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,appHost:e.appHost},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchIntegration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),nextPage:n.nextPage,previousPage:n.previousPage},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntegrationsAction(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(n==null)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntegrationsActionDraft(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(n==null)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postIntegrationsActionDraft(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","POST",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(n==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function/upload","POST",{actionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsActionDraftPublish(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(n==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsActionDraftTest(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(n==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/test","POST",{actionId:e},{flatten:i.flatten},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsActionExecute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(n==null)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:i.flatten},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsActionTest(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(n==null)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:i.flatten},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsActions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntegrationsActions';return this.apiClient.callApi("/api/v2/integrations/actions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionsDrafts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntegrationsActionsDrafts';return this.apiClient.callApi("/api/v2/integrations/actions/drafts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsBotconnectorsIncomingMessages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntegrationsBotconnectorsIncomingMessages';return this.apiClient.callApi("/api/v2/integrations/botconnectors/incoming/messages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsBotconnectorsOutgoingMessages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntegrationsBotconnectorsOutgoingMessages';return this.apiClient.callApi("/api/v2/integrations/botconnectors/outgoing/messages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsCredentials(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(n==null||n==="")throw'Missing the required parameter "botId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs","POST",{nuanceIntegrationId:e,botId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs","POST",{nuanceIntegrationId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,onlyRegisteredBots:n.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(n==null)throw'Missing the required parameter "settings" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/validate","POST",{nuanceIntegrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsWebhookEvents(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';if(n==null)throw'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';return this.apiClient.callApi("/api/v2/integrations/webhooks/{tokenId}/events","POST",{tokenId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationConfigCurrent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationConfigCurrent';return this.apiClient.callApi("/api/v2/integrations/{integrationId}/config/current","PUT",{integrationId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsActionDraftFunction(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(n==null)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsBotconnectorIntegrationIdBots(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(n==null)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsCredential(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(n==null)throw'Missing the required parameter "settings" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/settings","PUT",{nuanceIntegrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsSpeechTtsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putIntegrationsSpeechTtsSettings';return this.apiClient.callApi("/api/v2/integrations/speech/tts/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsUnifiedcommunicationThirdpartypresences(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(n==null)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Mb=class{constructor(e){this.apiClient=e||k.instance}deleteIntentsCategory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling deleteIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","DELETE",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteIntentsCustomerintent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling deleteIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","DELETE",{customerIntentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntentsAssignmentsExternalcontact(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling getIntentsAssignmentsExternalcontact';return this.apiClient.callApi("/api/v2/intents/assignments/externalcontacts/{externalContactId}","GET",{externalContactId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntentsCategories(e){return e=e||{},this.apiClient.callApi("/api/v2/intents/categories","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntentsCategory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling getIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","GET",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntentsCustomerintent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling getIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","GET",{customerIntentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntentsCustomerintentSourceintents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling getIntentsCustomerintentSourceintents';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}/sourceintents","GET",{customerIntentId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,queryValue:n.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntentsCustomerintents(e){return e=e||{},this.apiClient.callApi("/api/v2/intents/customerintents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,queryValue:e.queryValue,categoryId:e.categoryId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntentsSourceintents(e){return e=e||{},this.apiClient.callApi("/api/v2/intents/sourceintents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,type:e.type,sourceId:e.sourceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchIntentsCategory(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling patchIntentsCategory';if(n==null)throw'Missing the required parameter "body" when calling patchIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","PATCH",{categoryId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntentsCustomerintent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling patchIntentsCustomerintent';if(n==null)throw'Missing the required parameter "body" when calling patchIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","PATCH",{customerIntentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntentsAssignmentsExternalcontactCustomerintentAssignment(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(n==null||n==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(i==null)throw'Missing the required parameter "body" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';return this.apiClient.callApi("/api/v2/intents/assignments/externalcontacts/{externalContactId}/customerintents/{customerIntentId}/assignment","POST",{externalContactId:e,customerIntentId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postIntentsCategories(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntentsCategories';return this.apiClient.callApi("/api/v2/intents/categories","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintentSourceintentsBulkAdd(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkAdd';if(n==null)throw'Missing the required parameter "body" when calling postIntentsCustomerintentSourceintentsBulkAdd';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}/sourceintents/bulk/add","POST",{customerIntentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntentsCustomerintentSourceintentsBulkRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkRemove';if(n==null)throw'Missing the required parameter "body" when calling postIntentsCustomerintentSourceintentsBulkRemove';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}/sourceintents/bulk/remove","POST",{customerIntentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntentsCustomerintents(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntentsCustomerintents';return this.apiClient.callApi("/api/v2/intents/customerintents","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Eb=class{constructor(e){this.apiClient=e||k.instance}deleteAnalyticsJourneysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyActionmap(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling deleteJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","DELETE",{actionMapId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyActiontemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling deleteJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","DELETE",{actionTemplateId:e},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyExternaleventsConfiguration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configId" when calling deleteJourneyExternaleventsConfiguration';return this.apiClient.callApi("/api/v2/journey/externalevents/configurations/{configId}","DELETE",{configId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyExternaleventsSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling deleteJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyOutcome(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling deleteJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","DELETE",{outcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyOutcomesPredictor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling deleteJourneyOutcomesPredictor';return this.apiClient.callApi("/api/v2/journey/outcomes/predictors/{predictorId}","DELETE",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneySegment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling deleteJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","DELETE",{segmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyView(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling deleteJourneyView';return this.apiClient.callApi("/api/v2/journey/views/{viewId}","DELETE",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteJourneyViewSchedules(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling deleteJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","DELETE",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsJourneysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactJourneySegments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySegments';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/segments","GET",{contactId:e},{includeMerged:n.includeMerged,limit:n.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactJourneySessions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySessions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/sessions","GET",{contactId:e},{pageSize:n.pageSize,after:n.after,includeMerged:n.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyActionmap(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling getJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","GET",{actionMapId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyActionmaps(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actionmaps","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,filterField:e.filterField,filterValue:e.filterValue,actionMapIds:this.apiClient.buildCollectionParam(e.actionMapIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyActionmapsEstimatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJob';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyActionmapsEstimatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJobResults';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyActiontarget(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling getJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","GET",{actionTargetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyActiontargets(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontargets","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyActiontemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling getJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","GET",{actionTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyActiontemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontemplates","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,mediaType:e.mediaType,state:e.state,queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyDeploymentCustomerPing(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(n==null||n==="")throw'Missing the required parameter "customerCookieId" when calling getJourneyDeploymentCustomerPing';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/customers/{customerCookieId}/ping","GET",{deploymentId:e,customerCookieId:n},{dl:i.dl,dt:i.dt,appNamespace:i.appNamespace,sessionId:i.sessionId,sinceLastBeaconMilliseconds:i.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyExternaleventsConfiguration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configId" when calling getJourneyExternaleventsConfiguration';return this.apiClient.callApi("/api/v2/journey/externalevents/configurations/{configId}","GET",{configId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsConfigurations(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/externalevents/configurations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyExternaleventsSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getJourneyExternaleventsSchemaVersion';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyExternaleventsSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersions';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/externalevents/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyExternaleventsSchemasCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coreTypeName" when calling getJourneyExternaleventsSchemasCoretype';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/coretypes/{coreTypeName}","GET",{coreTypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemasCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/externalevents/schemas/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyExternaleventsSchemasLimits(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/externalevents/schemas/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyOutcome(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling getJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","GET",{outcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,outcomeIds:this.apiClient.buildCollectionParam(e.outcomeIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyOutcomesAttributionsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getJourneyOutcomesAttributionsJob';return this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyOutcomesAttributionsJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getJourneyOutcomesAttributionsJobResults';return this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyOutcomesPredictor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getJourneyOutcomesPredictor';return this.apiClient.callApi("/api/v2/journey/outcomes/predictors/{predictorId}","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyOutcomesPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes/predictors","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneySegment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling getJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","GET",{segmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneySegments(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/segments","GET",{},{sortBy:e.sortBy,pageSize:e.pageSize,pageNumber:e.pageNumber,isActive:e.isActive,segmentIds:this.apiClient.buildCollectionParam(e.segmentIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneySession(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getJourneySession';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}","GET",{sessionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneySessionEvents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getJourneySessionEvents';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}/events","GET",{sessionId:e},{pageSize:n.pageSize,after:n.after,eventType:n.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneySessionOutcomescores(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getJourneySessionOutcomescores';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}/outcomescores","GET",{sessionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyView(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyView';return this.apiClient.callApi("/api/v2/journey/views/{viewId}","GET",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewSchedules(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","GET",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyViewVersionChart(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(n==null||n==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(i==null||i==="")throw'Missing the required parameter "chartId" when calling getJourneyViewVersionChart';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}","GET",{viewId:e,journeyViewVersion:n,chartId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionChartVersion(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(n==null||n==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(i==null||i==="")throw'Missing the required parameter "chartId" when calling getJourneyViewVersionChartVersion';if(a==null||a==="")throw'Missing the required parameter "chartVersion" when calling getJourneyViewVersionChartVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}/versions/{chartVersion}","GET",{viewId:e,journeyViewVersion:n,chartId:i,chartVersion:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(n==null||n==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJob';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}","GET",{viewId:e,journeyVersionId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResults(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(n==null||n==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJobResults';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/jobs/{jobId}/results","GET",{viewId:e,journeyViewVersion:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResultsChart(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(n==null||n==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJobResultsChart';if(a==null||a==="")throw'Missing the required parameter "chartId" when calling getJourneyViewVersionJobResultsChart';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}/results/charts/{chartId}","GET",{viewId:e,journeyVersionId:n,jobId:i,chartId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJobsLatest(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(n==null||n==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobsLatest';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/latest","GET",{viewId:e,journeyVersionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyViews(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,nameOrCreatedBy:e.nameOrCreatedBy,expand:e.expand,id:e.id},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsDataDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/data/details","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsEventdefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "eventDefinitionId" when calling getJourneyViewsEventdefinition';return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/{eventDefinitionId}","GET",{eventDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewsEventdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchJourneyActionmap(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchJourneyActiontarget(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchJourneyActiontemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchJourneyExternaleventsConfiguration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configId" when calling patchJourneyExternaleventsConfiguration';return this.apiClient.callApi("/api/v2/journey/externalevents/configurations/{configId}","PATCH",{configId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchJourneyOutcome(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchJourneySegment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchJourneyViewVersionJob(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(n==null||n==="")throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling patchJourneyViewVersionJob';if(a==null)throw'Missing the required parameter "body" when calling patchJourneyViewVersionJob';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}","PATCH",{viewId:e,journeyVersionId:n,jobId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactJourneySegments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactJourneySegments';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/segments","POST",{contactId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyActionmaps(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actionmaps","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneyActionmapsEstimatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postJourneyActionmapsEstimatesJobs';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyActiontemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontemplates","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneyDeploymentActionevent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(n==null)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyDeploymentAppevents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentAppevents';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/appevents","POST",{deploymentId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyDeploymentWebevents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentWebevents';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/webevents","POST",{deploymentId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyExternaleventsConfigurationEvents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling postJourneyExternaleventsConfigurationEvents';return this.apiClient.callApi("/api/v2/journey/externalevents/configurations/{configurationId}/events","POST",{configurationId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyExternaleventsConfigurations(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/externalevents/configurations","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneyExternaleventsSchemas(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postJourneyExternaleventsSchemas';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyFlowsPathsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/flows/paths/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneyOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneyOutcomesAttributionsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneyOutcomesPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes/predictors","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneySegments(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/segments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postJourneyViewSchedules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(n==null)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyViewVersionJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(n==null||n==="")throw'Missing the required parameter "journeyVersionId" when calling postJourneyViewVersionJobs';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs","POST",{viewId:e,journeyVersionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyViewVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(n==null)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyViews(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postJourneyViews';return this.apiClient.callApi("/api/v2/journey/views","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewsEncodingsValidate(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/encodings/validate","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putJourneyExternaleventsSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putJourneyExternaleventsSchema';if(n==null)throw'Missing the required parameter "body" when calling putJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putJourneyViewSchedules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(n==null)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putJourneyViewVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(i==null)throw'Missing the required parameter "body" when calling putJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","PUT",{viewId:e,versionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},qb=class{constructor(e){this.apiClient=e||k.instance}deleteKnowledgeConnection(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling deleteKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","DELETE",{connectionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebase(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","DELETE",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseCategory(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(n==null||n==="")throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeKnowledgebaseDocument(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeKnowledgebaseDocumentVariation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","DELETE",{documentVariationId:e,documentId:n,knowledgeBaseId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeKnowledgebaseExportJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(n==null||n==="")throw'Missing the required parameter "exportJobId" when calling deleteKnowledgeKnowledgebaseExportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs/{exportJobId}","DELETE",{knowledgeBaseId:e,exportJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeKnowledgebaseImportJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling deleteKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","DELETE",{knowledgeBaseId:e,importJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeKnowledgebaseLabel(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(n==null||n==="")throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","DELETE",{knowledgeBaseId:e,sourceId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","DELETE",{knowledgeBaseId:e,sourceId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeKnowledgebaseSynchronizeJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(n==null||n==="")throw'Missing the required parameter "syncJobId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","DELETE",{knowledgeBaseId:e,syncJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteKnowledgeSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling deleteKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","DELETE",{knowledgeSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeSource(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling deleteKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","DELETE",{sourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeConnection(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling getKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","GET",{connectionId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeConnectionOptions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling getKnowledgeConnectionOptions';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}/options","GET",{connectionId:e},{after:n.after,pageSize:n.pageSize,parentId:n.parentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeConnections(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/connections","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getKnowledgeGuestSessionCategories(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionCategories';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/categories","GET",{sessionId:e},{before:n.before,after:n.after,pageSize:n.pageSize,parentId:n.parentId,isRoot:n.isRoot,name:n.name,sortBy:n.sortBy,expand:n.expand,includeDocumentCount:n.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeGuestSessionDocument(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeGuestSessionDocument';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}","GET",{sessionId:e,documentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeGuestSessionDocuments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocuments';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents","GET",{sessionId:e},{categoryId:this.apiClient.buildCollectionParam(n.categoryId,"multi"),pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeIntegrationOptions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getKnowledgeIntegrationOptions';return this.apiClient.callApi("/api/v2/knowledge/integrations/{integrationId}/options","GET",{integrationId:e},{knowledgeBaseIds:this.apiClient.buildCollectionParam(n.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebase(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","GET",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseCategories(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","GET",{knowledgeBaseId:e},{before:n.before,after:n.after,pageSize:n.pageSize,parentId:n.parentId,isRoot:n.isRoot,name:n.name,sortBy:n.sortBy,expand:n.expand,includeDocumentCount:n.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseCategory(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(n==null||n==="")throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseDocument(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback","GET",{knowledgeBaseId:e,documentId:n},{before:i.before,after:i.after,pageSize:i.pageSize,onlyCommented:i.onlyCommented,documentVersionId:i.documentVersionId,documentVariationId:i.documentVariationId,appType:i.appType,queryType:i.queryType,userId:i.userId,queueId:i.queueId,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}","GET",{knowledgeBaseId:e,documentId:n,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","GET",{documentVariationId:e,documentId:n,knowledgeBaseId:i},{documentState:a.documentState,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations","GET",{knowledgeBaseId:e,documentId:n},{before:i.before,after:i.after,pageSize:i.pageSize,documentState:i.documentState,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseDocumentVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersion';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}","GET",{knowledgeBaseId:e,documentId:n,versionId:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariation(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(a==null||a==="")throw'Missing the required parameter "variationId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}/variations/{variationId}","GET",{knowledgeBaseId:e,documentId:n,versionId:i,variationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariations(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}/variations","GET",{knowledgeBaseId:e,documentId:n,versionId:i},{before:a.before,after:a.after,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions","GET",{knowledgeBaseId:e,documentId:n},{before:i.before,after:i.after,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseDocuments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","GET",{knowledgeBaseId:e},{before:n.before,after:n.after,pageSize:n.pageSize,interval:n.interval,documentId:this.apiClient.buildCollectionParam(n.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(n.categoryId,"multi"),includeSubcategories:n.includeSubcategories,includeDrafts:n.includeDrafts,labelIds:this.apiClient.buildCollectionParam(n.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(n.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(n.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseExportJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(n==null||n==="")throw'Missing the required parameter "exportJobId" when calling getKnowledgeKnowledgebaseExportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs/{exportJobId}","GET",{knowledgeBaseId:e,exportJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseImportJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling getKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","GET",{knowledgeBaseId:e,importJobId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseLabel(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(n==null||n==="")throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseLabels(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","GET",{knowledgeBaseId:e},{before:n.before,after:n.after,pageSize:n.pageSize,name:n.name,includeDocumentCount:n.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseOperations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations","GET",{knowledgeBaseId:e},{before:n.before,after:n.after,pageSize:n.pageSize,userId:this.apiClient.buildCollectionParam(n.userId,"multi"),type:this.apiClient.buildCollectionParam(n.type,"multi"),status:this.apiClient.buildCollectionParam(n.status,"multi"),interval:n.interval,sourceId:this.apiClient.buildCollectionParam(n.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseOperationsUsersQuery(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperationsUsersQuery';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations/users/query","GET",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseParseJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(n==null||n==="")throw'Missing the required parameter "parseJobId" when calling getKnowledgeKnowledgebaseParseJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}","GET",{knowledgeBaseId:e,parseJobId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSources(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSources';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources","GET",{knowledgeBaseId:e},{type:n.type,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),ids:this.apiClient.buildCollectionParam(n.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","GET",{knowledgeBaseId:e,sourceId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","GET",{knowledgeBaseId:e,sourceId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSynchronizeJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(n==null||n==="")throw'Missing the required parameter "syncJobId" when calling getKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","GET",{knowledgeBaseId:e,syncJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(n==null||n==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}","GET",{knowledgeBaseId:e,groupId:n},{app:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "phraseGroupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}","GET",{knowledgeBaseId:e,groupId:n,phraseGroupId:i},{app:a.app,dateStart:a.dateStart,dateEnd:a.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroups';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups","GET",{knowledgeBaseId:e},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUploadsUrlsJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}","GET",{knowledgeBaseId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebases(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/knowledgebases","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,name:e.name,coreLanguage:e.coreLanguage,published:e.published,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getKnowledgeSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling getKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","GET",{knowledgeSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,name:e.name,sourceId:e.sourceId,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getKnowledgeSource(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","GET",{sourceId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSourceSynchronization(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","GET",{sourceId:e,synchronizationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronizations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizations';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations","GET",{sourceId:e},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSources(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/sources","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getKnowledgeSourcesSynchronizations(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/sources/synchronizations","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchKnowledgeConnection(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","PATCH",{connectionId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(n==null||n==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search/{searchId}","PATCH",{sessionId:e,searchId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebase(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(n==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeKnowledgebaseCategory(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(n==null||n==="")throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","PATCH",{knowledgeBaseId:e,categoryId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseChunksSearchSearchId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';if(n==null||n==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/chunks/search/{searchId}","PATCH",{knowledgeBaseId:e,searchId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeKnowledgebaseDocument(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","PATCH",{knowledgeBaseId:e,documentId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}","PATCH",{knowledgeBaseId:e,documentId:n,feedbackId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentVariation(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(a==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","PATCH",{documentVariationId:e,documentId:n,knowledgeBaseId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(n==null||n==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search/{searchId}","PATCH",{knowledgeBaseId:e,searchId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeKnowledgebaseImportJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","PATCH",{knowledgeBaseId:e,importJobId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseLabel(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(n==null||n==="")throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","PATCH",{knowledgeBaseId:e,labelId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseParseJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(n==null||n==="")throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseParseJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}","PATCH",{knowledgeBaseId:e,parseJobId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseSynchronizeJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(n==null||n==="")throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","PATCH",{knowledgeBaseId:e,syncJobId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "phraseGroupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(a==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}","PATCH",{knowledgeBaseId:e,groupId:n,phraseGroupId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeSetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';if(n==null)throw'Missing the required parameter "body" when calling patchKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","PATCH",{knowledgeSettingId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeSourceSynchronization(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","PATCH",{sourceId:e,synchronizationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeConnections(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postKnowledgeConnections';return this.apiClient.callApi("/api/v2/knowledge/connections","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeDocumentuploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postKnowledgeDocumentuploads';return this.apiClient.callApi("/api/v2/knowledge/documentuploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentCopies(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentCopies';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/copies","POST",{sessionId:e,documentId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentFeedback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/feedback","POST",{sessionId:e,documentId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentViews(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentViews';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views","POST",{sessionId:e,documentId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsAnswers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeGuestSessionDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/answers","POST",{sessionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsPresentations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsPresentations';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/presentations","POST",{sessionId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsSearch(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsSearch';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search","POST",{sessionId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsSearchSuggestions';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search/suggestions","POST",{sessionId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postKnowledgeGuestSessions';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseCategories(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseChunksSearch(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseChunksSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/chunks/search","POST",{knowledgeBaseId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentCopies(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentCopies';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/copies","POST",{knowledgeBaseId:e,documentId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentFeedback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback","POST",{knowledgeBaseId:e,documentId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentVariations(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations","POST",{knowledgeBaseId:e,documentId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentVersions(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentVersions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions","POST",{knowledgeBaseId:e,documentId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentViews(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(n==null||n==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentViews';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/views","POST",{knowledgeBaseId:e,documentId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocuments(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsAnswers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/bulk/remove","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/bulk/update","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsPresentations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsPresentations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/presentations","POST",{knowledgeBaseId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsQuery(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsQuery';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/query","POST",{knowledgeBaseId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearch(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search","POST",{knowledgeBaseId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsSearchSuggestions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search/suggestions","POST",{knowledgeBaseId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/versions/bulk/add","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseExportJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseImportJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseLabels(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseParseJobImport(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(n==null||n==="")throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}/import","POST",{knowledgeBaseId:e,parseJobId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseParseJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforce(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}/sync","POST",{knowledgeBaseId:e,sourceId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenow(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}/sync","POST",{knowledgeBaseId:e,sourceId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseSynchronizeJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebases(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSearchPreview(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search/preview","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSourceSynchronizationUploads(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeSourceSynchronizationUploads';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads","POST",{sourceId:e,synchronizationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeSourceSynchronizations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizations';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations","POST",{sourceId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeSources(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postKnowledgeSources';return this.apiClient.callApi("/api/v2/knowledge/sources","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","PUT",{knowledgeBaseId:e,sourceId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","PUT",{knowledgeBaseId:e,sourceId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeSource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeSource';if(n==null)throw'Missing the required parameter "body" when calling putKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","PUT",{sourceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},kb=class{constructor(e){this.apiClient=e||k.instance}deleteLanguageunderstandingDomain(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(n==null||n==="")throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteLanguageunderstandingDomainVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(n==null||n==="")throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteLanguageunderstandingMiner(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMiner';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}","DELETE",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingMinerDraft(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(n==null||n==="")throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomain(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainFeedback(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","GET",{domainId:e},{intentName:n.intentName,assessment:n.assessment,dateStart:n.dateStart,dateEnd:n.dateEnd,includeDeleted:n.includeDeleted,language:n.language,pageNumber:n.pageNumber,pageSize:n.pageSize,enableCursorPagination:n.enableCursorPagination,includeTrainingUtterances:n.includeTrainingUtterances,after:n.after,fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainFeedbackFeedbackId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(n==null||n==="")throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:n},{fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(n==null||n==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:n},{includeUtterances:i.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainVersionReport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(n==null||n==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersionReport';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/report","GET",{domainId:e,domainVersionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","GET",{domainId:e},{includeUtterances:n.includeUtterances,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/languageunderstanding/domains","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLanguageunderstandingIgnorephrase(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling getLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","GET",{languageCode:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,text:n.text,sortOrder:n.sortOrder,sortBy:n.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingIgnoretopic(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling getLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","GET",{languageCode:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,text:n.text,sortOrder:n.sortOrder,sortBy:n.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMiner(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMiner';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerDraft(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(n==null||n==="")throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:n},{draftIntentId:i.draftIntentId,draftTopicId:i.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerDrafts(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerIntent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(n==null||n==="")throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:n},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerIntents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntents';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents","GET",{minerId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerTopic(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(n==null||n==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:n},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerTopicPhrase(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(n==null||n==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(i==null||i==="")throw'Missing the required parameter "phraseId" when calling getLanguageunderstandingMinerTopicPhrase';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}/phrases/{phraseId}","GET",{minerId:e,topicId:n,phraseId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getLanguageunderstandingMinerTopics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopics';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMiners(e){return e=e||{},this.apiClient.callApi("/api/v2/languageunderstanding/miners","GET",{},{minerType:e.minerType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLanguageunderstandingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/languageunderstanding/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchLanguageunderstandingDomain(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(n==null)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLanguageunderstandingMinerDraft(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(n==null||n==="")throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingDomainFeedback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingDomainVersionDetect(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(n==null||n==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersionDetect';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/detect","POST",{domainId:e,domainVersionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLanguageunderstandingDomainVersionPublish(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(n==null||n==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionPublish';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/publish","POST",{domainId:e,domainVersionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingDomainVersionTrain(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(n==null||n==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionTrain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/train","POST",{domainId:e,domainVersionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingDomainVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:i.includeUtterances},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingDomains(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomains';return this.apiClient.callApi("/api/v2/languageunderstanding/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnorephrase(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","POST",{languageCode:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingIgnorephraseRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove","POST",{languageCode:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingIgnoretopic(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","POST",{languageCode:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingIgnoretopicRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove","POST",{languageCode:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMinerDrafts(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMinerExecute(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerExecute';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/execute","POST",{minerId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMiners(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMiners';return this.apiClient.callApi("/api/v2/languageunderstanding/miners","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLanguageunderstandingDomainVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(n==null||n==="")throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(i==null)throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","PUT",{domainId:e,domainVersionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},_b=class{constructor(e){this.apiClient=e||k.instance}deleteLanguage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling deleteLanguage';return this.apiClient.callApi("/api/v2/languages/{languageId}","DELETE",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getLanguage';return this.apiClient.callApi("/api/v2/languages/{languageId}","GET",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/languages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLanguagesTranslations(e){return e=e||{},this.apiClient.callApi("/api/v2/languages/translations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLanguagesTranslationsBuiltin(e,n){if(n=n||{},e==null)throw'Missing the required parameter "language" when calling getLanguagesTranslationsBuiltin';return this.apiClient.callApi("/api/v2/languages/translations/builtin","GET",{},{language:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguagesTranslationsOrganization(e,n){if(n=n||{},e==null)throw'Missing the required parameter "language" when calling getLanguagesTranslationsOrganization';return this.apiClient.callApi("/api/v2/languages/translations/organization","GET",{},{language:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguagesTranslationsUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getLanguagesTranslationsUser';return this.apiClient.callApi("/api/v2/languages/translations/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLanguages';return this.apiClient.callApi("/api/v2/languages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Hb=class{constructor(e){this.apiClient=e||k.instance}deleteLearningAssignment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling deleteLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","DELETE",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLearningModule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling deleteLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","DELETE",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningAssignment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","GET",{assignmentId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningAssignmentStep(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(n==null||n==="")throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:n},{shareableContentObjectId:i.shareableContentObjectId,defaultShareableContentObject:i.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningAssignments(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pageSize:e.pageSize,pageNumber:e.pageNumber,pass:e.pass,minPercentageScore:e.minPercentageScore,maxPercentageScore:e.maxPercentageScore,sortOrder:e.sortOrder,sortBy:e.sortBy,userId:this.apiClient.buildCollectionParam(e.userId,"multi"),types:this.apiClient.buildCollectionParam(e.types,"multi"),states:this.apiClient.buildCollectionParam(e.states,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningAssignmentsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/me","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pageSize:e.pageSize,pageNumber:e.pageNumber,pass:e.pass,minPercentageScore:e.minPercentageScore,maxPercentageScore:e.maxPercentageScore,sortOrder:e.sortOrder,sortBy:e.sortBy,types:this.apiClient.buildCollectionParam(e.types,"multi"),states:this.apiClient.buildCollectionParam(e.states,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","GET",{moduleId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModuleJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModulePreview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","GET",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModuleRule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","GET",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModuleVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModulesAssignments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "userIds" when calling getLearningModulesAssignments';return this.apiClient.callApi("/api/v2/learning/modules/assignments","GET",{},{userIds:this.apiClient.buildCollectionParam(e,"multi"),pageSize:n.pageSize,pageNumber:n.pageNumber,searchTerm:n.searchTerm,overdue:n.overdue,assignmentStates:this.apiClient.buildCollectionParam(n.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModulesCoverartCoverArtId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coverArtId" when calling getLearningModulesCoverartCoverArtId';return this.apiClient.callApi("/api/v2/learning/modules/coverart/{coverArtId}","GET",{coverArtId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningScheduleslotsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getLearningScheduleslotsJob';return this.apiClient.callApi("/api/v2/learning/scheduleslots/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningScormScormId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scormId" when calling getLearningScormScormId';return this.apiClient.callApi("/api/v2/learning/scorm/{scormId}","GET",{scormId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningAssignment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningAssignmentReschedule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentReschedule';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reschedule","PATCH",{assignmentId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningAssignmentStep(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(n==null||n==="")throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningModuleUserAssignments(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(n==null||n==="")throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(i==null)throw'Missing the required parameter "body" when calling patchLearningModuleUserAssignments';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/users/{userId}/assignments","PATCH",{moduleId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningAssessmentsScoring(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLearningAssessmentsScoring';return this.apiClient.callApi("/api/v2/learning/assessments/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningAssignmentReassign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling postLearningAssignmentReassign';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reassign","POST",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningAssignmentReset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling postLearningAssignmentReset';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reset","POST",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningAssignments(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postLearningAssignmentsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLearningAssignmentsAggregatesQuery';return this.apiClient.callApi("/api/v2/learning/assignments/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningAssignmentsBulkadd(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/bulkadd","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postLearningAssignmentsBulkremove(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/bulkremove","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postLearningModuleJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(n==null)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLearningModulePublish(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModulePublish';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/publish","POST",{moduleId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModuleRuleMigrate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleRuleMigrate';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule/migrate","POST",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLearningModules';return this.apiClient.callApi("/api/v2/learning/modules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningRulesQuery(e,n,i,a){if(a=a||{},e==null)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(n==null)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(i==null)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:n},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningScheduleslotsJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLearningScheduleslotsJobs';return this.apiClient.callApi("/api/v2/learning/scheduleslots/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningScheduleslotsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLearningScheduleslotsQuery';return this.apiClient.callApi("/api/v2/learning/scheduleslots/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningScorm(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/scorm","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putLearningModule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModule';if(n==null)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putLearningModulePreview(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(n==null)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putLearningModuleRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(n==null)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{assign:i.assign},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Rb=class{constructor(e){this.apiClient=e||k.instance}getLicenseDefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "licenseId" when calling getLicenseDefinition';return this.apiClient.callApi("/api/v2/license/definitions/{licenseId}","GET",{licenseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLicenseDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/license/definitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLicenseToggle(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling getLicenseToggle';return this.apiClient.callApi("/api/v2/license/toggles/{featureName}","GET",{featureName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLicenseUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getLicenseUser';return this.apiClient.callApi("/api/v2/license/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postLicenseInfer(e){return e=e||{},this.apiClient.callApi("/api/v2/license/infer","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postLicenseInferPermissions(e){return e=e||{},this.apiClient.callApi("/api/v2/license/infer/permissions","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postLicenseOrganization(e){return e=e||{},this.apiClient.callApi("/api/v2/license/organization","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postLicenseToggle(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling postLicenseToggle';return this.apiClient.callApi("/api/v2/license/toggles/{featureName}","POST",{featureName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},Ib=class{constructor(e){this.apiClient=e||k.instance}deleteLocation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling deleteLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","DELETE",{locationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLocation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling getLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","GET",{locationId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLocationSublocations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling getLocationSublocations';return this.apiClient.callApi("/api/v2/locations/{locationId}/sublocations","GET",{locationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLocations(e){return e=e||{},this.apiClient.callApi("/api/v2/locations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLocationsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLocation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling patchLocation';if(n==null)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLocations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLocations';return this.apiClient.callApi("/api/v2/locations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocationsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},zb=class{constructor(e){this.apiClient=e||k.instance}deleteDiagnosticsLogcaptureBrowserUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getDiagnosticsLogcaptureBrowserEntriesDownloadJob';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/download/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getDiagnosticsLogcaptureBrowserUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getDiagnosticsLogcaptureBrowserUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users","GET",{},{includeExpired:e.includeExpired},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postDiagnosticsLogcaptureBrowserEntriesDownloadJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/download/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postDiagnosticsLogcaptureBrowserEntriesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/query","POST",{},{after:e.after,pageSize:e.pageSize},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postDiagnosticsLogcaptureBrowserUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","POST",{userId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Db=class{constructor(e){this.apiClient=e||k.instance}deleteMessagingSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling deleteMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","DELETE",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteMessagingSettingsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/settings/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteMessagingSupportedcontentSupportedContentId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling deleteMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","DELETE",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getMessagingSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling getMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","GET",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getMessagingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/settings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getMessagingSettingsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/settings/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getMessagingSupportedcontent(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/supportedcontent","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getMessagingSupportedcontentSupportedContentId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling getMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","GET",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchMessagingSetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(n==null)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchMessagingSupportedcontentSupportedContentId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(n==null)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postMessagingSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postMessagingSettings';return this.apiClient.callApi("/api/v2/messaging/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postMessagingSupportedcontent(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postMessagingSupportedcontent';return this.apiClient.callApi("/api/v2/messaging/supportedcontent","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putMessagingSettingsDefault(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';return this.apiClient.callApi("/api/v2/messaging/settings/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Gb=class{constructor(e){this.apiClient=e||k.instance}deleteMobiledevice(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling deleteMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","DELETE",{deviceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getMobiledevice(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling getMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","GET",{deviceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getMobiledevices(e){return e=e||{},this.apiClient.callApi("/api/v2/mobiledevices","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postMobiledevices(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postMobiledevices';return this.apiClient.callApi("/api/v2/mobiledevices","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putMobiledevice(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},$b=class{constructor(e){this.apiClient=e||k.instance}deleteNotificationsChannelSubscriptions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling deleteNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","DELETE",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getNotificationsAvailabletopics(e){return e=e||{},this.apiClient.callApi("/api/v2/notifications/availabletopics","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includePreview:e.includePreview},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getNotificationsChannelSubscriptions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling getNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","GET",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getNotificationsChannels(e){return e=e||{},this.apiClient.callApi("/api/v2/notifications/channels","GET",{},{includechannels:e.includechannels},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}headNotificationsChannel(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling headNotificationsChannel';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}","HEAD",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postNotificationsChannelSubscriptions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(n==null)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:i.ignoreErrors},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postNotificationsChannels(e){return e=e||{},this.apiClient.callApi("/api/v2/notifications/channels","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putNotificationsChannelSubscriptions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(n==null)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:i.ignoreErrors},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Nb=class{constructor(e){this.apiClient=e||k.instance}deleteOauthClient(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling deleteOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","DELETE",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthAuthorization(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getOauthAuthorization';return this.apiClient.callApi("/api/v2/oauth/authorizations/{clientId}","GET",{clientId:e},{},{"Accept-Language":n.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthAuthorizations(e){return e=e||{},this.apiClient.callApi("/api/v2/oauth/authorizations","GET",{},{},{"Accept-Language":e.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOauthClient(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","GET",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageQueryResult(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(n==null||n==="")throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}","GET",{executionId:e,clientId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOauthClientUsageSummary(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/summary","GET",{clientId:e},{days:n.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClients(e){return e=e||{},this.apiClient.callApi("/api/v2/oauth/clients","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOauthScope(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scopeId" when calling getOauthScope';return this.apiClient.callApi("/api/v2/oauth/scopes/{scopeId}","GET",{scopeId:e},{},{"Accept-Language":n.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthScopes(e){return e=e||{},this.apiClient.callApi("/api/v2/oauth/scopes","GET",{},{},{"Accept-Language":e.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postOauthClientSecret(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientSecret';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/secret","POST",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClientUsageQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(n==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOauthClients(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOauthClients';return this.apiClient.callApi("/api/v2/oauth/clients","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOauthClient(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling putOauthClient';if(n==null)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Ub=class{constructor(e){this.apiClient=e||k.instance}deleteAuthorizationDivision(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","DELETE",{divisionId:e},{force:n.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivision(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling getAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","GET",{divisionId:e},{objectCount:n.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivisions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,objectCount:e.objectCount,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsDeleted(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/deleted","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsHome(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/home","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsLimit(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/limit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions/query","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postAuthorizationDivisionObject(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(n==null||n==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionObject';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/objects/{objectType}","POST",{divisionId:e,objectType:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationDivisions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisions';return this.apiClient.callApi("/api/v2/authorization/divisions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationDivision(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(n==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Lb=class{constructor(e){this.apiClient=e||k.instance}getUsageEventsDefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "eventDefinitionId" when calling getUsageEventsDefinition';return this.apiClient.callApi("/api/v2/usage/events/definitions/{eventDefinitionId}","GET",{eventDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageEventsDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/usage/events/definitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postUsageEventsAggregatesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/usage/events/aggregates/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postUsageEventsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/usage/events/query","POST",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},Wb=class{constructor(e){this.apiClient=e||k.instance}getFieldconfig(e,n){if(n=n||{},e==null)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrganizationsAuthenticationSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/authentication/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsEmbeddedintegration(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/embeddedintegration","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsIpaddressauthentication(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/ipaddressauthentication","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsLimitsChangerequest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "requestId" when calling getOrganizationsLimitsChangerequest';return this.apiClient.callApi("/api/v2/organizations/limits/changerequests/{requestId}","GET",{requestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrganizationsLimitsChangerequests(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/changerequests","GET",{},{after:e.after,before:e.before,status:e.status,pageSize:e.pageSize,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsLimitsDocs(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/docs","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsLimitsDocsFreetrial(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/docs/freetrial","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsLimitsNamespace(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespace';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}","GET",{namespaceName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrganizationsLimitsNamespaceDefaults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceDefaults';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}/defaults","GET",{namespaceName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrganizationsLimitsNamespaces(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/namespaces","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrganizationsWhitelist(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/whitelist","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchOrganizationsAuthenticationSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchOrganizationsAuthenticationSettings';return this.apiClient.callApi("/api/v2/organizations/authentication/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOrganizationsFeature(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(n==null)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrganizationsEmbeddedintegration(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putOrganizationsEmbeddedintegration';return this.apiClient.callApi("/api/v2/organizations/embeddedintegration","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsIpaddressauthentication(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putOrganizationsIpaddressauthentication';return this.apiClient.callApi("/api/v2/organizations/ipaddressauthentication","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/me","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putOrganizationsWhitelist(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';return this.apiClient.callApi("/api/v2/organizations/whitelist","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Bb=class{constructor(e){this.apiClient=e||k.instance}deleteOrgauthorizationTrustee(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","DELETE",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeCloneduser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrusteeGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(n==null||n==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrusteeGroupRoles(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(n==null||n==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","DELETE",{trusteeOrgId:e,trusteeGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrusteeUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrusteeUserRoles(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","DELETE",{trusteeOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrustees(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteOrgauthorizationTrustees';return this.apiClient.callApi("/api/v2/orgauthorization/trustees","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustor';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}","DELETE",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorCloneduser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrustorGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(n==null||n==="")throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrustorUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOrgauthorizationTrustors(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteOrgauthorizationTrustors';return this.apiClient.callApi("/api/v2/orgauthorization/trustors","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationPairing(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "pairingId" when calling getOrgauthorizationPairing';return this.apiClient.callApi("/api/v2/orgauthorization/pairings/{pairingId}","GET",{pairingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustee(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","GET",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeClonedusers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeClonedusers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers","GET",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(n==null||n==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeGroupRoles(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(n==null||n==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","GET",{trusteeOrgId:e,trusteeGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeGroups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","GET",{trusteeOrgId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUserRoles(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","GET",{trusteeOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUsers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","GET",{trusteeOrgId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustees(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrgauthorizationTrusteesCare(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/care","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrgauthorizationTrusteesDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOrgauthorizationTrustor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustor';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}","GET",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorCloneduser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorClonedusers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorClonedusers';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers","GET",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(n==null||n==="")throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorGroups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups","GET",{trustorOrgId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorUsers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users","GET",{trustorOrgId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustors(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustors","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postOrgauthorizationPairings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationPairings';return this.apiClient.callApi("/api/v2/orgauthorization/pairings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteeGroups(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(n==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOrgauthorizationTrusteeUsers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(n==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOrgauthorizationTrustees(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustees';return this.apiClient.callApi("/api/v2/orgauthorization/trustees","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteesAudits(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteesCare(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/care","POST",{},{assignDefaultRole:e.assignDefaultRole,autoExpire:e.autoExpire,assignFullAccess:e.assignFullAccess,allowTrustedUserAccess:e.allowTrustedUserAccess},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postOrgauthorizationTrusteesDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/default","POST",{},{assignDefaultRole:e.assignDefaultRole,autoExpire:e.autoExpire},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postOrgauthorizationTrustorAudits(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustee(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(n==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrusteeGroupRoledivisions(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(n==null||n==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoledivisions';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roledivisions","PUT",{trusteeOrgId:e,trusteeGroupId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeGroupRoles(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(n==null||n==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","PUT",{trusteeOrgId:e,trusteeGroupId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoledivisions(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeUserRoledivisions';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roledivisions","PUT",{trusteeOrgId:e,trusteeUserId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoles(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","PUT",{trusteeOrgId:e,trusteeUserId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrustorCloneduser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustorGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(n==null||n==="")throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustorUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(n==null||n==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Fb=class{constructor(e){this.apiClient=e||k.instance}deleteOutboundAttemptlimit(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling deleteOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","DELETE",{attemptLimitsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundCallabletimeset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling deleteOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","DELETE",{callableTimeSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundCallanalysisresponseset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling deleteOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","DELETE",{callAnalysisSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundCampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling deleteOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundCampaignProgress(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling deleteOutboundCampaignProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/progress","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundCampaignrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling deleteOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","DELETE",{campaignRuleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlist(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","DELETE",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistContact(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(n==null||n==="")throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundContactlistContacts(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(n==null)throw'Missing the required parameter "contactIds" when calling deleteOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","DELETE",{contactListId:e},{contactIds:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundContactlistfilter(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling deleteOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","DELETE",{contactListFilterId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlists(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteOutboundContactlists';return this.apiClient.callApi("/api/v2/outbound/contactlists","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlisttemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling deleteOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","DELETE",{contactListTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlisttemplates(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteOutboundContactlisttemplates';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundDigitalruleset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling deleteOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","DELETE",{digitalRuleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundDnclist(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","DELETE",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundDnclistCustomexclusioncolumns(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","DELETE",{dncListId:e},{expiredOnly:n.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundDnclistEmailaddresses(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","DELETE",{dncListId:e},{expiredOnly:n.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundDnclistPhonenumbers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","DELETE",{dncListId:e},{expiredOnly:n.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundDnclistWhatsappnumbers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","DELETE",{dncListId:e},{expiredOnly:n.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundFilespecificationtemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling deleteOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","DELETE",{fileSpecificationTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundFilespecificationtemplatesBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteOutboundFilespecificationtemplatesBulk';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/bulk","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundImporttemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling deleteOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","DELETE",{importTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundImporttemplates(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling deleteOutboundImporttemplates';return this.apiClient.callApi("/api/v2/outbound/importtemplates","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundMessagingcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundMessagingcampaignProgress(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundMessagingcampaignProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/progress","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundRuleset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling deleteOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","DELETE",{ruleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundSchedulesCampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling deleteOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundSchedulesEmailcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling deleteOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","DELETE",{emailCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundSchedulesMessagingcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundSchedulesSequence(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling deleteOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","DELETE",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundSchedulesWhatsappcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling deleteOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","DELETE",{whatsAppCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundSequence(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling deleteOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","DELETE",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundAttemptlimit(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling getOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","GET",{attemptLimitsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundAttemptlimits(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/attemptlimits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundCallabletimeset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling getOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","GET",{callableTimeSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCallabletimesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/callabletimesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundCallanalysisresponseset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling getOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","GET",{callAnalysisSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCallanalysisresponsesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundCampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignAgentownedmappingpreviewResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignAgentownedmappingpreviewResults';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agentownedmappingpreview/results","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignDiagnostics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignDiagnostics';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/diagnostics","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignInteractions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignInteractions';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/interactions","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignLinedistribution(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignLinedistribution';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/linedistribution","GET",{campaignId:e},{includeOnlyActiveCampaigns:n.includeOnlyActiveCampaigns,edgeGroupId:n.edgeGroupId,siteId:n.siteId,useWeight:n.useWeight,relativeWeight:n.relativeWeight,outboundLineCount:n.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignProgress(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/progress","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignSkillcombinations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignSkillcombinations';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/skillcombinations","GET",{campaignId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignStats(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignStats';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/stats","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling getOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","GET",{campaignRuleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignrules(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaignrules","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundCampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),contactListId:e.contactListId,dncListIds:e.dncListIds,distributionQueueId:e.distributionQueueId,edgeGroupId:e.edgeGroupId,callAnalysisResponseSetId:e.callAnalysisResponseSetId,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundCampaignsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/all","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),mediaType:this.apiClient.buildCollectionParam(e.mediaType,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundCampaignsAllDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/all/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),mediaType:this.apiClient.buildCollectionParam(e.mediaType,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundCampaignsDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundCampaignsDivisionview';return this.apiClient.callApi("/api/v2/outbound/campaigns/divisionviews/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundCampaignsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlist(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","GET",{contactListId:e},{includeImportStatus:n.includeImportStatus,includeSize:n.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContact(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(n==null||n==="")throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContactsBulkJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getOutboundContactlistContactsBulkJob';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs/{jobId}","GET",{contactListId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContactsBulkJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJobs';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistExport';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/export","GET",{contactListId:e},{download:n.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistImportstatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistImportstatus';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/importstatus","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistTimezonemappingpreview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistTimezonemappingpreview';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/timezonemappingpreview","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistfilter(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling getOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","GET",{contactListFilterId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlistsDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistsDivisionview';return this.apiClient.callApi("/api/v2/outbound/contactlists/divisionviews/{contactListId}","GET",{contactListId:e},{includeImportStatus:n.includeImportStatus,includeSize:n.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists/divisionviews","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlisttemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling getOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","GET",{contactListTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDiagnosticsCampaignSummary(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundDiagnosticsCampaignSummary';if(n==null)throw'Missing the required parameter "start" when calling getOutboundDiagnosticsCampaignSummary';if(i==null)throw'Missing the required parameter "end" when calling getOutboundDiagnosticsCampaignSummary';return this.apiClient.callApi("/api/v2/outbound/diagnostics/campaigns/{campaignId}/summary","GET",{campaignId:e},{start:n,end:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getOutboundDigitalruleset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling getOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","GET",{digitalRuleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundDigitalrulesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/digitalrulesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDnclist(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling getOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","GET",{dncListId:e},{includeImportStatus:n.includeImportStatus,includeSize:n.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundDnclistExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling getOutboundDnclistExport';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/export","GET",{dncListId:e},{download:n.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundDnclistImportstatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling getOutboundDnclistImportstatus';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/importstatus","GET",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundDnclists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/dnclists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,dncSourceType:e.dncSourceType,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDnclistsDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling getOutboundDnclistsDivisionview';return this.apiClient.callApi("/api/v2/outbound/dnclists/divisionviews/{dncListId}","GET",{dncListId:e},{includeImportStatus:n.includeImportStatus,includeSize:n.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundDnclistsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/dnclists/divisionviews","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,dncSourceType:e.dncSourceType,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundEvent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "eventId" when calling getOutboundEvent';return this.apiClient.callApi("/api/v2/outbound/events/{eventId}","GET",{eventId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundEvents(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/events","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,category:e.category,level:e.level,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundFilespecificationtemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling getOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","GET",{fileSpecificationTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundFilespecificationtemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundImporttemplate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling getOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","GET",{importTemplateId:e},{includeImportStatus:n.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundImporttemplateImportstatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling getOutboundImporttemplateImportstatus';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}/importstatus","GET",{importTemplateId:e},{listNamePrefix:n.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundImporttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/importtemplates","GET",{},{includeImportStatus:e.includeImportStatus,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListTemplateId:e.contactListTemplateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundMessagingcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundMessagingcampaignDiagnostics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignDiagnostics';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/diagnostics","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundMessagingcampaignProgress(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/progress","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundMessagingcampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/messagingcampaigns","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,contactListId:e.contactListId,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),type:e.type,senderSmsPhoneNumber:e.senderSmsPhoneNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),contentTemplateId:e.contentTemplateId,campaignStatus:e.campaignStatus,ruleSetIds:this.apiClient.buildCollectionParam(e.ruleSetIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundMessagingcampaignsDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignsDivisionview';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/divisionviews/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundMessagingcampaignsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name,type:e.type,id:this.apiClient.buildCollectionParam(e.id,"multi"),senderSmsPhoneNumber:e.senderSmsPhoneNumber,contentTemplateId:e.contentTemplateId,campaignStatus:e.campaignStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundRuleset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling getOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","GET",{ruleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundRulesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/rulesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundSchedulesCampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundSchedulesCampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/schedules/campaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundSchedulesEmailcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling getOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","GET",{emailCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundSchedulesEmailcampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundSchedulesMessagingcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling getOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundSchedulesMessagingcampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundSchedulesSequence(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling getOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","GET",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundSchedulesSequences(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/schedules/sequences","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundSchedulesWhatsappcampaign(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling getOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","GET",{whatsAppCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundSchedulesWhatsappcampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundSequence(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling getOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","GET",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundSequences(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/sequences","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundWrapupcodemappings(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/wrapupcodemappings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchOutboundCampaign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(n==null)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchOutboundDnclistCustomexclusioncolumns(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(n==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchOutboundDnclistEmailaddresses(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(n==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchOutboundDnclistPhonenumbers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(n==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchOutboundDnclistWhatsappnumbers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';if(n==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","PATCH",{dncListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchOutboundSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundAttemptlimits(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundAttemptlimits';return this.apiClient.callApi("/api/v2/outbound/attemptlimits","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCallabletimesets(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCallabletimesets';return this.apiClient.callApi("/api/v2/outbound/callabletimesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCallanalysisresponsesets(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCallanalysisresponsesets';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignAgentownedmappingpreview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignAgentownedmappingpreview';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agentownedmappingpreview","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignCallbackSchedule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(n==null)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundCampaignStart(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignStart';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/start","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignStop(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignStop';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/stop","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignrules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaignrules';return this.apiClient.callApi("/api/v2/outbound/campaignrules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaigns(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignsPerformanceQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaignsPerformanceQuery';return this.apiClient.callApi("/api/v2/outbound/campaigns/performance/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignsProgress(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaignsProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/progress","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistClear(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistClear';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/clear","POST",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContacts(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(n==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:i.priority,clearSystemData:i.clearSystemData,doNotQueue:i.doNotQueue},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistContactsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(n==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistContactsBulkRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(n==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkRemove';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/remove","POST",{contactListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistContactsBulkUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(n==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkUpdate';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/update","POST",{contactListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistContactsSearch(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(n==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistExport';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/export","POST",{contactListId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistfilters(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlistfilters';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistfiltersBulkRetrieve(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlistfiltersBulkRetrieve';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistfiltersPreview(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlistfiltersPreview';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/preview","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlists(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlists';return this.apiClient.callApi("/api/v2/outbound/contactlists","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistsUploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlistsUploads';return this.apiClient.callApi("/api/v2/outbound/contactlists/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlisttemplates(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplates';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlisttemplatesBulkAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplatesBulkAdd';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlisttemplatesBulkRetrieve(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplatesBulkRetrieve';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundConversationDnc(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postOutboundConversationDnc';return this.apiClient.callApi("/api/v2/outbound/conversations/{conversationId}/dnc","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDigitalrulesets(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundDigitalrulesets';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistEmailaddresses(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(n==null)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundDnclistExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistExport';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/export","POST",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistPhonenumbers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(n==null)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:i.expirationDateTime},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundDnclists(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundDnclists';return this.apiClient.callApi("/api/v2/outbound/dnclists","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistsUploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundDnclistsUploads';return this.apiClient.callApi("/api/v2/outbound/dnclists/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundFilespecificationtemplates(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundFilespecificationtemplates';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundImporttemplates(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundImporttemplates';return this.apiClient.callApi("/api/v2/outbound/importtemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundImporttemplatesBulkAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundImporttemplatesBulkAdd';return this.apiClient.callApi("/api/v2/outbound/importtemplates/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundMessagingcampaignStart(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling postOutboundMessagingcampaignStart';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/start","POST",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundMessagingcampaignStop(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling postOutboundMessagingcampaignStop';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/stop","POST",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundMessagingcampaigns(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundMessagingcampaigns';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundMessagingcampaignsProgress(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundMessagingcampaignsProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/progress","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundRulesets(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundRulesets';return this.apiClient.callApi("/api/v2/outbound/rulesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundSequences(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundSequences';return this.apiClient.callApi("/api/v2/outbound/sequences","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundAttemptlimit(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(n==null)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundCallabletimeset(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(n==null)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundCallanalysisresponseset(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(n==null)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundCampaign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(n==null)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundCampaignAgent(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(n==null||n==="")throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaignAgent';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agents/{userId}","PUT",{campaignId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundCampaignrule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(n==null)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundContactlist(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(n==null)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundContactlistContact(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(n==null||n==="")throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","PUT",{contactListId:e,contactId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundContactlistfilter(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(n==null)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundContactlisttemplate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(n==null)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundDigitalruleset(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(n==null)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundDnclist(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(n==null)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundFilespecificationtemplate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(n==null)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundImporttemplate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(n==null)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundMessagingcampaign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(n==null)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundRuleset(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(n==null)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundSchedulesCampaign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(n==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundSchedulesEmailcampaign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(n==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundSchedulesMessagingcampaign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(n==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundSchedulesSequence(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(n==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundSchedulesWhatsappcampaign(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';if(n==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","PUT",{whatsAppCampaignId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundSequence(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(n==null)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOutboundWrapupcodemappings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';return this.apiClient.callApi("/api/v2/outbound/wrapupcodemappings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Vb=class{constructor(e){this.apiClient=e||k.instance}deletePresenceDefinition0(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling deletePresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","DELETE",{definitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deletePresenceSource(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling deletePresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","DELETE",{sourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deletePresencedefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling deletePresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","DELETE",{presenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getPresenceDefinition0(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling getPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","GET",{definitionId:e},{localeCode:n.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getPresenceDefinitions0(e){return e=e||{},this.apiClient.callApi("/api/v2/presence/definitions","GET",{},{deactivated:e.deactivated,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),localeCode:e.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getPresenceSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/presence/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getPresenceSource(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","GET",{sourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getPresenceSources(e){return e=e||{},this.apiClient.callApi("/api/v2/presence/sources","GET",{},{deactivated:e.deactivated},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getPresenceUserPrimarysource(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getPresencedefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:n.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getPresencedefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/presencedefinitions","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,deleted:e.deleted,localeCode:e.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSystempresences(e){return e=e||{},this.apiClient.callApi("/api/v2/systempresences","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUserPresence(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresence';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserPresencesPurecloud(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersPresenceBulk(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getUsersPresenceBulk';return this.apiClient.callApi("/api/v2/users/presences/{sourceId}/bulk","GET",{sourceId:e},{id:this.apiClient.buildCollectionParam(n.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersPresencesPurecloudBulk(e){return e=e||{},this.apiClient.callApi("/api/v2/users/presences/purecloud/bulk","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchUserPresence(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresence';if(n==null||n==="")throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(i==null)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserPresencesPurecloud(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(n==null)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postPresenceDefinitions0(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postPresenceDefinitions0';return this.apiClient.callApi("/api/v2/presence/definitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresenceSources(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postPresenceSources';return this.apiClient.callApi("/api/v2/presence/sources","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresencedefinitions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postPresencedefinitions';return this.apiClient.callApi("/api/v2/presencedefinitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceDefinition0(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(n==null)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putPresenceSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putPresenceSettings';return this.apiClient.callApi("/api/v2/presence/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceSource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(n==null)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putPresenceUserPrimarysource(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(n==null)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putPresencedefinition(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(n==null)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUsersPresencesBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putUsersPresencesBulk';return this.apiClient.callApi("/api/v2/users/presences/bulk","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Jb=class{constructor(e){this.apiClient=e||k.instance}deleteProcessautomationScheduledtrigger(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling deleteProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","DELETE",{scheduledTriggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteProcessautomationTrigger(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling deleteProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","DELETE",{triggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getProcessautomationScheduledtrigger(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling getProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","GET",{scheduledTriggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getProcessautomationScheduledtriggers(e){return e=e||{},this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,enabled:e.enabled},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getProcessautomationTrigger(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling getProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","GET",{triggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getProcessautomationTriggers(e){return e=e||{},this.apiClient.callApi("/api/v2/processautomation/triggers","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,topicName:e.topicName,enabled:e.enabled,hasDelayBy:e.hasDelayBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getProcessautomationTriggersTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/processautomation/triggers/topics","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postProcessautomationScheduledtriggers(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postProcessautomationScheduledtriggers';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postProcessautomationTriggerTest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling postProcessautomationTriggerTest';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}/test","POST",{triggerId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postProcessautomationTriggers(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postProcessautomationTriggers';return this.apiClient.callApi("/api/v2/processautomation/triggers","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postProcessautomationTriggersTopicTest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicName" when calling postProcessautomationTriggersTopicTest';return this.apiClient.callApi("/api/v2/processautomation/triggers/topics/{topicName}/test","POST",{topicName:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putProcessautomationScheduledtrigger(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling putProcessautomationScheduledtrigger';if(n==null)throw'Missing the required parameter "body" when calling putProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","PUT",{scheduledTriggerId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putProcessautomationTrigger(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(n==null)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Zb=class{constructor(e){this.apiClient=e||k.instance}deleteAnalyticsEvaluationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityCalibration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(n==null)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteQualityConversationEvaluation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(n==null||n==="")throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:n},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteQualityForm(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling deleteQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityFormsEvaluation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling deleteQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityFormsSurvey(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling deleteQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityProgramAgentscoringrule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteQualityProgramAgentscoringrule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling deleteQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","DELETE",{programId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsSurveysAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityAgentsActivity(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/agents/activity","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,startTime:e.startTime,endTime:e.endTime,agentUserId:this.apiClient.buildCollectionParam(e.agentUserId,"multi"),evaluatorUserId:e.evaluatorUserId,name:e.name,group:e.group,agentTeamId:e.agentTeamId,formContextId:e.formContextId,userState:e.userState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityCalibration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling getQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","GET",{calibrationId:e},{calibratorId:n.calibratorId,conversationId:n.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityCalibrations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortBy:n.sortBy,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),nextPage:n.nextPage,previousPage:n.previousPage,conversationId:n.conversationId,startTime:n.startTime,endTime:n.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationEvaluation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(n==null||n==="")throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:n},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityConversationSurveys(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationSurveys';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/surveys","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationsAuditsQueryTransactionId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionId';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query/{transactionId}","GET",{transactionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationsAuditsQueryTransactionIdResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionIdResults';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query/{transactionId}/results","GET",{transactionId:e},{cursor:n.cursor,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityEvaluationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/evaluations/query","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),previousPage:e.previousPage,conversationId:e.conversationId,agentUserId:e.agentUserId,agentTeamId:e.agentTeamId,evaluatorUserId:e.evaluatorUserId,assigneeUserId:e.assigneeUserId,queueId:e.queueId,startTime:e.startTime,endTime:e.endTime,formContextId:e.formContextId,evaluationState:this.apiClient.buildCollectionParam(e.evaluationState,"multi"),isReleased:e.isReleased,agentHasRead:e.agentHasRead,expandAnswerTotalScores:e.expandAnswerTotalScores,maximum:e.maximum,sortOrder:e.sortOrder,includeDeletedUsers:e.includeDeletedUsers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityEvaluatorsActivity(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/evaluators/activity","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,startTime:e.startTime,endTime:e.endTime,name:e.name,permission:this.apiClient.buildCollectionParam(e.permission,"multi"),group:e.group,agentTeamId:e.agentTeamId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityForm(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityFormVersions';return this.apiClient.callApi("/api/v2/quality/forms/{formId}/versions","GET",{formId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityForms(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityFormsEvaluation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormsEvaluationVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityFormsEvaluationVersions';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}/versions","GET",{formId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityFormsEvaluationsBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getQualityFormsEvaluationsBulk';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/bulk","GET",{},{id:this.apiClient.buildCollectionParam(e,"multi"),includeLatestVersionFormName:n.includeLatestVersionFormName},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormsEvaluationsBulkContexts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "contextId" when calling getQualityFormsEvaluationsBulkContexts';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/bulk/contexts","GET",{},{contextId:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormsSurvey(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormsSurveyVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityFormsSurveyVersions';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}/versions","GET",{formId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityFormsSurveysBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getQualityFormsSurveysBulk';return this.apiClient.callApi("/api/v2/quality/forms/surveys/bulk","GET",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityFormsSurveysBulkContexts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "contextId" when calling getQualityFormsSurveysBulkContexts';return this.apiClient.callApi("/api/v2/quality/forms/surveys/bulk/contexts","GET",{},{contextId:this.apiClient.buildCollectionParam(e,"multi"),published:n.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityProgramAgentscoringrule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling getQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","GET",{programId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityProgramAgentscoringrules(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedform(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityPublishedform';return this.apiClient.callApi("/api/v2/quality/publishedforms/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedforms(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsEvaluation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityPublishedformsEvaluation';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsSurvey(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling getQualityPublishedformsSurvey';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualitySurvey(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "surveyId" when calling getQualitySurvey';return this.apiClient.callApi("/api/v2/quality/surveys/{surveyId}","GET",{surveyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualitySurveysScorable(e,n){if(n=n||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling getQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","GET",{},{customerSurveyUrl:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchQualityFormsSurvey(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(n==null)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityCalibrations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:n.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityConversationEvaluations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(n==null)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:i.expand},{"Idempotency-Key":i.idempotencyKey},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityConversationsAuditsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityConversationsAuditsQuery';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityEvaluationsAggregatesQueryMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityEvaluationsAggregatesQueryMe';return this.apiClient.callApi("/api/v2/quality/evaluations/aggregates/query/me","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityEvaluationsScoring(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityEvaluationsScoring';return this.apiClient.callApi("/api/v2/quality/evaluations/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityEvaluationsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityEvaluationsSearch';return this.apiClient.callApi("/api/v2/quality/evaluations/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityForms(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityForms';return this.apiClient.callApi("/api/v2/quality/forms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityFormsEvaluations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityFormsEvaluations';return this.apiClient.callApi("/api/v2/quality/forms/evaluations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityFormsSurveys(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityFormsSurveys';return this.apiClient.callApi("/api/v2/quality/forms/surveys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityProgramAgentscoringrules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling postQualityProgramAgentscoringrules';if(n==null)throw'Missing the required parameter "body" when calling postQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","POST",{programId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityPublishedforms(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityPublishedforms';return this.apiClient.callApi("/api/v2/quality/publishedforms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedformsEvaluations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityPublishedformsEvaluations';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedformsSurveys(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualityPublishedformsSurveys';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualitySurveys(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualitySurveys';return this.apiClient.callApi("/api/v2/quality/surveys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualitySurveysScoring(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postQualitySurveysScoring';return this.apiClient.callApi("/api/v2/quality/surveys/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityCalibration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(n==null)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putQualityConversationEvaluation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(n==null||n==="")throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(i==null)throw'Missing the required parameter "body" when calling putQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","PUT",{conversationId:e,evaluationId:n},{expand:a.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualityForm(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityForm';if(n==null)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putQualityFormsEvaluation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(n==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putQualityFormsEvaluationAiscoringSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(n==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluationAiscoringSettings';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}/aiscoring/settings","PUT",{formId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putQualityFormsSurvey(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(n==null)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putQualityProgramAgentscoringrule(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putQualityProgramAgentscoringrule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling putQualityProgramAgentscoringrule';if(i==null)throw'Missing the required parameter "body" when calling putQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","PUT",{programId:e,ruleId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualitySurveysScorable(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(n==null)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Kb=class{constructor(e){this.apiClient=e||k.instance}deleteConversationRecordingAnnotation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling deleteConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","DELETE",{conversationId:e,recordingId:n,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteOrphanrecording(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling deleteOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","DELETE",{orphanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicies(e,n){if(n=n||{},e==null)throw'Missing the required parameter "ids" when calling deleteRecordingCrossplatformMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","DELETE",{},{ids:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicy(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling deleteRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","DELETE",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRecordingJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRecordingMediaretentionpolicies(e,n){if(n=n||{},e==null)throw'Missing the required parameter "ids" when calling deleteRecordingMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","DELETE",{},{ids:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRecordingMediaretentionpolicy(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling deleteRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","DELETE",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecording(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:n},{formatId:i.formatId,emailFormatId:i.emailFormatId,chatFormatId:i.chatFormatId,messageFormatId:i.messageFormatId,download:i.download,fileName:i.fileName,locale:i.locale,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationRecordingAnnotation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling getConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","GET",{conversationId:e,recordingId:n,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationRecordingAnnotations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationRecordingmetadata(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadata';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordingmetadataRecordingId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationRecordings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordings';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings","GET",{conversationId:e},{maxWaitMs:n.maxWaitMs,formatId:n.formatId,mediaFormats:this.apiClient.buildCollectionParam(n.mediaFormats,"multi"),locale:n.locale,includePauseAnnotationsForScreenRecordings:n.includePauseAnnotationsForScreenRecordings},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrphanrecording(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling getOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","GET",{orphanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrphanrecordingMedia(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling getOrphanrecordingMedia';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}/media","GET",{orphanId:e},{formatId:n.formatId,emailFormatId:n.emailFormatId,chatFormatId:n.chatFormatId,messageFormatId:n.messageFormatId,download:n.download,fileName:n.fileName,locale:n.locale,mediaFormats:this.apiClient.buildCollectionParam(n.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrphanrecordings(e){return e=e||{},this.apiClient.callApi("/api/v2/orphanrecordings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,hasConversation:e.hasConversation,media:e.media},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingBatchrequest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getRecordingBatchrequest';return this.apiClient.callApi("/api/v2/recording/batchrequests/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingCrossplatformMediaretentionpolicies(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,enabled:e.enabled,summary:e.summary,hasErrors:e.hasErrors,deleteDaysThreshold:e.deleteDaysThreshold},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingCrossplatformMediaretentionpolicy(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling getRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingJobFailedrecordings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getRecordingJobFailedrecordings';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}/failedrecordings","GET",{jobId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,includeTotal:n.includeTotal,cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/jobs","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,state:e.state,showOnlyMyJobs:e.showOnlyMyJobs,jobType:e.jobType,includeTotal:e.includeTotal,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingKeyconfiguration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling getRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","GET",{keyConfigurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingKeyconfigurations(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/keyconfigurations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingMediaretentionpolicies(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,enabled:e.enabled,summary:e.summary,hasErrors:e.hasErrors,deleteDaysThreshold:e.deleteDaysThreshold},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingMediaretentionpolicy(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling getRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingRecordingkeys(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/recordingkeys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingRecordingkeysRotationschedule(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/recordingkeys/rotationschedule","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/settings","GET",{},{createDefault:e.createDefault},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRecordingUploadsReport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "reportId" when calling getRecordingUploadsReport';return this.apiClient.callApi("/api/v2/recording/uploads/reports/{reportId}","GET",{reportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingsRetentionQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:n.cursor,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRecordingsScreensessionsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/recordings/screensessions/details","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchRecordingCrossplatformMediaretentionpolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(n==null)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRecordingMediaretentionpolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(n==null)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationRecordingAnnotations(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(i==null)throw'Missing the required parameter "body" when calling postConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","POST",{conversationId:e,recordingId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postRecordingBatchrequests(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingBatchrequests';return this.apiClient.callApi("/api/v2/recording/batchrequests","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingCrossplatformMediaretentionpolicies(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingCrossplatformMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingJobs';return this.apiClient.callApi("/api/v2/recording/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingKeyconfigurations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingKeyconfigurations';return this.apiClient.callApi("/api/v2/recording/keyconfigurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingKeyconfigurationsValidate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingKeyconfigurationsValidate';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingLocalkeys(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingLocalkeys';return this.apiClient.callApi("/api/v2/recording/localkeys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingMediaretentionpolicies(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingRecordingkeys(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/recordingkeys","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postRecordingUploadsReports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingUploadsReports';return this.apiClient.callApi("/api/v2/recording/uploads/reports","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingsDeletionprotection(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingsDeletionprotection';return this.apiClient.callApi("/api/v2/recordings/deletionprotection","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingsScreensessionsAcknowledge(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingsScreensessionsAcknowledge';return this.apiClient.callApi("/api/v2/recordings/screensessions/acknowledge","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRecordingsScreensessionsMetadata(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRecordingsScreensessionsMetadata';return this.apiClient.callApi("/api/v2/recordings/screensessions/metadata","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationRecording(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(i==null)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:n},{clearExport:a.clearExport},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putConversationRecordingAnnotation(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(n==null||n==="")throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling putConversationRecordingAnnotation';if(a==null)throw'Missing the required parameter "body" when calling putConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","PUT",{conversationId:e,recordingId:n,annotationId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putOrphanrecording(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingCrossplatformMediaretentionpolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(n==null)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putRecordingJob';if(n==null)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingKeyconfiguration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(n==null)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingMediaretentionpolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(n==null)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingRecordingkeysRotationschedule(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putRecordingRecordingkeysRotationschedule';return this.apiClient.callApi("/api/v2/recording/recordingkeys/rotationschedule","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putRecordingSettings';return this.apiClient.callApi("/api/v2/recording/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingsDeletionprotection(e){return e=e||{},this.apiClient.callApi("/api/v2/recordings/deletionprotection","PUT",{},{protect:e.protect},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},Qb=class{constructor(e){this.apiClient=e||k.instance}deleteResponsemanagementLibrary(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling deleteResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","DELETE",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteResponsemanagementResponse(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling deleteResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","DELETE",{responseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteResponsemanagementResponseasset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling deleteResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","DELETE",{responseAssetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getResponsemanagementLibrary(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling getResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","GET",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getResponsemanagementResponse(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling getResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","GET",{responseId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getResponsemanagementResponseasset(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling getResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","GET",{responseAssetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getResponsemanagementResponseassetsStatusStatusId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "statusId" when calling getResponsemanagementResponseassetsStatusStatusId';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/status/{statusId}","GET",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getResponsemanagementResponses(e,n){if(n=n||{},e==null)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:n.pageNumber,pageSize:n.pageSize,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementLibraries(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibraries';return this.apiClient.callApi("/api/v2/responsemanagement/libraries","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementLibrariesBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesBulk';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/bulk","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementLibrariesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/query","POST",{},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementResponseassetsBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponseassetsBulk';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/bulk","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementResponseassetsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponseassetsSearch';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/search","POST",{},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementResponseassetsUploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponseassetsUploads';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementResponses(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:n.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postResponsemanagementResponsesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponsesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/responses/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementLibrary(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(n==null)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putResponsemanagementResponse(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(n==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:i.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putResponsemanagementResponseasset(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(n==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Yb=class{constructor(e){this.apiClient=e||k.instance}deleteRoutingAssessment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assessmentId" when calling deleteRoutingAssessment';return this.apiClient.callApi("/api/v2/routing/assessments/{assessmentId}","DELETE",{assessmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingDirectroutingbackupSettingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteRoutingEmailDomain(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingEmailDomainRoute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(n==null||n==="")throw'Missing the required parameter "routeId" when calling deleteRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","DELETE",{domainName:e,routeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingEmailOutboundDomain(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingLanguage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling deleteRoutingLanguage';return this.apiClient.callApi("/api/v2/routing/languages/{languageId}","DELETE",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingPredictor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling deleteRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","DELETE",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingPredictorsKeyperformanceindicator(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "kpiId" when calling deleteRoutingPredictorsKeyperformanceindicator';return this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicators/{kpiId}","DELETE",{kpiId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueue(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","DELETE",{queueId:e},{forceDelete:n.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueMember(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueWrapupcode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(n==null||n==="")throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteRoutingSkill(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling deleteRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","DELETE",{skillId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingSkillgroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling deleteRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","DELETE",{skillGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingSmsAddress(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling deleteRoutingSmsAddress';return this.apiClient.callApi("/api/v2/routing/sms/addresses/{addressId}","DELETE",{addressId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingSmsPhonenumber(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling deleteRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","DELETE",{phoneNumberId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingUserUtilization(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingUtilization(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteRoutingUtilizationLabel(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling deleteRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","DELETE",{labelId:e},{forceDelete:n.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingUtilizationTag(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:n.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingWrapupcode(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling deleteRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","DELETE",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutinglanguage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(n==null||n==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteUserRoutingskill(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(n==null||n==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingAssessment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assessmentId" when calling getRoutingAssessment';return this.apiClient.callApi("/api/v2/routing/assessments/{assessmentId}","GET",{assessmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessments(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,queueId:this.apiClient.buildCollectionParam(e.queueId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingAssessmentsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getRoutingAssessmentsJob';return this.apiClient.callApi("/api/v2/routing/assessments/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessmentsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments/jobs","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingAvailablemediatypes(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/availablemediatypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingDirectroutingbackupSettingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailDomain(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","GET",{domainId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainDkim(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getRoutingEmailDomainDkim';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/dkim","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainMailfrom(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRoute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(n==null||n==="")throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","GET",{domainName:e,routeId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainRouteIdentityresolution(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';if(n==null||n==="")throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRouteIdentityresolution';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}/identityresolution","GET",{domainName:e,routeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainRoutes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","GET",{domainName:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,pattern:n.pattern,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainVerification(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getRoutingEmailDomainVerification';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/verification","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,excludeStatus:e.excludeStatus,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailOutboundDomain(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","GET",{domainId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailOutboundDomainActivation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainActivation';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/activation","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSetup(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingLanguage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getRoutingLanguage';return this.apiClient.callApi("/api/v2/routing/languages/{languageId}","GET",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/languages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingMessageRecipient(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling getRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","GET",{recipientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingMessageRecipients(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/message/recipients","GET",{},{messengerType:e.messengerType,name:e.name,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingPredictor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorModelFeatures(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(n==null||n==="")throw'Missing the required parameter "modelId" when calling getRoutingPredictorModelFeatures';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}/models/{modelId}/features","GET",{predictorId:e,modelId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingPredictorModels(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModels';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}/models","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,queueId:this.apiClient.buildCollectionParam(e.queueId,"multi"),kpiId:e.kpiId,state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingPredictorsKeyperformanceindicator(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "kpiId" when calling getRoutingPredictorsKeyperformanceindicator';return this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicators/{kpiId}","GET",{kpiId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorsKeyperformanceindicators(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicators","GET",{},{kpiGroup:e.kpiGroup,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingPredictorsKeyperformanceindicatortypes(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicatortypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingQueue(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","GET",{queueId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueAssistant(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueAssistant';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/assistant","GET",{queueId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),languageVariation:n.languageVariation,fallbackToPrimaryAssistant:n.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueComparisonperiod(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(n==null||n==="")throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueComparisonperiods(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiods';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods","GET",{queueId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueEstimatedwaittime(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueEstimatedwaittime';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/estimatedwaittime","GET",{queueId:e},{conversationId:n.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueIdentityresolution(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","GET",{queueId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueMediatypeEstimatedwaittime(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(n==null||n==="")throw'Missing the required parameter "mediaType" when calling getRoutingQueueMediatypeEstimatedwaittime';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime","GET",{queueId:e,mediaType:n},{labelId:i.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueMembers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","GET",{queueId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),name:n.name,profileSkills:this.apiClient.buildCollectionParam(n.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(n.skills,"multi"),languages:this.apiClient.buildCollectionParam(n.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(n.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(n.presence,"multi"),memberBy:n.memberBy,joined:n.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueUsers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","GET",{queueId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),joined:n.joined,name:n.name,profileSkills:this.apiClient.buildCollectionParam(n.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(n.skills,"multi"),languages:this.apiClient.buildCollectionParam(n.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(n.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(n.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueWrapupcodes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","GET",{queueId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,name:n.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),peerId:this.apiClient.buildCollectionParam(e.peerId,"multi"),cannedResponseLibraryId:e.cannedResponseLibraryId,hasPeer:e.hasPeer,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingQueuesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingQueuesDivisionviewsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/divisionviews/all","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingQueuesMe(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,joined:e.joined,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSettingsContactcenter(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/settings/contactcenter","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSettingsTranscription(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/settings/transcription","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSkill(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling getRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","GET",{skillId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSkillgroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","GET",{skillGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSkillgroupMembers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroupMembers';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members","GET",{skillGroupId:e},{pageSize:n.pageSize,after:n.after,before:n.before,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSkillgroupMembersDivisions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroupMembersDivisions';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members/divisions","GET",{skillGroupId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSkillgroups(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skillgroups","GET",{},{pageSize:e.pageSize,name:e.name,after:e.after,before:e.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSkills(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skills","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSmsAddress(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling getRoutingSmsAddress';return this.apiClient.callApi("/api/v2/routing/sms/addresses/{addressId}","GET",{addressId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsAddresses(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/sms/addresses","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSmsAvailablephonenumbers(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(n==null)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:i.region,city:i.city,areaCode:i.areaCode,phoneNumberType:n,pattern:i.pattern,addressRequirement:i.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingSmsIdentityresolutionPhonenumber(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling getRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","GET",{addressId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsPhonenumber(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling getRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","GET",{phoneNumberId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsPhonenumbers(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/sms/phonenumbers","GET",{},{phoneNumber:e.phoneNumber,phoneNumberType:this.apiClient.buildCollectionParam(e.phoneNumberType,"multi"),phoneNumberStatus:this.apiClient.buildCollectionParam(e.phoneNumberStatus,"multi"),countryCode:this.apiClient.buildCollectionParam(e.countryCode,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,language:e.language,"integration.id":e.integrationId,"supportedContent.id":e.supportedContentId,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUserDirectroutingbackupSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingUserUtilization(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingUtilization(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationLabel(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","GET",{labelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingUtilizationLabelAgents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabelAgents';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}/agents","GET",{labelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationTag(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingUtilizationTagAgents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcode(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling getRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","GET",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingWrapupcodes(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/wrapupcodes","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcodesDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling getRoutingWrapupcodesDivisionview';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/divisionviews/{codeId}","GET",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingWrapupcodesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/wrapupcodes/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),includeState:e.includeState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUserQueues(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,joined:n.joined,divisionId:this.apiClient.buildCollectionParam(n.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserRoutinglanguages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserRoutingskills(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserSkillgroups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserSkillgroups';return this.apiClient.callApi("/api/v2/users/{userId}/skillgroups","GET",{userId:e},{pageSize:n.pageSize,after:n.after,before:n.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingConversation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingEmailDomain(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingEmailDomainValidate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingEmailOutboundDomain(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailOutboundDomain';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","PATCH",{domainId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingPredictor(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingPredictorsKeyperformanceindicator(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "kpiId" when calling patchRoutingPredictorsKeyperformanceindicator';return this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicators/{kpiId}","PATCH",{kpiId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingQueueMember(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","PATCH",{queueId:e,memberId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueMembers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingQueueUser(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","PATCH",{queueId:e,memberId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueUsers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingSettingsContactcenter(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchRoutingSettingsContactcenter';return this.apiClient.callApi("/api/v2/routing/settings/contactcenter","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSettingsTranscription(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchRoutingSettingsTranscription';return this.apiClient.callApi("/api/v2/routing/settings/transcription","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSkill(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling patchRoutingSkill';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","PATCH",{skillId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingSkillgroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingSmsPhonenumber(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PATCH",{phoneNumberId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserQueue(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(n==null||n==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(i==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","PATCH",{userId:e},{divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserRoutinglanguage(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(n==null||n==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserRoutingskillsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsQueuesObservationsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/queues/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsRoutingActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingAssessments(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postRoutingAssessmentsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postRoutingEmailDomainDkim(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainDkim';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/dkim","POST",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainMailfrom(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';if(n==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","POST",{domainId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainRoutes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(n==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainTestconnection(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainTestconnection';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/testconnection","POST",{domainId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainVerification(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainVerification';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/verification","POST",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomains(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomains';return this.apiClient.callApi("/api/v2/routing/email/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailOutboundDomainTestconnection(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailOutboundDomainTestconnection';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/testconnection","POST",{domainId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailOutboundDomains(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingEmailOutboundDomains';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailOutboundDomainsSimulated(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingEmailOutboundDomainsSimulated';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/simulated","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingLanguages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingLanguages';return this.apiClient.callApi("/api/v2/routing/languages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postRoutingPredictorsKeyperformanceindicators(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingPredictorsKeyperformanceindicators';return this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicators","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueMembers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(n==null)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:i._delete},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingQueueUsers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(n==null)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:i._delete},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingQueueWrapupcodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(n==null)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingQueues(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingQueues';return this.apiClient.callApi("/api/v2/routing/queues","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingSkillgroupMembersDivisions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling postRoutingSkillgroupMembersDivisions';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members/divisions","POST",{skillGroupId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingSkillgroups(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSkillgroups';return this.apiClient.callApi("/api/v2/routing/skillgroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingSkills(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSkills';return this.apiClient.callApi("/api/v2/routing/skills","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingSmsAddresses(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSmsAddresses';return this.apiClient.callApi("/api/v2/routing/sms/addresses","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingSmsPhonenumbers(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingSmsPhonenumbersAlphanumeric(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersAlphanumeric';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/alphanumeric","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingSmsPhonenumbersImport(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersImport';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/import","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingUtilizationLabels(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationLabels';return this.apiClient.callApi("/api/v2/routing/utilization/labels","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingUtilizationTags(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingWrapupcodes(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingWrapupcodes';return this.apiClient.callApi("/api/v2/routing/wrapupcodes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutinglanguages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(n==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserRoutingskills(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(n==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingEmailDomainRoute(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(n==null||n==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(i==null)throw'Missing the required parameter "body" when calling putRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","PUT",{domainName:e,routeId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailDomainRouteIdentityresolution(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';if(n==null||n==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putRoutingEmailDomainRouteIdentityresolution';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}/identityresolution","PUT",{domainName:e,routeId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailOutboundDomainActivation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putRoutingEmailOutboundDomainActivation';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/activation","PUT",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingMessageRecipient(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(n==null)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingQueue(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(n==null)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingQueueIdentityresolution(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';if(n==null)throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","PUT",{queueId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putRoutingSettings';return this.apiClient.callApi("/api/v2/routing/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSettingsTranscription(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putRoutingSettingsTranscription';return this.apiClient.callApi("/api/v2/routing/settings/transcription","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSmsIdentityresolutionPhonenumber(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';if(n==null)throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","PUT",{addressId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(n==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingUserUtilization(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(n==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingUtilization(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putRoutingUtilization';return this.apiClient.callApi("/api/v2/routing/utilization","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUtilizationLabel(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(n==null)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingWrapupcode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(n==null)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserRoutingskill(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(n==null||n==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Xb=class{constructor(e){this.apiClient=e||k.instance}deleteScimUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","DELETE",{userId:e},{},{"If-Match":n.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}deleteScimV2User(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","DELETE",{userId:e},{},{"If-Match":n.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimGroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","GET",{groupId:e},{attributes:this.apiClient.buildCollectionParam(n.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(n.excludedAttributes,"multi")},{"If-None-Match":n.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/groups","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimResourcetype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "resourceType" when calling getScimResourcetype';return this.apiClient.callApi("/api/v2/scim/resourcetypes/{resourceType}","GET",{resourceType:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimResourcetypes(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/resourcetypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getScimSchema';return this.apiClient.callApi("/api/v2/scim/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/schemas","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimServiceproviderconfig(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/serviceproviderconfig","GET",{},{},{"If-None-Match":e.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","GET",{userId:e},{attributes:this.apiClient.buildCollectionParam(n.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(n.excludedAttributes,"multi")},{"If-None-Match":n.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/users","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimV2Group(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","GET",{groupId:e},{attributes:this.apiClient.buildCollectionParam(n.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(n.excludedAttributes,"multi")},{"If-None-Match":n.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimV2Groups(e,n){if(n=n||{},e==null)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:n.startIndex,count:n.count,attributes:this.apiClient.buildCollectionParam(n.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(n.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimV2Resourcetype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "resourceType" when calling getScimV2Resourcetype';return this.apiClient.callApi("/api/v2/scim/v2/resourcetypes/{resourceType}","GET",{resourceType:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimV2Resourcetypes(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/resourcetypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimV2Schema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getScimV2Schema';return this.apiClient.callApi("/api/v2/scim/v2/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimV2Schemas(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/schemas","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimV2Serviceproviderconfig(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/serviceproviderconfig","GET",{},{},{"If-None-Match":e.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}getScimV2User(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","GET",{userId:e},{attributes:this.apiClient.buildCollectionParam(n.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(n.excludedAttributes,"multi")},{"If-None-Match":n.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],n.customHeaders)}getScimV2Users(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/users","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],e.customHeaders)}patchScimGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimGroup';if(n==null)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}patchScimUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimUser';if(n==null)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}patchScimV2Group(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(n==null)throw'Missing the required parameter "body" when calling patchScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}patchScimV2User(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimV2User';if(n==null)throw'Missing the required parameter "body" when calling patchScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","PATCH",{userId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}postScimUsers(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postScimUsers';return this.apiClient.callApi("/api/v2/scim/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}postScimV2Users(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postScimV2Users';return this.apiClient.callApi("/api/v2/scim/v2/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimGroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimGroup';if(n==null)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}putScimUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimUser';if(n==null)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}putScimV2Group(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimV2Group';if(n==null)throw'Missing the required parameter "body" when calling putScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}putScimV2User(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimV2User';if(n==null)throw'Missing the required parameter "body" when calling putScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","PUT",{userId:e},{},{"If-Match":i.ifMatch},{},n,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],i.customHeaders)}},ey=class{constructor(e){this.apiClient=e||k.instance}getScript(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScript';return this.apiClient.callApi("/api/v2/scripts/{scriptId}","GET",{scriptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptPage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPage';if(n==null||n==="")throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:n},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptPages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPages';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages","GET",{scriptId:e},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScripts(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,sortBy:e.sortBy,sortOrder:e.sortOrder,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScriptsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,sortBy:e.sortBy,sortOrder:e.sortOrder,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScriptsPublished(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScriptsPublishedDivisionviewVariables(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedDivisionviewVariables';return this.apiClient.callApi("/api/v2/scripts/published/divisionviews/{scriptId}/variables","GET",{scriptId:e},{input:n.input,output:n.output,type:n.type,scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScriptsPublishedScriptId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptId';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}","GET",{scriptId:e},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdPage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(n==null||n==="")throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:n},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdPages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPages';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages","GET",{scriptId:e},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdVariables(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdVariables';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/variables","GET",{scriptId:e},{input:n.input,output:n.output,type:n.type,scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsUploadStatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "uploadId" when calling getScriptsUploadStatus';return this.apiClient.callApi("/api/v2/scripts/uploads/{uploadId}/status","GET",{uploadId:e},{longPoll:n.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postScriptExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postScriptsPublished(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published","POST",{},{scriptDataVersion:e.scriptDataVersion},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},ny=class{constructor(e){this.apiClient=e||k.instance}getDocumentationGknSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getDocumentationGknSearch';return this.apiClient.callApi("/api/v2/documentation/gkn/search","GET",{},{q64:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getDocumentationSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getDocumentationSearch';return this.apiClient.callApi("/api/v2/documentation/search","GET",{},{q64:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGroupsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLocationsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getSearch';return this.apiClient.callApi("/api/v2/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),profile:n.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSearchSuggest(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),profile:n.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getUsersSearch';return this.apiClient.callApi("/api/v2/users/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),integrationPresenceSource:n.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsCustomattributesSearch';return this.apiClient.callApi("/api/v2/conversations/customattributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsParticipantsAttributesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';return this.apiClient.callApi("/api/v2/conversations/participants/attributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postDocumentationAllSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postDocumentationAllSearch';return this.apiClient.callApi("/api/v2/documentation/all/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postDocumentationGknSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postDocumentationGknSearch';return this.apiClient.callApi("/api/v2/documentation/gkn/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postDocumentationSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postDocumentationSearch';return this.apiClient.callApi("/api/v2/documentation/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroupsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocationsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:n.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSearchSuggest(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:n.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';return this.apiClient.callApi("/api/v2/speechandtextanalytics/transcripts/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeamsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTeamsSearch';return this.apiClient.callApi("/api/v2/teams/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearch';return this.apiClient.callApi("/api/v2/users/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearchConversationTarget(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearchConversationTarget';return this.apiClient.callApi("/api/v2/users/search/conversation/target","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearchQueuemembersManage(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearchQueuemembersManage';return this.apiClient.callApi("/api/v2/users/search/queuemembers/manage","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearchTeamsAssign(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';return this.apiClient.callApi("/api/v2/users/search/teams/assign","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postVoicemailSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},iy=class{constructor(e){this.apiClient=e||k.instance}deleteEmailsSettingsThreading(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings/threading","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteExternalcontactsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","DELETE",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getEmailsSettingsThreading(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings/threading","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSettingsExecutiondata(e){return e=e||{},this.apiClient.callApi("/api/v2/settings/executiondata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchEmailsSettingsThreading(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings/threading","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSettingsExecutiondata(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';return this.apiClient.callApi("/api/v2/settings/executiondata","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(n==null)throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PATCH",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(n==null)throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PUT",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ty=class{constructor(e){this.apiClient=e||k.instance}deleteSocialmediaEscalationrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling deleteSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","DELETE",{escalationRuleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaMessage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling deleteSocialmediaMessage';return this.apiClient.callApi("/api/v2/socialmedia/messages/{messageId}","DELETE",{messageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopic(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","DELETE",{topicId:e},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","DELETE",{topicId:e,facebookIngestionRuleId:n},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}","DELETE",{topicId:e,googleBusinessProfileIngestionRuleId:n},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}","DELETE",{topicId:e,instagramIngestionRuleId:n},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(n==null||n==="")throw'Missing the required parameter "openId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","DELETE",{topicId:e,openId:n},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","DELETE",{topicId:e,twitterIngestionRuleId:n},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaAnalyticsAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSocialmediaAnalyticsAggregatesJob';return this.apiClient.callApi("/api/v2/socialmedia/analytics/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSocialmediaAnalyticsAggregatesJobResults';return this.apiClient.callApi("/api/v2/socialmedia/analytics/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsMessagesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSocialmediaAnalyticsMessagesJob';return this.apiClient.callApi("/api/v2/socialmedia/analytics/messages/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsMessagesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSocialmediaAnalyticsMessagesJobResults';return this.apiClient.callApi("/api/v2/socialmedia/analytics/messages/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaEscalationrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling getSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","GET",{escalationRuleId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaEscalationrules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "divisionId" when calling getSocialmediaEscalationrules';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules","GET",{},{pageNumber:n.pageNumber,pageSize:n.pageSize,divisionId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopic(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","GET",{topicId:e},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrules(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrules';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules","GET",{topicId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","GET",{topicId:e,facebookIngestionRuleId:n},{includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(n==null||n==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,facebookIngestionRuleId:n,dataIngestionRuleVersion:i},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(n==null||n==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions","GET",{topicId:e,facebookIngestionRuleId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}","GET",{topicId:e,googleBusinessProfileIngestionRuleId:n},{includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(n==null||n==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,googleBusinessProfileIngestionRuleId:n,dataIngestionRuleVersion:i},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';if(n==null||n==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}/versions","GET",{topicId:e,googleBusinessProfileIngestionRuleId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}","GET",{topicId:e,instagramIngestionRuleId:n},{includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(n==null||n==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,instagramIngestionRuleId:n,dataIngestionRuleVersion:i},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';if(n==null||n==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}/versions","GET",{topicId:e,instagramIngestionRuleId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(n==null||n==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","GET",{topicId:e,openId:n},{includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(n==null||n==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(i==null||i==="")throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,openId:n,dataIngestionRuleVersion:i},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(n==null||n==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions","GET",{topicId:e,openId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","GET",{topicId:e,twitterIngestionRuleId:n},{includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(n==null||n==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,twitterIngestionRuleId:n,dataIngestionRuleVersion:i},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(n==null||n==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions","GET",{topicId:e,twitterIngestionRuleId:n},{pageNumber:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/socialmedia/topics","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),includeDeleted:e.includeDeleted,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSocialmediaTopic(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","PATCH",{topicId:e,facebookIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}","PATCH",{topicId:e,googleBusinessProfileIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}","PATCH",{topicId:e,instagramIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(n==null||n==="")throw'Missing the required parameter "openId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","PATCH",{topicId:e,openId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","PATCH",{topicId:e,twitterIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaAnalyticsAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSocialmediaAnalyticsAggregatesJobs';return this.apiClient.callApi("/api/v2/socialmedia/analytics/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaAnalyticsMessagesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSocialmediaAnalyticsMessagesJobs';return this.apiClient.callApi("/api/v2/socialmedia/analytics/messages/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaEscalationrules(e){return e=e||{},this.apiClient.callApi("/api/v2/socialmedia/escalationrules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postSocialmediaEscalationsMessages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "divisionId" when calling postSocialmediaEscalationsMessages';return this.apiClient.callApi("/api/v2/socialmedia/escalations/messages","POST",{},{divisionId:e},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaTopicDataingestionrulesFacebook(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook","POST",{topicId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaTopicDataingestionrulesGooglebusinessprofile(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesGooglebusinessprofile';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile","POST",{topicId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaTopicDataingestionrulesInstagram(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesInstagram';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram","POST",{topicId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaTopicDataingestionrulesOpen(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpen';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open","POST",{topicId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(i==null)throw'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/messages/bulk","POST",{topicId:e,ruleId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(i==null)throw'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/reactions/bulk","POST",{topicId:e,ruleId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesTwitter(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesTwitter';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter","POST",{topicId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/socialmedia/topics","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postSocialmediaTwitterHistoricalTweets(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSocialmediaTwitterHistoricalTweets';return this.apiClient.callApi("/api/v2/socialmedia/twitter/historical/tweets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaEscalationrule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling putSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","PUT",{escalationRuleId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","PUT",{topicId:e,facebookIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}","PUT",{topicId:e,googleBusinessProfileIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}","PUT",{topicId:e,instagramIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesOpenOpenId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(n==null||n==="")throw'Missing the required parameter "openId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","PUT",{topicId:e,openId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(n==null||n==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","PUT",{topicId:e,twitterIngestionRuleId:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ay=class{constructor(e){this.apiClient=e||k.instance}deleteSpeechandtextanalyticsCategory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling deleteSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","DELETE",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","DELETE",{dictionaryFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSpeechandtextanalyticsProgram(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","DELETE",{programId:e},{forceDelete:n.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSpeechandtextanalyticsReprocessingJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteSpeechandtextanalyticsReprocessingJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSpeechandtextanalyticsSentimentfeedback(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}","DELETE",{sentimentFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSpeechandtextanalyticsTopic(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","DELETE",{topicId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsCategories(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/categories","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortOrder:e.sortOrder,sortBy:e.sortBy,ids:this.apiClient.buildCollectionParam(e.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsCategory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling getSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","GET",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversation';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCategories(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCategories';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/categories","GET",{conversationId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturl","GET",{conversationId:e,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturls","GET",{conversationId:e,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationSentiments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationSentiments';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/sentiments","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationSummaries(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationSummaries';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/summaries","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsDictionaryfeedback(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback","GET",{},{dialect:e.dialect,transcriptionEngine:e.transcriptionEngine,nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling getSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","GET",{dictionaryFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsProgram(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsProgramMappings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsProgramSettingsInsights(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsProgramTranscriptionengines(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsPrograms(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsGeneralJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsGeneralJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/general/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsProgramsMappings(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/mappings","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsPublishjob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsPublishjob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/publishjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsProgramsSettingsInsights(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/insights","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,programIds:this.apiClient.buildCollectionParam(e.programIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsTopiclinksJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsTopiclinksJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/topiclinks/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsProgramsTranscriptionenginesDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/transcriptionengines/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsUnpublished(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/unpublished","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsReprocessingJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsReprocessingJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsReprocessingJobInteractions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsReprocessingJobInteractions';return this.apiClient.callApi("/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}/interactions","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsReprocessingJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/reprocessing/jobs","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsSentimentDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/sentiment/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsSentimentfeedback(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopic(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","GET",{topicId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,pageNumber:e.pageNumber,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsPublishjob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsPublishjob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/publishjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTopicsTestphraseJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsTestphraseJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/testphrase/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTranslationsLanguageConversation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(n==null||n==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';return this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages/{languageId}/conversations/{conversationId}","GET",{languageId:e,conversationId:n},{communicationId:i.communicationId,recordingId:i.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsTranslationsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSpeechandtextanalyticsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchSpeechandtextanalyticsSettings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsCategories(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsCategories';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsDictionaryfeedback(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsDictionaryfeedback';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsPrograms(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsPrograms';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsProgramsGeneralJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsGeneralJobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/general/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsProgramsPublishjobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsPublishjobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/publishjobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsReprocessingJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsReprocessingJobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/reprocessing/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsSentimentfeedback(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsTopics(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopics';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsTopicsPublishjobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsPublishjobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/publishjobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsTopicsTestphraseJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsTestphraseJobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/testphrase/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';return this.apiClient.callApi("/api/v2/speechandtextanalytics/transcripts/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsCategory(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(n==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgram(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(n==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgramMappings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(n==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgramSettingsInsights(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';if(n==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","PUT",{programId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgramTranscriptionengines(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(n==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsSettings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsTopic(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(n==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ry=class{constructor(e){this.apiClient=e||k.instance}deleteStationAssociateduser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "stationId" when calling deleteStationAssociateduser';return this.apiClient.callApi("/api/v2/stations/{stationId}/associateduser","DELETE",{stationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getStation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "stationId" when calling getStation';return this.apiClient.callApi("/api/v2/stations/{stationId}","GET",{stationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getStations(e){return e=e||{},this.apiClient.callApi("/api/v2/stations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,name:e.name,userSelectable:e.userSelectable,webRtcUserId:e.webRtcUserId,id:e.id,lineAppearanceId:e.lineAppearanceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},sy=class{constructor(e){this.apiClient=e||k.instance}getSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getSearch';return this.apiClient.callApi("/api/v2/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),profile:n.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSearchSuggest(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),profile:n.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:n.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSearchSuggest(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:n.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},oy=class{constructor(e){this.apiClient=e||k.instance}deleteTaskmanagementWorkbin(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling deleteTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","DELETE",{workbinId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorkitem(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling deleteTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","DELETE",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorkitemsBulkAddJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkAddJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}","DELETE",{bulkJobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorkitemsBulkTerminateJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkTerminateJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}","DELETE",{bulkJobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorkitemsSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling deleteTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","DELETE",{worktypeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsDatebasedRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules/{ruleId}","DELETE",{worktypeId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","DELETE",{worktypeId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsOncreateRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","DELETE",{worktypeId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteTaskmanagementWorktypeStatus(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(n==null||n==="")throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbin(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","GET",{workbinId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinHistory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinHistory';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/history","GET",{workbinId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(n==null)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkbinVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/versions/{entityVersion}","GET",{workbinId:e,entityVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbinVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/versions","GET",{workbinId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitem(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","GET",{workitemId:e},{expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemHistory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemHistory';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/history","GET",{workitemId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemUserWrapups(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(n==null||n==="")throw'Missing the required parameter "userId" when calling getTaskmanagementWorkitemUserWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups","GET",{workitemId:e,userId:n},{expands:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(n==null)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkitemVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/versions/{entityVersion}","GET",{workitemId:e,entityVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/versions","GET",{workitemId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemWrapups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/wrapups","GET",{workitemId:e},{expands:n.expands,after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsBulkAddJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}","GET",{bulkJobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsBulkAddJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJobResults';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}/results","GET",{bulkJobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsBulkJobsUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/jobs/users/me","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,action:e.action},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}","GET",{bulkJobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJobResults';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}/results","GET",{bulkJobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsQueryJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsQueryJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJobResults';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getTaskmanagementWorkitemsSchemaVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemsSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTaskmanagementWorkitemsSchemasCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coreTypeName" when calling getTaskmanagementWorkitemsSchemasCoretype';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/coretypes/{coreTypeName}","GET",{coreTypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemasCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTaskmanagementWorkitemsSchemasLimits(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTaskmanagementWorktype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","GET",{worktypeId:e},{expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules/{ruleId}","GET",{worktypeId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRules(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules","GET",{worktypeId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","GET",{worktypeId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules","GET",{worktypeId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","GET",{worktypeId:e,ruleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRules(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules","GET",{worktypeId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeHistory(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeHistory';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/history","GET",{worktypeId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder,fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeStatus(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(n==null||n==="")throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeStatuses(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","GET",{worktypeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(n==null)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorktypeVersion';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/versions/{entityVersion}","GET",{worktypeId:e,entityVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersions';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/versions","GET",{worktypeId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkbin(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(n==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkitem(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(n==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkitemAssignment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(n==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkitemUserWrapups(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(n==null||n==="")throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUserWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups","PATCH",{workitemId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorkitemUsersMeWrapups(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(n==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUsersMeWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/me/wrapups","PATCH",{workitemId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkitemsBulkAddJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';if(n==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkAddJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}","PATCH",{bulkJobId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkitemsBulkTerminateJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';if(n==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkTerminateJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}","PATCH",{bulkJobId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorktype(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(n==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorktypeFlowsDatebasedRule(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules/{ruleId}","PATCH",{worktypeId:e,ruleId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","PATCH",{worktypeId:e,ruleId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOncreateRule(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(n==null||n==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","PATCH",{worktypeId:e,ruleId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeStatus(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(n==null||n==="")throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","PATCH",{worktypeId:e,statusId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTaskmanagementWorkbins(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkbins';return this.apiClient.callApi("/api/v2/taskmanagement/workbins","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkbinsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkbinsQuery';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemAcdCancel(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemAcdCancel';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/acd/cancel","POST",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemDisconnect(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemDisconnect';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/disconnect","POST",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemTerminate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemTerminate';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/terminate","POST",{workitemId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitems(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitems';return this.apiClient.callApi("/api/v2/taskmanagement/workitems","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemsBulkAddJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkAddJobs';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/add/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemsBulkTerminateJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkTerminateJobs';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/bulk/terminate/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQuery';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemsQueryJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQueryJobs';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorkitemsSchemas(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsSchemas';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsDatebasedRules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';if(n==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsDatebasedRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules","POST",{worktypeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(n==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules","POST",{worktypeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorktypeFlowsOncreateRules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(n==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOncreateRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules","POST",{worktypeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorktypeStatuses(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(n==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorktypes(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypes';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypesQuery';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTaskmanagementWorkitemsSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(n==null)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ly=class{constructor(e){this.apiClient=e||k.instance}deleteTeam(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","DELETE",{teamId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTeamMembers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(n==null)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTeam(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeamMembers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","GET",{teamId:e},{pageSize:n.pageSize,before:n.before,after:n.after,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeams(e){return e=e||{},this.apiClient.callApi("/api/v2/teams","GET",{},{pageSize:e.pageSize,name:e.name,after:e.after,before:e.before,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchTeam(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling patchTeam';if(n==null)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTeamsActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeamMembers(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postTeamMembers';if(n==null)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTeams(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTeams';return this.apiClient.callApi("/api/v2/teams","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeamsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTeamsSearch';return this.apiClient.callApi("/api/v2/teams/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},uy=class{constructor(e){this.apiClient=e||k.instance}getTelephonyAgentGreetings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyAgentsGreetingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyCallsMetrics(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/calls/metrics","GET",{},{metricType:e.metricType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyMediaregions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySipmessagesConversation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonySipmessagesConversation';return this.apiClient.callApi("/api/v2/telephony/sipmessages/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySipmessagesConversationHeaders(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonySipmessagesConversationHeaders';return this.apiClient.callApi("/api/v2/telephony/sipmessages/conversations/{conversationId}/headers","GET",{conversationId:e},{keys:this.apiClient.buildCollectionParam(n.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySiptraces(e,n,i){if(i=i||{},e==null)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(n==null)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:i.callId,toUser:i.toUser,fromUser:i.fromUser,conversationId:i.conversationId,dateStart:e,dateEnd:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonySiptracesDownloadDownloadId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getTelephonySiptracesDownloadDownloadId';return this.apiClient.callApi("/api/v2/telephony/siptraces/download/{downloadId}","GET",{downloadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonySiptracesDownload(e,n){if(n=n||{},e==null)throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';return this.apiClient.callApi("/api/v2/telephony/siptraces/download","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyAgentGreetings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","PUT",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyAgentsGreetingsMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putTelephonyAgentsGreetingsMe';return this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonySettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putTelephonySettings';return this.apiClient.callApi("/api/v2/telephony/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},cy=class{constructor(e){this.apiClient=e||k.instance}deleteTelephonyProvidersEdge(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","DELETE",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgeLogicalinterface(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(n==null||n==="")throw'Missing the required parameter "interfaceId" when calling deleteTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","DELETE",{edgeId:e,interfaceId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteTelephonyProvidersEdgeSoftwareupdate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","DELETE",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesAlertablepresences(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteTelephonyProvidersEdgesCertificateauthority(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling deleteTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","DELETE",{certificateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesDidpool(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling deleteTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","DELETE",{didPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesEdgegroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling deleteTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","DELETE",{edgeGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesExtensionpool(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling deleteTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","DELETE",{extensionPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesPhone(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling deleteTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","DELETE",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesPhonebasesetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling deleteTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","DELETE",{phoneBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesSite(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","DELETE",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesSiteOutboundroute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(n==null||n==="")throw'Missing the required parameter "outboundRouteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","DELETE",{siteId:e,outboundRouteId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteTelephonyProvidersEdgesTrunkbasesetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling deleteTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","DELETE",{trunkBaseSettingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdge(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","GET",{edgeId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeDiagnosticNslookup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticNslookup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeDiagnosticPing(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticPing';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeDiagnosticRoute(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticRoute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeDiagnosticTracepath(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticTracepath';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogicalinterface(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(n==null||n==="")throw'Missing the required parameter "interfaceId" when calling getTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","GET",{edgeId:e,interfaceId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeLogicalinterfaces(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","GET",{edgeId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogsJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getTelephonyProvidersEdgeLogsJob';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}","GET",{edgeId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeMetrics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/metrics","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgePhysicalinterface(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(n==null||n==="")throw'Missing the required parameter "interfaceId" when calling getTelephonyProvidersEdgePhysicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces/{interfaceId}","GET",{edgeId:e,interfaceId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgePhysicalinterfaces(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeSetuppackage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSetuppackage';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/setuppackage","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeSoftwareupdate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeSoftwareversions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSoftwareversions';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareversions","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeTrunks(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeTrunks';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/trunks","GET",{edgeId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortBy:n.sortBy,sortOrder:n.sortOrder,"trunkBase.id":n.trunkBaseId,trunkType:n.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdges(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,"site.id":e.siteId,"edgeGroup.id":e.edgeGroupId,sortBy:e.sortBy,managed:e.managed,showCloudMedia:e.showCloudMedia},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesAlertablepresences(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","GET",{},{type:e.type},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesCertificateauthorities(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesCertificateauthority(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling getTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","GET",{certificateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesDid(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didId" when calling getTelephonyProvidersEdgesDid';return this.apiClient.callApi("/api/v2/telephony/providers/edges/dids/{didId}","GET",{didId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesDidpool(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling getTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","GET",{didPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesDidpools(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesDidpoolsDids(e,n){if(n=n||{},e==null)throw'Missing the required parameter "type" when calling getTelephonyProvidersEdgesDidpoolsDids';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/dids","GET",{},{type:e,id:this.apiClient.buildCollectionParam(n.id,"multi"),numberMatch:n.numberMatch,pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesDids(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/dids","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,phoneNumber:e.phoneNumber,"owner.id":e.ownerId,"didPool.id":e.didPoolId,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesEdgegroup(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling getTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","GET",{edgeGroupId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==null||n==="")throw'Missing the required parameter "edgetrunkbaseId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}","GET",{edgegroupId:e,edgetrunkbaseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesEdgegroups(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortBy:e.sortBy,managed:e.managed},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesEdgeversionreport(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/edgeversionreport","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesExpired(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/expired","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesExtension(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionId" when calling getTelephonyProvidersEdgesExtension';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensions/{extensionId}","GET",{extensionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesExtensionpool(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling getTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","GET",{extensionPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesExtensionpools(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,number:e._number,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesExtensionpoolsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesExtensions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,number:e._number},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesLine(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "lineId" when calling getTelephonyProvidersEdgesLine';return this.apiClient.callApi("/api/v2/telephony/providers/edges/lines/{lineId}","GET",{lineId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesLinebasesetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "lineBaseId" when calling getTelephonyProvidersEdgesLinebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/linebasesettings/{lineBaseId}","GET",{lineBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesLinebasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/linebasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesLines(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/lines","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesLinesTemplate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "lineBaseSettingsId" when calling getTelephonyProvidersEdgesLinesTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/lines/template","GET",{},{lineBaseSettingsId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesLogicalinterfaces(e,n){if(n=n||{},e==null)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/logicalinterfaces","GET",{},{edgeIds:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversation';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}","GET",{conversationId:e,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesMetrics(e,n){if(n=n||{},e==null)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/metrics","GET",{},{edgeIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesOutboundroutes(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/outboundroutes","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,"site.id":e.siteId,"externalTrunkBases.ids":e.externalTrunkBasesIds,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesPhone(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling getTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","GET",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesPhonebasesetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling getTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","GET",{phoneBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesPhonebasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesPhonebasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/availablemetabases","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesPhonebasesettingsTemplate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "phoneMetabaseId" when calling getTelephonyProvidersEdgesPhonebasesettingsTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/template","GET",{},{phoneMetabaseId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesPhones(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phones","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,"site.id":e.siteId,"webRtcUser.id":e.webRtcUserId,"phoneBaseSettings.id":e.phoneBaseSettingsId,"lines.loggedInUser.id":e.linesLoggedInUserId,"lines.defaultForUser.id":e.linesDefaultForUserId,phone_hardwareId:e.phoneHardwareId,"lines.id":e.linesId,"lines.name":e.linesName,name:e.name,"status.operationalStatus":e.statusOperationalStatus,"secondaryStatus.operationalStatus":e.secondaryStatusOperationalStatus,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),fields:this.apiClient.buildCollectionParam(e.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesPhonesTemplate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "phoneBaseSettingsId" when calling getTelephonyProvidersEdgesPhonesTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/template","GET",{},{phoneBaseSettingsId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesPhysicalinterfaces(e,n){if(n=n||{},e==null)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesPhysicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/physicalinterfaces","GET",{},{edgeIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSite(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(n==null||n==="")throw'Missing the required parameter "numberPlanId" when calling getTelephonyProvidersEdgesSiteNumberplan';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/{numberPlanId}","GET",{siteId:e,numberPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplans(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplans';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplansClassifications';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/classifications","GET",{siteId:e},{classification:n.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(n==null||n==="")throw'Missing the required parameter "outboundRouteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","GET",{siteId:e,outboundRouteId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroutes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroutes';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes","GET",{siteId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,name:n.name,"externalTrunkBases.ids":n.externalTrunkBasesIds,sortBy:n.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteSiteconnections(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSites(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/sites","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,"location.id":e.locationId,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesTimezones(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/timezones","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunk(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkId" when calling getTelephonyProvidersEdgesTrunk';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/{trunkId}","GET",{trunkId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesTrunkMetrics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkId" when calling getTelephonyProvidersEdgesTrunkMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/{trunkId}/metrics","GET",{trunkId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesTrunkbasesetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling getTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","GET",{trunkBaseSettingsId:e},{ignoreHidden:n.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "trunkMetabaseId" when calling getTelephonyProvidersEdgesTrunkbasesettingsTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/template","GET",{},{trunkMetabaseId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesTrunks(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,"edge.id":e.edgeId,"trunkBase.id":e.trunkBaseId,trunkType:e.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunksMetrics(e,n){if(n=n||{},e==null)throw'Missing the required parameter "trunkIds" when calling getTelephonyProvidersEdgesTrunksMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/metrics","GET",{},{trunkIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesTrunkswithrecording(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkswithrecording","GET",{},{trunkType:e.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchTelephonyProvidersEdgesSiteSiteconnections(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(n==null)throw'Missing the required parameter "body" when calling patchTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","PATCH",{siteId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeDiagnosticNslookup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticNslookup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup","POST",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeDiagnosticPing(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticPing';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping","POST",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeDiagnosticRoute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticRoute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route","POST",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeDiagnosticTracepath(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticTracepath';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath","POST",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeLogicalinterfaces(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeLogsJobUpload(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogsJobUpload';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}/upload","POST",{edgeId:e,jobId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTelephonyProvidersEdgeLogsJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogsJobs';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs","POST",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeReboot(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/reboot","POST",{edgeId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeSoftwareupdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeStatuscode(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeStatuscode';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/statuscode","POST",{edgeId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeUnpair(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeUnpair';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/unpair","POST",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdges(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdges';return this.apiClient.callApi("/api/v2/telephony/providers/edges","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesAddressvalidation(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesAddressvalidation';return this.apiClient.callApi("/api/v2/telephony/providers/edges/addressvalidation","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesCertificateauthorities(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesCertificateauthorities';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesDidpools(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesDidpools';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesEdgegroups(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesEdgegroups';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesExtensionpools(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesExtensionpools';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(i==null||i==="")throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(a==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}","POST",{conversationId:e,communicationId:n,mediaResourceId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postTelephonyProvidersEdgesPhoneReboot(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling postTelephonyProvidersEdgesPhoneReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}/reboot","POST",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesPhonebasesettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhonebasesettings';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesPhones(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhones';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesPhonesReboot(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhonesReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/reboot","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSiteOutboundroutes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSiteOutboundroutes';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes","POST",{siteId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgesSites(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSites';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesTrunkbasesettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesTrunkbasesettings';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdge(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgeLogicalinterface(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(n==null||n==="")throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","PUT",{edgeId:e,interfaceId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesAlertablepresences(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesAlertablepresences';return this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesCertificateauthority(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesDidpool(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesEdgegroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==null||n==="")throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}","PUT",{edgegroupId:e,edgetrunkbaseId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesExtensionpool(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesPhone(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesPhonebasesetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesSite(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesSiteNumberplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteNumberplans';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans","PUT",{siteId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesSiteOutboundroute(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(n==null||n==="")throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","PUT",{siteId:e,outboundRouteId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesSiteSiteconnections(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","PUT",{siteId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putTelephonyProvidersEdgesTrunkbasesetting(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(n==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},py=class{constructor(e){this.apiClient=e||k.instance}getTextbotsBotsSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/textbots/bots/search","GET",{},{botType:this.apiClient.buildCollectionParam(e.botType,"multi"),botName:e.botName,botId:this.apiClient.buildCollectionParam(e.botId,"multi"),virtualAgentEnabled:e.virtualAgentEnabled,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postTextbotsBotflowsSessionTurns(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(n==null)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTextbotsBotflowsSessions(e,n){if(n=n||{},e==null)throw'Missing the required parameter "launchRequest" when calling postTextbotsBotflowsSessions';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTextbotsBotsExecute(e,n){if(n=n||{},e==null)throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';return this.apiClient.callApi("/api/v2/textbots/bots/execute","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},dy=class{constructor(e){this.apiClient=e||k.instance}deleteToken(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteToken';return this.apiClient.callApi("/api/v2/tokens/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTokensMe(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTokensMe(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/me","GET",{},{preserveIdleTTL:e.preserveIdleTTL},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTokensTimeout(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/timeout","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}headTokensMe(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/me","HEAD",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putTokensTimeout(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/timeout","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},hy=class{constructor(e){this.apiClient=e||k.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}","GET",{knowledgeBaseId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationContestsUploadsPrizeimages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGamificationContestsUploadsPrizeimages';return this.apiClient.callApi("/api/v2/gamification/contests/uploads/prizeimages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGuidesUploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postGuidesUploads';return this.apiClient.callApi("/api/v2/guides/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(n==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function/upload","POST",{actionId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeDocumentuploads(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postKnowledgeDocumentuploads';return this.apiClient.callApi("/api/v2/knowledge/documentuploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(n==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs","POST",{knowledgeBaseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMinerUploads(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(n==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUploadsLearningCoverart(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUploadsLearningCoverart';return this.apiClient.callApi("/api/v2/uploads/learning/coverart","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsPublicassetsImages(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUploadsPublicassetsImages';return this.apiClient.callApi("/api/v2/uploads/publicassets/images","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsRecordings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUploadsRecordings';return this.apiClient.callApi("/api/v2/uploads/recordings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsWorkforcemanagementHistoricaldataCsv(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';return this.apiClient.callApi("/api/v2/uploads/workforcemanagement/historicaldata/csv","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},gy=class{constructor(e){this.apiClient=e||k.instance}getOauthClientUsageQueryResult(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(n==null||n==="")throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}","GET",{executionId:e,clientId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOauthClientUsageSummary(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/summary","GET",{clientId:e},{days:n.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageAggregatesQueryJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getUsageAggregatesQueryJob';return this.apiClient.callApi("/api/v2/usage/aggregates/query/jobs/{jobId}","GET",{jobId:e},{pageSize:n.pageSize,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageClientClientIdAggregatesQueryJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getUsageClientClientIdAggregatesQueryJob';return this.apiClient.callApi("/api/v2/usage/client/{clientId}/aggregates/query/jobs/{jobId}","GET",{clientId:e,jobId:n},{pageSize:i.pageSize,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageQueryExecutionIdResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getUsageQueryExecutionIdResults';return this.apiClient.callApi("/api/v2/usage/query/{executionId}/results","GET",{executionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageSimplesearchExecutionIdResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getUsageSimplesearchExecutionIdResults';return this.apiClient.callApi("/api/v2/usage/simplesearch/{executionId}/results","GET",{executionId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClientUsageQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(n==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUsageAggregatesQueryJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsageAggregatesQueryJobs';return this.apiClient.callApi("/api/v2/usage/aggregates/query/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageClientClientIdAggregatesQueryJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';if(n==null)throw'Missing the required parameter "body" when calling postUsageClientClientIdAggregatesQueryJobs';return this.apiClient.callApi("/api/v2/usage/client/{clientId}/aggregates/query/jobs","POST",{clientId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUsageQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsageQuery';return this.apiClient.callApi("/api/v2/usage/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageSimplesearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsageSimplesearch';return this.apiClient.callApi("/api/v2/usage/simplesearch","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},my=class{constructor(e){this.apiClient=e||k.instance}deleteUserrecording(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling deleteUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","DELETE",{recordingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserrecording(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling getUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","GET",{recordingId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserrecordingTranscoding(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling getUserrecordingTranscoding';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}/transcoding","GET",{recordingId:e},{formatId:n.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserrecordings(e){return e=e||{},this.apiClient.callApi("/api/v2/userrecordings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUserrecordingsSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/userrecordings/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putUserrecording(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling putUserrecording';if(n==null)throw'Missing the required parameter "body" when calling putUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","PUT",{recordingId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},fy=class{constructor(e){this.apiClient=e||k.instance}deleteAnalyticsUsersAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAnalyticsUsersDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "roleId" when calling deleteAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","DELETE",{subjectId:e,divisionId:n,roleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteRoutingDirectroutingbackupSettingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingUserUtilization(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUser';return this.apiClient.callApi("/api/v2/users/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserCustomattribute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserCustomattribute';if(n==null||n==="")throw'Missing the required parameter "schemaId" when calling deleteUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","DELETE",{userId:e,schemaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteUserExternalidAuthorityNameExternalKey(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}","DELETE",{userId:e,authorityName:n,externalKey:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserRoutinglanguage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(n==null||n==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteUserRoutingskill(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(n==null||n==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteUserStationAssociatedstation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserStationAssociatedstation';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserStationDefaultstation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserStationDefaultstation';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserVerifier(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(n==null||n==="")throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteUsersCustomattributesSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling deleteUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUsersStationsMeAssociatedstation(e){return e=e||{},this.apiClient.callApi("/api/v2/users/stations/me/associatedstation","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAnalyticsUsersAggregatesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersDetailsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersDetailsJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:n.cursor,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsUsersDetailsJobsAvailability(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/users/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAuthorizationDivisionspermittedMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:n.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/me","GET",{},{permission:e,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(n==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:n,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationSubject(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}","GET",{subjectId:e},{includeDuplicates:n.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubjectsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/me","GET",{},{includeDuplicates:e.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFieldconfig(e,n){if(n=n||{},e==null)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getProfilesUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/profiles/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jid:this.apiClient.buildCollectionParam(e.jid,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingDirectroutingbackupSettingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUserDirectroutingbackupSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingUserUtilization(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUser(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUser';return this.apiClient.callApi("/api/v2/users/{userId}","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),integrationPresenceSource:n.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(n.userCustomAttributeSchemaIds,"multi"),state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserAdjacents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserAdjacents';return this.apiClient.callApi("/api/v2/users/{userId}/adjacents","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCallforwarding(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCustomattribute(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattribute';if(n==null||n==="")throw'Missing the required parameter "schemaId" when calling getUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","GET",{userId:e,schemaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserCustomattributesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattributesBulk';if(n==null)throw'Missing the required parameter "schemaIds" when calling getUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","GET",{userId:e},{schemaIds:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserDirectreports(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserDirectreports';return this.apiClient.callApi("/api/v2/users/{userId}/directreports","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserExternalid(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserExternalidAuthorityName(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';if(n==null||n==="")throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}","GET",{userId:e,authorityName:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserFavorites(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserFavorites';return this.apiClient.callApi("/api/v2/users/{userId}/favorites","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserGeolocation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(n==null||n==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserOutofoffice(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserProfile(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserProfile';return this.apiClient.callApi("/api/v2/users/{userId}/profile","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),integrationPresenceSource:n.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserProfileskills(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserQueues(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,joined:n.joined,divisionId:this.apiClient.buildCollectionParam(n.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserRoles(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","GET",{subjectId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserRoutinglanguages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserRoutingskills(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserRoutingstatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserSkillgroups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserSkillgroups';return this.apiClient.callApi("/api/v2/users/{userId}/skillgroups","GET",{userId:e},{pageSize:n.pageSize,after:n.after,before:n.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserState(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserStation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserStation';return this.apiClient.callApi("/api/v2/users/{userId}/station","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserSuperiors(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserSuperiors';return this.apiClient.callApi("/api/v2/users/{userId}/superiors","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserTrustors(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserTrustors';return this.apiClient.callApi("/api/v2/users/{userId}/trustors","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserVerifiers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserVerifiers';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersChatsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/chats/me","GET",{},{excludeClosed:e.excludeClosed,includePresence:e.includePresence,includeRoomOwners:e.includeRoomOwners,after:e.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersCustomattributesSchema(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getUsersCustomattributesSchemaVersion';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersCustomattributesSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersions';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/users/customattributes/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersCustomattributesSchemasCoretype(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "coreTypeName" when calling getUsersCustomattributesSchemasCoretype';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/coretypes/{coreTypeName}","GET",{coreTypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemasCoretypes(e){return e=e||{},this.apiClient.callApi("/api/v2/users/customattributes/schemas/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersCustomattributesSchemasLimits(e){return e=e||{},this.apiClient.callApi("/api/v2/users/customattributes/schemas/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersDevelopmentActivities(e){return e=e||{},this.apiClient.callApi("/api/v2/users/development/activities","GET",{},{userId:this.apiClient.buildCollectionParam(e.userId,"multi"),moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pass:e.pass,pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,types:this.apiClient.buildCollectionParam(e.types,"multi"),statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),relationship:this.apiClient.buildCollectionParam(e.relationship,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersDevelopmentActivitiesMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/development/activities/me","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pass:e.pass,pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,types:this.apiClient.buildCollectionParam(e.types,"multi"),statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),relationship:this.apiClient.buildCollectionParam(e.relationship,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersDevelopmentActivity(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(n==null)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersExternalidAuthorityNameExternalKey(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/externalid/{authorityName}/{externalKey}","GET",{authorityName:e,externalKey:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/users/query","GET",{},{cursor:e.cursor,pageSize:e.pageSize,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getUsersSearch';return this.apiClient.callApi("/api/v2/users/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi"),integrationPresenceSource:n.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersStationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/stations/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchUser(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUser';if(n==null)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserCallforwarding(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(n==null)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserCustomattributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributes';if(n==null)throw'Missing the required parameter "userCustomAttributes" when calling patchUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserCustomattributesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributesBulk';if(n==null)throw'Missing the required parameter "userCustomAttributesList" when calling patchUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserGeolocation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(n==null||n==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(i==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueue(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(n==null||n==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(i==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","PATCH",{userId:e},{divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserRoutinglanguage(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(n==null||n==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUserRoutingskillsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchUsersBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchUsersBulk';return this.apiClient.callApi("/api/v2/users/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersActivityQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersAggregatesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersDetailsJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersDetailsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/users/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsUsersObservationsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/users/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkadd(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:i.subjectType},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationSubjectBulkremove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationSubjectBulkreplace(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(n==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:i.subjectType},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuthorizationSubjectDivisionRole(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "roleId" when calling postAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","POST",{subjectId:e,divisionId:n,roleId:i},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postUserExternalid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserExternalid';if(n==null)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserInvite(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserInvite';return this.apiClient.callApi("/api/v2/users/{userId}/invite","POST",{userId:e},{force:n.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserPassword(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserPassword';if(n==null)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserRoutinglanguages(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(n==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserRoutingskills(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(n==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUsers(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsers';return this.apiClient.callApi("/api/v2/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersCustomattributesSchemas(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersCustomattributesSchemas';return this.apiClient.callApi("/api/v2/users/customattributes/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersDevelopmentActivitiesAggregatesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersDevelopmentActivitiesAggregatesQuery';return this.apiClient.callApi("/api/v2/users/development/activities/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersMePassword(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersMePassword';return this.apiClient.callApi("/api/v2/users/me/password","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearch';return this.apiClient.callApi("/api/v2/users/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearchConversationTarget(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearchConversationTarget';return this.apiClient.callApi("/api/v2/users/search/conversation/target","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearchQueuemembersManage(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearchQueuemembersManage';return this.apiClient.callApi("/api/v2/users/search/queuemembers/manage","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersSearchTeamsAssign(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';return this.apiClient.callApi("/api/v2/users/search/teams/assign","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(n==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRoutingUserUtilization(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(n==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserCallforwarding(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(n==null)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserCustomattributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCustomattributes';if(n==null)throw'Missing the required parameter "userCustomAttributes" when calling putUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserOutofoffice(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(n==null)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserProfileskills(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserProfileskills';if(n==null)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserRoles(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(n==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserRoutingskill(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(n==null||n==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserRoutingstatus(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserState(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserState';if(n==null)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserStationAssociatedstationStationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(n==null||n==="")throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserStationDefaultstationStationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(n==null||n==="")throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUserVerifier(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserVerifier';if(n==null||n==="")throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(i==null)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUsersCustomattributesSchema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putUsersCustomattributesSchema';if(n==null)throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putUsersStationsMeAssociatedstationStationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "stationId" when calling putUsersStationsMeAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/stations/me/associatedstation/{stationId}","PUT",{stationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},wy=class{constructor(e){this.apiClient=e||k.instance}deleteUsersRule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling deleteUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersRule(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","GET",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersRuleDependentTypeId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';if(n==null||n==="")throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';if(i==null||i==="")throw'Missing the required parameter "typeId" when calling getUsersRuleDependentTypeId';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}/dependents/{ruleType}/{typeId}","GET",{ruleId:e,ruleType:n,typeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getUsersRuleDependents(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependents';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}/dependents","GET",{ruleId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersRules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "types" when calling getUsersRules';return this.apiClient.callApi("/api/v2/users/rules","GET",{},{pageNumber:n.pageNumber,pageSize:n.pageSize,types:this.apiClient.buildCollectionParam(e,"multi"),expand:this.apiClient.buildCollectionParam(n.expand,"multi"),enabled:n.enabled,searchTerm:n.searchTerm,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersRulesSetting(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleType" when calling getUsersRulesSetting';return this.apiClient.callApi("/api/v2/users/rules/settings/{ruleType}","GET",{ruleType:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersRule(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchUsersRule';if(n==null)throw'Missing the required parameter "body" when calling patchUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","PATCH",{ruleId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUsersRules(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersRules';return this.apiClient.callApi("/api/v2/users/rules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersRulesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersRulesQuery';return this.apiClient.callApi("/api/v2/users/rules/query","POST",{},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},vy=class{constructor(e){this.apiClient=e||k.instance}getDate(e){return e=e||{},this.apiClient.callApi("/api/v2/date","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIpranges(e){return e=e||{},this.apiClient.callApi("/api/v2/ipranges","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTimezones(e){return e=e||{},this.apiClient.callApi("/api/v2/timezones","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postCertificateDetails(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCertificateDetails';return this.apiClient.callApi("/api/v2/certificate/details","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Cy=class{constructor(e){this.apiClient=e||k.instance}deleteVoicemailMessage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling deleteVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","DELETE",{messageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteVoicemailMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/messages","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getVoicemailGroupMailbox(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getVoicemailGroupMailbox';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/mailbox","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailGroupMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getVoicemailGroupMessages';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/messages","GET",{groupId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailGroupPolicy(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling getVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailMailbox(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/mailbox","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getVoicemailMeMailbox(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/me/mailbox","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getVoicemailMeMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/me/messages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getVoicemailMePolicy(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/me/policy","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getVoicemailMessage(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","GET",{messageId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailMessageMedia(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getVoicemailMessageMedia';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}/media","GET",{messageId:e},{formatId:n.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/messages","GET",{},{ids:e.ids,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getVoicemailPolicy(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/policy","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getVoicemailQueueMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getVoicemailQueueMessages';return this.apiClient.callApi("/api/v2/voicemail/queues/{queueId}/messages","GET",{queueId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "q64" when calling getVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailUserMailbox(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getVoicemailUserMailbox';return this.apiClient.callApi("/api/v2/voicemail/users/{userId}/mailbox","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailUserMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getVoicemailUserMessages';return this.apiClient.callApi("/api/v2/voicemail/users/{userId}/messages","GET",{userId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getVoicemailUserpolicy(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailGroupPolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(n==null)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchVoicemailMePolicy(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchVoicemailMePolicy';return this.apiClient.callApi("/api/v2/voicemail/me/policy","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(n==null)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchVoicemailUserpolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(n==null)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postVoicemailMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/messages","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postVoicemailSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(n==null)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putVoicemailPolicy(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putVoicemailPolicy';return this.apiClient.callApi("/api/v2/voicemail/policy","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailUserpolicy(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(n==null)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Ay=class{constructor(e){this.apiClient=e||k.instance}deleteWebchatDeployment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebchatGuestConversationMember(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatDeployment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatGuestConversationMediarequest(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(n==null||n==="")throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMediarequests(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMember(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMembers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:n.pageSize,pageNumber:n.pageNumber,excludeDisconnectedMembers:n.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMessage(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(n==null||n==="")throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMessages(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:n.after,before:n.before,sortOrder:n.sortOrder,maxResults:n.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebchatGuestConversationMediarequest(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(n==null||n==="")throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(i==null)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatDeployments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebchatGuestConversationMemberMessages(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(i==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatGuestConversationMemberTyping(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(n==null||n==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWebchatGuestConversations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebchatDeployment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(n==null)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebchatSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},by=class{constructor(e){this.apiClient=e||k.instance}deleteWebdeploymentsConfiguration(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling deleteWebdeploymentsConfiguration';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}","DELETE",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebdeploymentsDeployment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebdeploymentsDeploymentCobrowseSessionId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(n==null||n==="")throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebdeploymentsTokenRevoke(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/token/revoke","DELETE",{},{},{"X-Journey-Session-Id":e.xJourneySessionId,"X-Journey-Session-Type":e.xJourneySessionType},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebdeploymentsConfigurationVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsConfigurationVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersions';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions","GET",{configurationId:e},{pageSize:n.pageSize,before:n.before,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurationVersionsDraft(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","GET",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurations(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/configurations","GET",{},{pageSize:e.pageSize,before:e.before,after:e.after,showOnlyPublished:e.showOnlyPublished},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebdeploymentsDeployment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","GET",{deploymentId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentCobrowseSessionId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(n==null||n==="")throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentConfigurations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentConfigurations';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/configurations","GET",{deploymentId:e},{type:n.type,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentIdentityresolution(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/deployments","GET",{},{pageSize:e.pageSize,before:e.before,after:e.after,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWebdeploymentsConfigurationVersionsDraftPublish(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling postWebdeploymentsConfigurationVersionsDraftPublish';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft/publish","POST",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebdeploymentsConfigurations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "configurationVersion" when calling postWebdeploymentsConfigurations';return this.apiClient.callApi("/api/v2/webdeployments/configurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebdeploymentsDeployments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "deployment" when calling postWebdeploymentsDeployments';return this.apiClient.callApi("/api/v2/webdeployments/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebdeploymentsTokenOauthcodegrantjwtexchange(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWebdeploymentsTokenOauthcodegrantjwtexchange';return this.apiClient.callApi("/api/v2/webdeployments/token/oauthcodegrantjwtexchange","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebdeploymentsTokenRefresh(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/token/refresh","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putWebdeploymentsConfigurationVersionsDraft(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(n==null)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebdeploymentsDeployment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(n==null)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebdeploymentsDeploymentIdentityresolution(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';if(n==null)throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","PUT",{deploymentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},yy=class{constructor(e){this.apiClient=e||k.instance}deleteWebmessagingDeploymentPushdevice(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';if(n==null||n==="")throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","DELETE",{deploymentId:e,tokenId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebmessagingMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/webmessaging/messages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebmessagingDeploymentPushdevice(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';if(n==null||n==="")throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';if(i==null)throw'Missing the required parameter "body" when calling patchWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","PATCH",{deploymentId:e,tokenId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebmessagingDeploymentPushdevice(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';if(n==null||n==="")throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';if(i==null)throw'Missing the required parameter "body" when calling postWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","POST",{deploymentId:e,tokenId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},Py=class{constructor(e){this.apiClient=e||k.instance}deleteWidgetsDeployment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWidgetsDeployment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWidgetsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWidgetsDeployments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWidgetsDeployment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(n==null)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},jy=class{constructor(e){this.apiClient=e||k.instance}deleteWorkforcemanagementBusinessunit(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","DELETE",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitActivitycode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(n==null||n==="")throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocationshistory","DELETE",{businessUnitId:e,capacityPlanId:n},{beforeDateId:i.beforeDateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitPlanninggroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(n==null||n==="")throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulingRun(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(n==null||n==="")throw'Missing the required parameter "runId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","DELETE",{businessUnitId:e,runId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(n==null||n==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitStaffinggroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(n==null||n==="")throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitTimeofflimit(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitTimeoffplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(n==null||n==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitWeekSchedule(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(n==null)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}","DELETE",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}","DELETE",{businessUnitId:e,weekDateId:n,forecastId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","DELETE",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementCalendarUrlIcs(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}deleteWorkforcemanagementManagementunit(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","DELETE",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitTimeofflimit(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementManagementunitTimeoffplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(n==null||n==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementManagementunitWorkplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(n==null||n==="")throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementManagementunitWorkplanrotation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(n==null||n==="")throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementAdherence(e,n){if(n=n||{},e==null)throw'Missing the required parameter "userId" when calling getWorkforcemanagementAdherence';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence","GET",{},{userId:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherenceExplanation(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "explanationId" when calling getWorkforcemanagementAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/{explanationId}","GET",{explanationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherenceExplanationsJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceExplanationsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherenceHistoricalBulkJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalBulkJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/bulk/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherenceHistoricalJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentAdherenceExplanation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(n==null||n==="")throw'Missing the required parameter "explanationId" when calling getWorkforcemanagementAgentAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}","GET",{agentId:e,explanationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementAgentManagementunit(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/managementunit","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentsMeAdherenceHistoricalJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAgentsMeAdherenceHistoricalJob';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/adherence/historical/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentsMeManagementunit(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/managementunit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersSearchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAlternativeshiftsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementAlternativeshiftsTrade(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","GET",{tradeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAlternativeshiftsTrades(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades","GET",{},{forceAsync:e.forceAsync},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesStateJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesStateJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunit(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","GET",{businessUnitId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivitycode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(n==null||n==="")throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivitycodes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","GET",{businessUnitId:e},{forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplans(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","GET",{businessUnitId:e},{state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplansJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplansJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/jobs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(n==null||n==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/{tradeId}","GET",{businessUnitId:e,tradeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitCapacityplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","GET",{businessUnitId:e,capacityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocations","GET",{businessUnitId:e,capacityPlanId:n},{granularity:i.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffingrequirements","GET",{businessUnitId:e,capacityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplanning/longtermrequirements/automaticbestmethod/weeks/{weekDateId}/forecasts/{forecastId}","GET",{businessUnitId:e,weekDateId:n,forecastId:i},{granularity:a.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitCapacityplans(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(n==null)throw'Missing the required parameter "_date" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday/planninggroups","GET",{businessUnitId:e},{date:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';if(n==null||n==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}","GET",{businessUnitId:e,sessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(n==null||n==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(i==null||i==="")throw'Missing the required parameter "snapshotId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}/snapshot/{snapshotId}","GET",{businessUnitId:e,sessionId:n,snapshotId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitManagementunits(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitManagementunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/managementunits","GET",{businessUnitId:e},{feature:n.feature,divisionId:n.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMinimumstaffingSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(n==null||n==="")throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulerSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRun(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(n==null||n==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","GET",{businessUnitId:e,runId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRunResult(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(n==null||n==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(i==null)throw'Missing the required parameter "managementUnitIds" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(a==null)throw'Missing the required parameter "expand" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}/result","GET",{businessUnitId:e,runId:n},{managementUnitIds:this.apiClient.buildCollectionParam(i,"multi"),expand:this.apiClient.buildCollectionParam(a,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRuns(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRuns';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(n==null||n==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:n},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplates(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","GET",{businessUnitId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/trades/evaluate/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesQueryJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/trades/query/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/trades/state/bulk/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/unmatched/search/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/weeks/summary/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroup(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(n==null||n==="")throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroups(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","GET",{businessUnitId:e},{managementUnitId:n.managementUnitId,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimit(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimits(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","GET",{businessUnitId:e},{managementUnitId:n.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(n==null||n==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplans(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","GET",{businessUnitId:e},{managementUnitId:n.managementUnitId,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitUsers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitUsers';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/users","GET",{businessUnitId:e},{managementUnitIds:this.apiClient.buildCollectionParam(n.managementUnitIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedule(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(n==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}","GET",{businessUnitId:e,weekId:n,scheduleId:i},{expand:a.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(n==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/generationresults","GET",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(n==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/headcountforecast","GET",{businessUnitId:e,weekId:n,scheduleId:i},{forceDownload:a.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(n==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(a==null||a==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/history/agents/{agentId}","GET",{businessUnitId:e,weekId:n,scheduleId:i,agentId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(n==null||n==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions","GET",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(n==null||n==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(a==null||a==="")throw'Missing the required parameter "recalculationId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/{recalculationId}","GET",{businessUnitId:e,weekId:n,scheduleId:i,recalculationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(n==null||n==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules","GET",{businessUnitId:e,weekId:n},{includeOnlyPublished:i.includeOnlyPublished,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}","GET",{businessUnitId:e,weekDateId:n,forecastId:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/data","GET",{businessUnitId:e,weekDateId:n,forecastId:i},{weekNumber:a.weekNumber,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/generationresults","GET",{businessUnitId:e,weekDateId:n,forecastId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/longtermforecastdata","GET",{businessUnitId:e,weekDateId:n,forecastId:i},{forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/planninggroups","GET",{businessUnitId:e,weekDateId:n,forecastId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/staffingrequirement","GET",{businessUnitId:e,weekDateId:n,forecastId:i},{weekNumbers:this.apiClient.buildCollectionParam(a.weekNumbers,"multi"),expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecasts(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(n==null||n==="")throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts","GET",{businessUnitId:e,weekDateId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","GET",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences","GET",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/summary","GET",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbids(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","GET",{},{feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementBusinessunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementCalendarDataIcs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "calendarId" when calling getWorkforcemanagementCalendarDataIcs';return this.apiClient.callApi("/api/v2/workforcemanagement/calendar/data/ics","GET",{},{calendarId:e},{},{},null,["PureCloud OAuth"],["application/json"],["text/calendar"],n.customHeaders)}getWorkforcemanagementCalendarUrlIcs(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementHistoricaldataBulkRemoveJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementHistoricaldataBulkRemoveJob';return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementHistoricaldataBulkRemoveJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementHistoricaldataImportstatus(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/importstatus","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementHistoricaldataImportstatusJobId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementHistoricaldataImportstatusJobId';return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/importstatus/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementIntegrationsHris(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementIntegrationsHrisTimeofftypesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementIntegrationsHrisTimeofftypesJob';return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris/timeofftypes/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunit(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitActivitycodes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/activitycodes","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAdherence(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAdherence';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/adherence","GET",{managementUnitId:e},{forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAgent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(n==null||n==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:n},{excludeCapabilities:i.excludeCapabilities,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitAgentShifttrades(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(n==null||n==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgentShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}/shifttrades","GET",{managementUnitId:e,agentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitShifttradesMatched(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesMatched';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/matched","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitShifttradesUsers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesUsers';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/users","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeofflimit(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitTimeofflimits(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeoffplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(n==null||n==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitTimeoffplans(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequest(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}","GET",{managementUnitId:e,userId:n,timeOffRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(n==null||n==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits","GET",{managementUnitId:e,userId:n,timeOffRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequests(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(n==null||n==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests","GET",{managementUnitId:e,userId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitUsers(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUsers';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWeekSchedule(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(n==null||n==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementManagementunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}","GET",{managementUnitId:e,weekId:n,scheduleId:i},{expand:a.expand,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitWeekSchedules(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(n==null||n==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules","GET",{managementUnitId:e,weekId:n},{includeOnlyPublished:i.includeOnlyPublished,earliestWeekDate:i.earliestWeekDate,latestWeekDate:i.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWeekShifttrades(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(n==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementManagementunitWeekShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades","GET",{managementUnitId:e,weekDateId:n},{evaluateMatches:i.evaluateMatches,includeCrossWeekShifts:i.includeCrossWeekShifts,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(n==null||n==="")throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:n},{includeOnly:this.apiClient.buildCollectionParam(i.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotation(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(n==null||n==="")throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotations(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplans(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),exclude:this.apiClient.buildCollectionParam(n.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementSchedulingjob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementSchedulingjob';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulingjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttrades(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/shifttrades","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementShifttradingTradeJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShifttradingTradeJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/{tradeId}/jobs/{jobId}","GET",{tradeId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementShifttradingTradeMatchJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeMatchJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShifttradingTradeMatchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/{tradeId}/match/jobs/{jobId}","GET",{tradeId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementShifttradingTradeStateJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeStateJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShifttradingTradeStateJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/{tradeId}/state/jobs/{jobId}","GET",{tradeId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementShifttradingTradesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShifttradingTradesJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradesMineQueryJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShifttradingTradesMineQueryJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/mine/query/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShrinkageJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShrinkageJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shrinkage/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementTeamAdherence(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getWorkforcemanagementTeamAdherence';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence","GET",{teamId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementTimeoffbalanceJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementTimeoffbalanceJob';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffbalance/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementTimeoffrequest(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","GET",{timeOffRequestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementTimeoffrequestWaitlistpositions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions","GET",{timeOffRequestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementTimeoffrequests(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementUnavailabletimesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/unavailabletimes/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementUnavailabletimesValidationJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementUnavailabletimesValidationJob';return this.apiClient.callApi("/api/v2/workforcemanagement/unavailabletimes/validation/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementUserWorkplanbidranks(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementWorkplanbidPreferences(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementWorkplanbidWorkplans(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/workplans","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementWorkplanbids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWorkforcemanagementAgentAdherenceExplanation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(n==null||n==="")throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}","PATCH",{agentId:e,explanationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementAlternativeshiftsTrade(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTradesStateJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunit(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitActivitycode(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(n==null||n==="")throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","PATCH",{businessUnitId:e,activityCodeId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitActivityplan(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","PATCH",{businessUnitId:e,activityPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitCapacityplan(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","PATCH",{businessUnitId:e,capacityPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitMinimumstaffingSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitPlanninggroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(n==null||n==="")throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","PATCH",{businessUnitId:e,planningGroupId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulerSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitSchedulingRun(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(n==null||n==="")throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","PATCH",{businessUnitId:e,runId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(n==null||n==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","PATCH",{businessUnitId:e,serviceGoalTemplateId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitStaffinggroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(n==null||n==="")throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","PATCH",{businessUnitId:e,staffingGroupId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitTimeoffplan(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(n==null||n==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","PATCH",{businessUnitId:e,timeOffPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbid(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","PATCH",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","PATCH",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences","PATCH",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunit(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementManagementunitAgents(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk","PATCH",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementManagementunitTimeofflimit(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","PATCH",{managementUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffplan(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(n==null||n==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","PATCH",{managementUnitId:e,timeOffPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(n==null||n==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus","PATCH",{managementUnitId:e,timeOffRequestId:n,userId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitUnavailabletimesSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/unavailabletimes/settings","PATCH",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}","PATCH",{managementUnitId:e,userId:n,timeOffRequestId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWeekShifttrade(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(n==null)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(i==null||i==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWeekShifttrade';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}","PATCH",{managementUnitId:e,weekDateId:n,tradeId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWorkplan(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(n==null||n==="")throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","PATCH",{managementUnitId:e,workPlanId:n},{validationMode:a.validationMode},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitWorkplanrotation(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(n==null||n==="")throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","PATCH",{managementUnitId:e,workPlanRotationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementTimeoffrequest(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementUnavailabletimes(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUnavailabletimes';return this.apiClient.callApi("/api/v2/workforcemanagement/unavailabletimes","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUserWorkplanbidranks(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementUsersWorkplanbidranksBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUsersWorkplanbidranksBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/users/workplanbidranks/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementWorkplanbidPreferences(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAdherenceExplanations(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceExplanationsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAdherenceHistoricalBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceHistoricalBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/bulk","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentAdherenceExplanations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/query","POST",{agentId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentUnavailabletimesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentUnavailabletimesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes/query","POST",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgents(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/agents","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentsIntegrationsHrisQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsIntegrationsHrisQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/integrations/hris/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentsMeAdherenceHistoricalJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/adherence/historical/jobs","POST",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAgentsMePossibleworkshifts(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/possibleworkshifts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentschedulesManagementunitsMine(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesManagementunitsMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/managementunits/mine","POST",{},{forceAsync:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentschedulesMine(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/mine","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersSearchJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAlternativeshiftsTrades(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsTrades';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivitycodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs","POST",{businessUnitId:e,activityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitActivityplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/explanations/query","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search","POST",{businessUnitId:e},{forceAsync:i.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanCopy(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/copy","POST",{businessUnitId:e,capacityPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/requirement/generate","POST",{businessUnitId:e,capacityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocations","POST",{businessUnitId:e,capacityPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocationshistory/query","POST",{businessUnitId:e,capacityPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplanning/longtermrequirements/automaticbestmethod/weeks/{weekDateId}/forecasts/{forecastId}/forceregenerate","POST",{businessUnitId:e,weekDateId:n,forecastId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitCapacityplansBulkRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/bulk/remove","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitIntraday(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:i.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitPlanninggroups(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitServicegoaltemplates(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/trades/evaluate/jobs","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/trades/query/jobs","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/trades/state/bulk/jobs","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/unmatched/search/jobs","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/shifttrading/weeks/summary/jobs","POST",{businessUnitId:e},{forceAsync:i.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroups(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/planninggroups/query","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query","POST",{businessUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimits(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitTimeoffplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/unavailabletimes/schedules/query","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/unavailabletimes/settings/query","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/agentschedules/query","POST",{businessUnitId:e,weekId:n,scheduleId:i},{forceAsync:r.forceAsync,forceDownloadService:r.forceDownloadService},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/copy","POST",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(n==null||n==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations","POST",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(n==null||n==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/uploadurl","POST",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule","POST",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update","POST",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(i==null||i==="")throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update/uploadurl","POST",{businessUnitId:e,weekId:n,scheduleId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedules(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules","POST",{businessUnitId:e,weekId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/generate","POST",{businessUnitId:e,weekId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import","POST",{businessUnitId:e,weekId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(n==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import/uploadurl","POST",{businessUnitId:e,weekId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(i==null||i==="")throw'Missing the required parameter "forecastId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/copy","POST",{businessUnitId:e,weekDateId:n,forecastId:i},{forceAsync:r.forceAsync},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/generate","POST",{businessUnitId:e,weekDateId:n},{forceAsync:a.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import","POST",{businessUnitId:e,weekDateId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import/uploadurl","POST",{businessUnitId:e,weekDateId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy","POST",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups","POST",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbids(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunits(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementCalendarUrlIcs(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","POST",{},{language:e.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementHistoricaldataBulkRemoveJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataBulkRemoveJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementHistoricaldataValidate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataValidate';return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "hrisIntegrationId" when calling postWorkforcemanagementIntegrationsHriTimeofftypesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris/{hrisIntegrationId}/timeofftypes/jobs","POST",{hrisIntegrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query","POST",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitAgentschedulesSearch(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search","POST",{managementUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitHistoricaladherencequery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitMove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitSchedulesSearch(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitShrinkageJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitTimeofflimits(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitTimeoffplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequests(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query","POST",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(n==null||n==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffbalance/jobs","POST",{managementUnitId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(n==null||n==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeoffbalance/jobs","POST",{managementUnitId:e,userId:n,timeOffRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(n==null||n==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate","POST",{managementUnitId:e,userId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(i==null||i==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}/match","POST",{managementUnitId:e,weekDateId:n,tradeId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementManagementunitWeekShifttrades(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades","POST",{managementUnitId:e,weekDateId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/search","POST",{managementUnitId:e,weekDateId:n},{forceDownloadService:a.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(n==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/state/bulk","POST",{managementUnitId:e,weekDateId:n},{forceAsync:a.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanCopy(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(n==null||n==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy","POST",{managementUnitId:e,workPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanValidate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(n==null||n==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanValidate';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate","POST",{managementUnitId:e,workPlanId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(n==null||n==="")throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy","POST",{managementUnitId:e,workPlanRotationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotations(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunitWorkplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:i.validationMode},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementManagementunits(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementNotificationsUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementNotificationsUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/notifications/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementShifttradingTradeJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradeJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/{tradeId}/jobs","POST",{tradeId:e},{forceAsync:i.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradeMatchJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeMatchJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradeMatchJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/{tradeId}/match/jobs","POST",{tradeId:e},{forceAsync:i.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradeStateJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeStateJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradeStateJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/{tradeId}/state/jobs","POST",{tradeId:e},{forceAsync:i.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs","POST",{},{forceAsync:n.forceAsync},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradesMineQueryJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesMineQueryJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/mine/query/jobs","POST",{},{forceAsync:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTeamAdherenceHistorical(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTeamShrinkageJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTimeoffbalanceJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffbalance/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeofflimitsAvailableQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeofflimitsAvailableQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/timeofflimits/available/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffrequests(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffrequestsEstimate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementUnavailabletimesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/unavailabletimes/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementUnavailabletimesValidationJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementUnavailabletimesValidationJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/unavailabletimes/validation/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWorkforcemanagementAgentIntegrationsHris(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(n==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWorkforcemanagementBusinessunitTimeofflimitValues(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values","PUT",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putWorkforcemanagementManagementunitTimeofflimitValues(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values","PUT",{managementUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},Sy=class{constructor(){this.ApiClient=new k,this.ApiClientClass=k,this.AIStudioApi=VA,this.AgentAssistantsApi=JA,this.AgentCopilotApi=ZA,this.AgentUIApi=KA,this.AlertingApi=QA,this.AnalyticsApi=YA,this.ArchitectApi=XA,this.AssistantCopilotVariationsApi=eb,this.AuditApi=nb,this.AuthorizationApi=ib,this.BackgroundAssistantApi=tb,this.BillingApi=ab,this.BusinessRulesApi=rb,this.CarrierServicesApi=sb,this.CaseManagementApi=ob,this.ChatApi=lb,this.CoachingApi=ub,this.ContentManagementApi=cb,this.ConversationsApi=pb,this.DataExtensionsApi=db,this.DataPrivacyApi=hb,this.DownloadsApi=gb,this.EmailsApi=mb,this.EmployeeEngagementApi=fb,this.EventsApi=wb,this.ExternalContactsApi=vb,this.FaxApi=Cb,this.FlowsApi=Ab,this.GamificationApi=bb,this.GeneralDataProtectionRegulationApi=yb,this.GeolocationApi=Pb,this.GreetingsApi=jb,this.GroupsApi=Sb,this.IdentityProviderApi=Ob,this.InfrastructureAsCodeApi=xb,this.IntegrationsApi=Tb,this.IntentsApi=Mb,this.JourneyApi=Eb,this.KnowledgeApi=qb,this.LanguageUnderstandingApi=kb,this.LanguagesApi=_b,this.LearningApi=Hb,this.LicenseApi=Rb,this.LocationsApi=Ib,this.LogCaptureApi=zb,this.MessagingApi=Db,this.MobileDevicesApi=Gb,this.NotificationsApi=$b,this.OAuthApi=Nb,this.ObjectsApi=Ub,this.OperationalEventsApi=Lb,this.OrganizationApi=Wb,this.OrganizationAuthorizationApi=Bb,this.OutboundApi=Fb,this.PresenceApi=Vb,this.ProcessAutomationApi=Jb,this.QualityApi=Zb,this.RecordingApi=Kb,this.ResponseManagementApi=Qb,this.RoutingApi=Yb,this.SCIMApi=Xb,this.ScriptsApi=ey,this.SearchApi=ny,this.SettingsApi=iy,this.SocialMediaApi=ty,this.SpeechTextAnalyticsApi=ay,this.StationsApi=ry,this.SuggestApi=sy,this.TaskManagementApi=oy,this.TeamsApi=ly,this.TelephonyApi=uy,this.TelephonyProvidersEdgeApi=cy,this.TextbotsApi=py,this.TokensApi=dy,this.UploadsApi=hy,this.UsageApi=gy,this.UserRecordingsApi=my,this.UsersApi=fy,this.UsersRulesApi=wy,this.UtilitiesApi=vy,this.VoicemailApi=Cy,this.WebChatApi=Ay,this.WebDeploymentsApi=by,this.WebMessagingApi=yy,this.WidgetsApi=Py,this.WorkforceManagementApi=jy,this.PureCloudRegionHosts=HX,this.AbstractHttpClient=$l,this.DefaultHttpClient=Od,this.HttpRequestOptions=Qt}},IX=new Sy;qI.exports=IX});var II=require("node:http");var et={};Td(et,{BRAND:()=>mz,DIRTY:()=>Yt,EMPTY_PATH:()=>VI,INVALID:()=>K,NEVER:()=>Yz,OK:()=>Tn,ParseStatus:()=>An,Schema:()=>ae,ZodAny:()=>vt,ZodArray:()=>Xi,ZodBigInt:()=>ea,ZodBoolean:()=>na,ZodBranded:()=>js,ZodCatch:()=>da,ZodDate:()=>ia,ZodDefault:()=>pa,ZodDiscriminatedUnion:()=>Wl,ZodEffects:()=>ri,ZodEnum:()=>ua,ZodError:()=>Dn,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Fl,ZodIntersection:()=>sa,ZodIssueCode:()=>M,ZodLazy:()=>oa,ZodLiteral:()=>la,ZodMap:()=>lr,ZodNaN:()=>cr,ZodNativeEnum:()=>ca,ZodNever:()=>vi,ZodNull:()=>aa,ZodNullable:()=>_i,ZodNumber:()=>Xt,ZodObject:()=>Gn,ZodOptional:()=>ti,ZodParsedType:()=>z,ZodPipeline:()=>Ss,ZodPromise:()=>Ct,ZodReadonly:()=>ha,ZodRecord:()=>Bl,ZodSchema:()=>ae,ZodSet:()=>ur,ZodString:()=>wt,ZodSymbol:()=>sr,ZodTransformer:()=>ri,ZodTuple:()=>ki,ZodType:()=>ae,ZodUndefined:()=>ta,ZodUnion:()=>ra,ZodUnknown:()=>Yi,ZodVoid:()=>or,addIssueToContext:()=>_,any:()=>jz,array:()=>Tz,bigint:()=>Cz,boolean:()=>Gy,coerce:()=>Qz,custom:()=>Iy,date:()=>Az,datetimeRegex:()=>Hy,defaultErrorMap:()=>Ki,discriminatedUnion:()=>qz,effect:()=>Lz,enum:()=>$z,function:()=>zz,getErrorMap:()=>tr,getParsedType:()=>qi,instanceof:()=>wz,intersection:()=>kz,isAborted:()=>Ul,isAsync:()=>ar,isDirty:()=>Ll,isValid:()=>ft,late:()=>fz,lazy:()=>Dz,literal:()=>Gz,makeIssue:()=>Ps,map:()=>Rz,nan:()=>vz,nativeEnum:()=>Nz,never:()=>Oz,null:()=>Pz,nullable:()=>Bz,number:()=>Dy,object:()=>kd,objectUtil:()=>Md,oboolean:()=>Kz,onumber:()=>Zz,optional:()=>Wz,ostring:()=>Jz,pipeline:()=>Vz,preprocess:()=>Fz,promise:()=>Uz,quotelessJson:()=>WI,record:()=>Hz,set:()=>Iz,setErrorMap:()=>FI,strictObject:()=>Mz,string:()=>zy,symbol:()=>bz,transformer:()=>Lz,tuple:()=>_z,undefined:()=>yz,union:()=>Ez,unknown:()=>Sz,util:()=>ce,void:()=>xz});var ce;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{let r={};for(let s of a)r[s]=s;return r},t.getValidEnumValues=a=>{let r=t.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(let o of r)s[o]=a[o];return t.objectValues(s)},t.objectValues=a=>t.objectKeys(a).map(function(r){return a[r]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let r=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&r.push(s);return r},t.find=(a,r)=>{for(let s of a)if(r(s))return s},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}t.joinValues=i,t.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ce||(ce={}));var Md;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Md||(Md={}));var z=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qi=t=>{switch(typeof t){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(t)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(t)?z.array:t===null?z.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?z.promise:typeof Map<"u"&&t instanceof Map?z.map:typeof Set<"u"&&t instanceof Set?z.set:typeof Date<"u"&&t instanceof Date?z.date:z.object;default:return z.unknown}};var M=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),WI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Dn=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){let n=e||function(r){return r.message},i={_errors:[]},a=r=>{for(let s of r.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(n(s));else{let o=i,l=0;for(;ln.message){let n=Object.create(null),i=[];for(let a of this.issues)if(a.path.length>0){let r=a.path[0];n[r]=n[r]||[],n[r].push(e(a))}else i.push(e(a));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};Dn.create=t=>new Dn(t);var BI=(t,e)=>{let n;switch(t.code){case M.invalid_type:t.received===z.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,ce.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:n=`Unrecognized key(s) in object: ${ce.joinValues(t.keys,", ")}`;break;case M.invalid_union:n="Invalid input";break;case M.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ce.joinValues(t.options)}`;break;case M.invalid_enum_value:n=`Invalid enum value. Expected ${ce.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:n="Invalid function arguments";break;case M.invalid_return_type:n="Invalid function return type";break;case M.invalid_date:n="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:ce.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case M.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case M.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case M.custom:n="Invalid input";break;case M.invalid_intersection_types:n="Intersection results could not be merged";break;case M.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:n="Number must be finite";break;default:n=e.defaultError,ce.assertNever(t)}return{message:n}},Ki=BI;var My=Ki;function FI(t){My=t}function tr(){return My}var Ps=t=>{let{data:e,path:n,errorMaps:i,issueData:a}=t,r=[...n,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="",l=i.filter(u=>!!u).slice().reverse();for(let u of l)o=u(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},VI=[];function _(t,e){let n=tr(),i=Ps({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Ki?void 0:Ki].filter(a=>!!a)});t.common.issues.push(i)}var An=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){let i=[];for(let a of n){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,n){let i=[];for(let a of n){let r=await a.key,s=await a.value;i.push({key:r,value:s})}return t.mergeObjectSync(e,i)}static mergeObjectSync(e,n){let i={};for(let a of n){let{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return K;r.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[r.value]=s.value)}return{status:e.value,value:i}}},K=Object.freeze({status:"aborted"}),Yt=t=>({status:"dirty",value:t}),Tn=t=>({status:"valid",value:t}),Ul=t=>t.status==="aborted",Ll=t=>t.status==="dirty",ft=t=>t.status==="valid",ar=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var ai=class{constructor(e,n,i,a){this._cachedPath=[],this.parent=e,this.data=n,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Ey=(t,e)=>{if(ft(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new Dn(t.common.issues);return this._error=n,this._error}}};function ie(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:i,description:a}=t;if(e&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,o)=>{let{message:l}=t;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??i??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:a}}var ae=class{get description(){return this._def.description}_getType(e){return qi(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:qi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new An,ctx:{common:e.parent.common,data:e.data,parsedType:qi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(ar(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let i=this.safeParse(e,n);if(i.success)return i.data;throw i.error}safeParse(e,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qi(e)},a=this._parseSync({data:e,path:i.path,parent:i});return Ey(i,a)}"~validate"(e){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qi(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:n});return ft(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(i=>ft(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(e,n){let i=await this.safeParseAsync(e,n);if(i.success)return i.data;throw i.error}async safeParseAsync(e,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qi(e)},a=this._parse({data:e,path:i.path,parent:i}),r=await(ar(a)?a:Promise.resolve(a));return Ey(i,r)}refine(e,n){let i=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,r)=>{let s=e(a),o=()=>r.addIssue({code:M.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,n){return this._refinement((i,a)=>e(i)?!0:(a.addIssue(typeof n=="function"?n(i,a):n),!1))}_refinement(e){return new ri({schema:this,typeName:E.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ti.create(this,this._def)}nullable(){return _i.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xi.create(this)}promise(){return Ct.create(this,this._def)}or(e){return ra.create([this,e],this._def)}and(e){return sa.create(this,e,this._def)}transform(e){return new ri({...ie(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let n=typeof e=="function"?e:()=>e;return new pa({...ie(this._def),innerType:this,defaultValue:n,typeName:E.ZodDefault})}brand(){return new js({typeName:E.ZodBranded,type:this,...ie(this._def)})}catch(e){let n=typeof e=="function"?e:()=>e;return new da({...ie(this._def),innerType:this,catchValue:n,typeName:E.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Ss.create(this,e)}readonly(){return ha.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},JI=/^c[^\s-]{8,}$/i,ZI=/^[0-9a-z]+$/,KI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,QI=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,YI=/^[a-z0-9_-]{21}$/i,XI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ez=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nz=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,iz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ed,tz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,az=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rz=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sz=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oz=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lz=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ky="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",uz=new RegExp(`^${ky}$`);function _y(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function cz(t){return new RegExp(`^${_y(t)}$`)}function Hy(t){let e=`${ky}T${_y(t)}`,n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function pz(t,e){return!!((e==="v4"||!e)&&tz.test(t)||(e==="v6"||!e)&&rz.test(t))}function dz(t,e){if(!XI.test(t))return!1;try{let[n]=t.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function hz(t,e){return!!((e==="v4"||!e)&&az.test(t)||(e==="v6"||!e)&&sz.test(t))}var wt=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.string,received:r.parsedType}),K}let i=new An,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){let s=e.data.length>r.value,o=e.data.lengthe.test(a),{validation:n,code:M.invalid_string,...U.errToObj(i)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...U.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...U.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...U.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...U.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...U.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...U.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...U.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...U.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...U.errToObj(n)})}nonempty(e){return this.min(1,U.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew wt({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ie(t)});function gz(t,e){let n=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=n>i?n:i,r=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return r%s/10**a}var Xt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.number,received:r.parsedType}),K}let i,a=new An;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),_(i,{code:M.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),_(i,{code:M.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?gz(e.data,r.value)!==0&&(i=this._getOrReturnCtx(e,i),_(i,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),_(i,{code:M.not_finite,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,U.toString(n))}gt(e,n){return this.setLimit("min",e,!1,U.toString(n))}lte(e,n){return this.setLimit("max",e,!0,U.toString(n))}lt(e,n){return this.setLimit("max",e,!1,U.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(e===null||i.valuenew Xt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ie(t)});var ea=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let i,a=new An;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),_(i,{code:M.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),_(i,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.bigint,received:n.parsedType}),K}gte(e,n){return this.setLimit("min",e,!0,U.toString(n))}gt(e,n){return this.setLimit("min",e,!1,U.toString(n))}lte(e,n){return this.setLimit("max",e,!0,U.toString(n))}lt(e,n){return this.setLimit("max",e,!1,U.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew ea({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ie(t)});var na=class extends ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.boolean,received:i.parsedType}),K}return Tn(e.data)}};na.create=t=>new na({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ie(t)});var ia=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let i=new An,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):ce.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:U.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew ia({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ie(t)});var sr=class extends ae{_parse(e){if(this._getType(e)!==z.symbol){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.symbol,received:i.parsedType}),K}return Tn(e.data)}};sr.create=t=>new sr({typeName:E.ZodSymbol,...ie(t)});var ta=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.undefined,received:i.parsedType}),K}return Tn(e.data)}};ta.create=t=>new ta({typeName:E.ZodUndefined,...ie(t)});var aa=class extends ae{_parse(e){if(this._getType(e)!==z.null){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.null,received:i.parsedType}),K}return Tn(e.data)}};aa.create=t=>new aa({typeName:E.ZodNull,...ie(t)});var vt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return Tn(e.data)}};vt.create=t=>new vt({typeName:E.ZodAny,...ie(t)});var Yi=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Tn(e.data)}};Yi.create=t=>new Yi({typeName:E.ZodUnknown,...ie(t)});var vi=class extends ae{_parse(e){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.never,received:n.parsedType}),K}};vi.create=t=>new vi({typeName:E.ZodNever,...ie(t)});var or=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.void,received:i.parsedType}),K}return Tn(e.data)}};or.create=t=>new or({typeName:E.ZodVoid,...ie(t)});var Xi=class t extends ae{_parse(e){let{ctx:n,status:i}=this._processInputParams(e),a=this._def;if(n.parsedType!==z.array)return _(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),K;if(a.exactLength!==null){let s=n.data.length>a.exactLength.value,o=n.data.lengtha.maxLength.value&&(_(n,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>a.type._parseAsync(new ai(n,s,n.path,o)))).then(s=>An.mergeArray(i,s));let r=[...n.data].map((s,o)=>a.type._parseSync(new ai(n,s,n.path,o)));return An.mergeArray(i,r)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:U.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:U.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:U.toString(n)}})}nonempty(e){return this.min(1,e)}};Xi.create=(t,e)=>new Xi({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ie(e)});function rr(t){if(t instanceof Gn){let e={};for(let n in t.shape){let i=t.shape[n];e[n]=ti.create(rr(i))}return new Gn({...t._def,shape:()=>e})}else return t instanceof Xi?new Xi({...t._def,type:rr(t.element)}):t instanceof ti?ti.create(rr(t.unwrap())):t instanceof _i?_i.create(rr(t.unwrap())):t instanceof ki?ki.create(t.items.map(e=>rr(e))):t}var Gn=class t extends ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=ce.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==z.object){let u=this._getOrReturnCtx(e);return _(u,{code:M.invalid_type,expected:z.object,received:u.parsedType}),K}let{status:i,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof vi&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let l=[];for(let u of s){let c=r[u],p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ai(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof vi){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(_(a,{code:M.unrecognized_keys,keys:o}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of o){let p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ai(a,p,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,d=await c.value;u.push({key:p,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>An.mergeObjectSync(i,u)):An.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return U.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,i)=>{let a=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:U.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let i of ce.objectKeys(e))e[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let i of ce.objectKeys(this.shape))e[i]||(n[i]=this.shape[i]);return new t({...this._def,shape:()=>n})}deepPartial(){return rr(this)}partial(e){let n={};for(let i of ce.objectKeys(this.shape)){let a=this.shape[i];e&&!e[i]?n[i]=a:n[i]=a.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let i of ce.objectKeys(this.shape))if(e&&!e[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof ti;)r=r._def.innerType;n[i]=r}return new t({...this._def,shape:()=>n})}keyof(){return Ry(ce.objectKeys(this.shape))}};Gn.create=(t,e)=>new Gn({shape:()=>t,unknownKeys:"strip",catchall:vi.create(),typeName:E.ZodObject,...ie(e)});Gn.strictCreate=(t,e)=>new Gn({shape:()=>t,unknownKeys:"strict",catchall:vi.create(),typeName:E.ZodObject,...ie(e)});Gn.lazycreate=(t,e)=>new Gn({shape:t,unknownKeys:"strip",catchall:vi.create(),typeName:E.ZodObject,...ie(e)});var ra=class extends ae{_parse(e){let{ctx:n}=this._processInputParams(e),i=this._def.options;function a(r){for(let o of r)if(o.result.status==="valid")return o.result;for(let o of r)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(o=>new Dn(o.ctx.common.issues));return _(n,{code:M.invalid_union,unionErrors:s}),K}if(n.common.async)return Promise.all(i.map(async r=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await r._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(a);{let r,s=[];for(let l of i){let u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new Dn(l));return _(n,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};ra.create=(t,e)=>new ra({options:t,typeName:E.ZodUnion,...ie(e)});var Qi=t=>t instanceof oa?Qi(t.schema):t instanceof ri?Qi(t.innerType()):t instanceof la?[t.value]:t instanceof ua?t.options:t instanceof ca?ce.objectValues(t.enum):t instanceof pa?Qi(t._def.innerType):t instanceof ta?[void 0]:t instanceof aa?[null]:t instanceof ti?[void 0,...Qi(t.unwrap())]:t instanceof _i?[null,...Qi(t.unwrap())]:t instanceof js||t instanceof ha?Qi(t.unwrap()):t instanceof da?Qi(t._def.innerType):[],Wl=class t extends ae{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==z.object)return _(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),K;let i=this.discriminator,a=n.data[i],r=this.optionsMap.get(a);return r?n.common.async?r._parseAsync({data:n.data,path:n.path,parent:n}):r._parseSync({data:n.data,path:n.path,parent:n}):(_(n,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,i){let a=new Map;for(let r of n){let s=Qi(r.shape[e]);if(!s.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of s){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,r)}}return new t({typeName:E.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:a,...ie(i)})}};function qd(t,e){let n=qi(t),i=qi(e);if(t===e)return{valid:!0,data:t};if(n===z.object&&i===z.object){let a=ce.objectKeys(e),r=ce.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};for(let o of r){let l=qd(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===z.array&&i===z.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(Ul(r)||Ul(s))return K;let o=qd(r.value,s.value);return o.valid?((Ll(r)||Ll(s))&&n.dirty(),{status:n.value,value:o.data}):(_(i,{code:M.invalid_intersection_types}),K)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};sa.create=(t,e,n)=>new sa({left:t,right:e,typeName:E.ZodIntersection,...ie(n)});var ki=class t extends ae{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==z.array)return _(i,{code:M.invalid_type,expected:z.array,received:i.parsedType}),K;if(i.data.lengththis._def.items.length&&(_(i,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let r=[...i.data].map((s,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new ai(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(r).then(s=>An.mergeArray(n,s)):An.mergeArray(n,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};ki.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ki({items:t,typeName:E.ZodTuple,rest:null,...ie(e)})};var Bl=class t extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==z.object)return _(i,{code:M.invalid_type,expected:z.object,received:i.parsedType}),K;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in i.data)a.push({key:r._parse(new ai(i,o,i.path,o)),value:s._parse(new ai(i,i.data[o],i.path,o)),alwaysSet:o in i.data});return i.common.async?An.mergeObjectAsync(n,a):An.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(e,n,i){return n instanceof ae?new t({keyType:e,valueType:n,typeName:E.ZodRecord,...ie(i)}):new t({keyType:wt.create(),valueType:e,typeName:E.ZodRecord,...ie(n)})}},lr=class extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==z.map)return _(i,{code:M.invalid_type,expected:z.map,received:i.parsedType}),K;let a=this._def.keyType,r=this._def.valueType,s=[...i.data.entries()].map(([o,l],u)=>({key:a._parse(new ai(i,o,i.path,[u,"key"])),value:r._parse(new ai(i,l,i.path,[u,"value"]))}));if(i.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{let o=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}};lr.create=(t,e,n)=>new lr({valueType:e,keyType:t,typeName:E.ZodMap,...ie(n)});var ur=class t extends ae{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==z.set)return _(i,{code:M.invalid_type,expected:z.set,received:i.parsedType}),K;let a=this._def;a.minSize!==null&&i.data.sizea.maxSize.value&&(_(i,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());let r=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return K;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}let o=[...i.data.values()].map((l,u)=>r._parse(new ai(i,l,i.path,u)));return i.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(e,n){return new t({...this._def,minSize:{value:e,message:U.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:U.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};ur.create=(t,e)=>new ur({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ie(e)});var Fl=class t extends ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==z.function)return _(n,{code:M.invalid_type,expected:z.function,received:n.parsedType}),K;function i(o,l){return Ps({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,tr(),Ki].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return Ps({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,tr(),Ki].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:l}})}let r={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Ct){let o=this;return Tn(async function(...l){let u=new Dn([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(i(l,h)),u}),p=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(p,r).catch(h=>{throw u.addIssue(a(p,h)),u})})}else{let o=this;return Tn(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new Dn([i(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new Dn([a(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:ki.create(e).rest(Yi.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,i){return new t({args:e||ki.create([]).rest(Yi.create()),returns:n||Yi.create(),typeName:E.ZodFunction,...ie(i)})}},oa=class extends ae{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};oa.create=(t,e)=>new oa({getter:t,typeName:E.ZodLazy,...ie(e)});var la=class extends ae{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return _(n,{received:n.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};la.create=(t,e)=>new la({value:t,typeName:E.ZodLiteral,...ie(e)});function Ry(t,e){return new ua({values:t,typeName:E.ZodEnum,...ie(e)})}var ua=class t extends ae{_parse(e){if(typeof e.data!="string"){let n=this._getOrReturnCtx(e),i=this._def.values;return _(n,{expected:ce.joinValues(i),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),i=this._def.values;return _(n,{received:n.data,code:M.invalid_enum_value,options:i}),K}return Tn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(i=>!e.includes(i)),{...this._def,...n})}};ua.create=Ry;var ca=class extends ae{_parse(e){let n=ce.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==z.string&&i.parsedType!==z.number){let a=ce.objectValues(n);return _(i,{expected:ce.joinValues(a),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ce.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ce.objectValues(n);return _(i,{received:i.data,code:M.invalid_enum_value,options:a}),K}return Tn(e.data)}get enum(){return this._def.values}};ca.create=(t,e)=>new ca({values:t,typeName:E.ZodNativeEnum,...ie(e)});var Ct=class extends ae{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==z.promise&&n.common.async===!1)return _(n,{code:M.invalid_type,expected:z.promise,received:n.parsedType}),K;let i=n.parsedType===z.promise?n.data:Promise.resolve(n.data);return Tn(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Ct.create=(t,e)=>new Ct({type:t,typeName:E.ZodPromise,...ie(e)});var ri=class extends ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:i}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:s=>{_(i,s),s.fatal?n.abort():n.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){let s=a.transform(i.data,r);if(i.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return K;let l=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return l.status==="aborted"?K:l.status==="dirty"?Yt(l.value):n.value==="dirty"?Yt(l.value):l});{if(n.value==="aborted")return K;let o=this._def.schema._parseSync({data:s,path:i.path,parent:i});return o.status==="aborted"?K:o.status==="dirty"?Yt(o.value):n.value==="dirty"?Yt(o.value):o}}if(a.type==="refinement"){let s=o=>{let l=a.refinement(o,r);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?K:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?K:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(a.type==="transform")if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!ft(s))return K;let o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>ft(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:n.value,value:o})):K);ce.assertNever(a)}};ri.create=(t,e,n)=>new ri({schema:t,typeName:E.ZodEffects,effect:e,...ie(n)});ri.createWithPreprocess=(t,e,n)=>new ri({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ie(n)});var ti=class extends ae{_parse(e){return this._getType(e)===z.undefined?Tn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ti.create=(t,e)=>new ti({innerType:t,typeName:E.ZodOptional,...ie(e)});var _i=class extends ae{_parse(e){return this._getType(e)===z.null?Tn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};_i.create=(t,e)=>new _i({innerType:t,typeName:E.ZodNullable,...ie(e)});var pa=class extends ae{_parse(e){let{ctx:n}=this._processInputParams(e),i=n.data;return n.parsedType===z.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ie(e)});var da=class extends ae{_parse(e){let{ctx:n}=this._processInputParams(e),i={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return ar(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Dn(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Dn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};da.create=(t,e)=>new da({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ie(e)});var cr=class extends ae{_parse(e){if(this._getType(e)!==z.nan){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.nan,received:i.parsedType}),K}return{status:"valid",value:e.data}}};cr.create=t=>new cr({typeName:E.ZodNaN,...ie(t)});var mz=Symbol("zod_brand"),js=class extends ae{_parse(e){let{ctx:n}=this._processInputParams(e),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Ss=class t extends ae{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?K:r.status==="dirty"?(n.dirty(),Yt(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{let a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?K:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(e,n){return new t({in:e,out:n,typeName:E.ZodPipeline})}},ha=class extends ae{_parse(e){let n=this._def.innerType._parse(e),i=a=>(ft(a)&&(a.value=Object.freeze(a.value)),a);return ar(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}};ha.create=(t,e)=>new ha({innerType:t,typeName:E.ZodReadonly,...ie(e)});function qy(t,e){let n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function Iy(t,e={},n){return t?vt.create().superRefine((i,a)=>{let r=t(i);if(r instanceof Promise)return r.then(s=>{if(!s){let o=qy(e,i),l=o.fatal??n??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=qy(e,i),o=s.fatal??n??!0;a.addIssue({code:"custom",...s,fatal:o})}}):vt.create()}var fz={object:Gn.lazycreate},E;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(E||(E={}));var wz=(t,e={message:`Input not instance of ${t.name}`})=>Iy(n=>n instanceof t,e),zy=wt.create,Dy=Xt.create,vz=cr.create,Cz=ea.create,Gy=na.create,Az=ia.create,bz=sr.create,yz=ta.create,Pz=aa.create,jz=vt.create,Sz=Yi.create,Oz=vi.create,xz=or.create,Tz=Xi.create,kd=Gn.create,Mz=Gn.strictCreate,Ez=ra.create,qz=Wl.create,kz=sa.create,_z=ki.create,Hz=Bl.create,Rz=lr.create,Iz=ur.create,zz=Fl.create,Dz=oa.create,Gz=la.create,$z=ua.create,Nz=ca.create,Uz=Ct.create,Lz=ri.create,Wz=ti.create,Bz=_i.create,Fz=ri.createWithPreprocess,Vz=Ss.create,Jz=()=>zy().optional(),Zz=()=>Dy().optional(),Kz=()=>Gy().optional(),Qz={string:(t=>wt.create({...t,coerce:!0})),number:(t=>Xt.create({...t,coerce:!0})),boolean:(t=>na.create({...t,coerce:!0})),bigint:(t=>ea.create({...t,coerce:!0})),date:(t=>ia.create({...t,coerce:!0}))};var Yz=K;var $y;function j(t,e,n){function i(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);let u=s.prototype,c=Object.keys(u);for(let p=0;pn?.Parent&&o instanceof n.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var hee=Symbol("zod_brand"),Hi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},pr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};($y=globalThis).__zod_globalConfig??($y.__zod_globalConfig={});var dr=globalThis.__zod_globalConfig;function Yn(t){return t&&Object.assign(dr,t),dr}var he={};Td(he,{BIGINT_FORMAT_RANGES:()=>Ly,Class:()=>Hd,NUMBER_FORMAT_RANGES:()=>Nd,aborted:()=>yt,allowsEval:()=>zd,assert:()=>aD,assertEqual:()=>eD,assertIs:()=>iD,assertNever:()=>tD,assertNotEqual:()=>nD,assignProp:()=>At,base64ToUint8Array:()=>Qy,base64urlToUint8Array:()=>mD,cached:()=>gr,captureStackTrace:()=>Zl,cleanEnum:()=>gD,cleanRegex:()=>Ms,clone:()=>Xn,cloneDef:()=>sD,createTransparentProxy:()=>dD,defineLazy:()=>Oe,esc:()=>Jl,escapeRegex:()=>it,explicitlyAborted:()=>Ud,extend:()=>Fy,finalizeIssue:()=>si,floatSafeRemainder:()=>Rd,getElementAtPath:()=>oD,getEnumValues:()=>xs,getLengthableOrigin:()=>Es,getParsedType:()=>pD,getSizableOrigin:()=>Ky,hexToUint8Array:()=>wD,isObject:()=>ga,isPlainObject:()=>bt,issue:()=>mr,joinValues:()=>Vl,jsonStringifyReplacer:()=>hr,merge:()=>hD,mergeDefs:()=>nt,normalizeParams:()=>J,nullish:()=>Ts,numKeys:()=>cD,objectClone:()=>rD,omit:()=>By,optionalKeys:()=>$d,parsedType:()=>Ld,partial:()=>Jy,pick:()=>Wy,prefixIssues:()=>tt,primitiveTypes:()=>Uy,promiseAllObject:()=>lD,propertyKeyTypes:()=>Gd,randomString:()=>uD,required:()=>Zy,safeExtend:()=>Vy,shallowClone:()=>Dd,slugify:()=>Id,stringifyPrimitive:()=>Kl,uint8ArrayToBase64:()=>Yy,uint8ArrayToBase64url:()=>fD,uint8ArrayToHex:()=>vD,unwrapMessage:()=>Os});function eD(t){return t}function nD(t){return t}function iD(t){}function tD(t){throw new Error("Unexpected value in exhaustive check")}function aD(t){}function xs(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,a])=>e.indexOf(+i)===-1).map(([i,a])=>a)}function Vl(t,e="|"){return t.map(n=>Kl(n)).join(e)}function hr(t,e){return typeof e=="bigint"?e.toString():e}function gr(t){return{get value(){{let n=t();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Ts(t){return t==null}function Ms(t){let e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function Rd(t,e){let n=t/e,i=Math.round(n),a=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)n?.[i],t):t}function lD(t){let e=Object.keys(t),n=e.map(i=>t[i]);return Promise.all(n).then(i=>{let a={};for(let r=0;r{};function ga(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var zd=gr(()=>{if(dr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function bt(t){if(ga(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let n=e.prototype;return!(ga(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Dd(t){return bt(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function cD(t){let e=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}var pD=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Gd=new Set(["string","number","symbol"]),Uy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function it(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xn(t,e,n){let i=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(i._zod.parent=t),i}function J(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function dD(t){let e;return new Proxy({},{get(n,i,a){return e??(e=t()),Reflect.get(e,i,a)},set(n,i,a,r){return e??(e=t()),Reflect.set(e,i,a,r)},has(n,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(n,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(n){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(n,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(n,i,a){return e??(e=t()),Reflect.defineProperty(e,i,a)}})}function Kl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function $d(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Nd={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ly={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Wy(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=nt(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=n.shape[o])}return At(this,"shape",s),s},checks:[]});return Xn(t,r)}function By(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=nt(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return At(this,"shape",s),s},checks:[]});return Xn(t,r)}function Fy(t,e){if(!bt(e))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let r=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=nt(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return At(this,"shape",r),r}});return Xn(t,a)}function Vy(t,e){if(!bt(e))throw new Error("Invalid input to safeExtend: expected a plain object");let n=nt(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return At(this,"shape",i),i}});return Xn(t,n)}function hD(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=nt(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e._zod.def.shape};return At(this,"shape",i),i},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Xn(t,n)}function Jy(t,e,n){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=nt(e._zod.def,{get shape(){let o=e._zod.def.shape,l={...o};if(n)for(let u in n){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=t?new t({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)l[u]=t?new t({type:"optional",innerType:o[u]}):o[u];return At(this,"shape",l),l},checks:[]});return Xn(e,s)}function Zy(t,e,n){let i=nt(e._zod.def,{get shape(){let a=e._zod.def.shape,r={...a};if(n)for(let s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(r[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)r[s]=new t({type:"nonoptional",innerType:a[s]});return At(this,"shape",r),r}});return Xn(e,i)}function yt(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n{var i;return(i=n).path??(i.path=[]),n.path.unshift(t),n})}function Os(t){return typeof t=="string"?t:t?.message}function si(t,e,n){let i=t.message?t.message:Os(t.inst?._zod.def?.error?.(t))??Os(e?.error?.(t))??Os(n.customError?.(t))??Os(n.localeError?.(t))??"Invalid input",{inst:a,continue:r,input:s,...o}=t;return o.path??(o.path=[]),o.message=i,e?.reportInput&&(o.input=s),o}function Ky(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Es(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Ld(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}function mr(...t){let[e,n,i]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:i}:{...e}}function gD(t){return Object.entries(t).filter(([e,n])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Qy(t){let e=atob(t),n=new Uint8Array(e.length);for(let i=0;ie.toString(16).padStart(2,"0")).join("")}var Hd=class{constructor(...e){}};var Xy=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,hr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Ql=j("$ZodError",Xy),qs=j("$ZodError",Xy,{Parent:Error});function eP(t,e=n=>n.message){let n={},i=[];for(let a of t.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(e(a))):i.push(e(a));return{formErrors:i,fieldErrors:n}}function nP(t,e=n=>n.message){let n={_errors:[]},i=(a,r=[])=>{for(let s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>i({issues:o},[...r,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...r,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...r,...s.path]);else{let o=[...r,...s.path];if(o.length===0)n._errors.push(e(s));else{let l=n,u=0;for(;u(e,n,i,a)=>{let r=i?{...i,async:!1}:{async:!1},s=e._zod.run({value:n,issues:[]},r);if(s instanceof Promise)throw new Hi;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>si(l,r,Yn())));throw Zl(o,a?.callee),o}return s.value},Yl=ks(qs),_s=t=>async(e,n,i,a)=>{let r=i?{...i,async:!0}:{async:!0},s=e._zod.run({value:n,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>si(l,r,Yn())));throw Zl(o,a?.callee),o}return s.value},Xl=_s(qs),Hs=t=>(e,n,i)=>{let a=i?{...i,async:!1}:{async:!1},r=e._zod.run({value:n,issues:[]},a);if(r instanceof Promise)throw new Hi;return r.issues.length?{success:!1,error:new(t??Ql)(r.issues.map(s=>si(s,a,Yn())))}:{success:!0,data:r.value}},ma=Hs(qs),Rs=t=>async(e,n,i)=>{let a=i?{...i,async:!0}:{async:!0},r=e._zod.run({value:n,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new t(r.issues.map(s=>si(s,a,Yn())))}:{success:!0,data:r.value}},fa=Rs(qs),iP=t=>(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return ks(t)(e,n,a)};var tP=t=>(e,n,i)=>ks(t)(e,n,i);var aP=t=>async(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return _s(t)(e,n,a)};var rP=t=>async(e,n,i)=>_s(t)(e,n,i);var sP=t=>(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return Hs(t)(e,n,a)};var oP=t=>(e,n,i)=>Hs(t)(e,n,i);var lP=t=>async(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return Rs(t)(e,n,a)};var uP=t=>async(e,n,i)=>Rs(t)(e,n,i);var cP=/^[cC][0-9a-z]{6,}$/,pP=/^[0-9a-z]+$/,dP=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hP=/^[0-9a-vA-V]{20}$/,gP=/^[A-Za-z0-9]{27}$/,mP=/^[a-zA-Z0-9_-]{21}$/,fP=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var wP=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Wd=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var vP=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var AD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function CP(){return new RegExp(AD,"u")}var AP=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var yP=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,PP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,jP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Bd=/^[A-Za-z0-9_-]*$/;var SP=/^https?$/,OP=/^\+[1-9]\d{6,14}$/,xP="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",TP=new RegExp(`^${xP}$`);function MP(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function EP(t){return new RegExp(`^${MP(t)}$`)}function qP(t){let e=MP({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${e}(?:${n.join("|")})`;return new RegExp(`^${xP}T(?:${i})$`)}var kP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var _P=/^-?\d+$/,Fd=/^-?\d+(?:\.\d+)?$/,HP=/^(?:true|false)$/i,RP=/^null$/i;var IP=/^[^A-Z]*$/,zP=/^[^a-z]*$/;var hn=j("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),DP={number:"number",bigint:"bigint",object:"date"},Vd=j("$ZodCheckLessThan",(t,e)=>{hn.init(t,e);let n=DP[typeof e.value];t._zod.onattach.push(i=>{let a=i._zod.bag,r=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?i.value<=e.value:i.value{hn.init(t,e);let n=DP[typeof e.value];t._zod.onattach.push(i=>{let a=i._zod.bag,r=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>r&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),GP=j("$ZodCheckMultipleOf",(t,e)=>{hn.init(t,e),t._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):Rd(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),$P=j("$ZodCheckNumberFormat",(t,e)=>{hn.init(t,e),e.format=e.format||"float64";let n=e.format?.includes("int"),i=n?"int":"number",[a,r]=Nd[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=r,n&&(o.pattern=_P)}),t._zod.check=s=>{let o=s.value;if(n){if(!Number.isInteger(o)){s.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:o,inst:t});return}if(!Number.isSafeInteger(o)){o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}or&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:r,inclusive:!0,inst:t,continue:!e.abort})}});var NP=j("$ZodCheckMaxLength",(t,e)=>{var n;hn.init(t,e),(n=t._zod.def).when??(n.when=i=>{let a=i.value;return!Ts(a)&&a.length!==void 0}),t._zod.onattach.push(i=>{let a=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let a=i.value;if(a.length<=e.maximum)return;let s=Es(a);i.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),UP=j("$ZodCheckMinLength",(t,e)=>{var n;hn.init(t,e),(n=t._zod.def).when??(n.when=i=>{let a=i.value;return!Ts(a)&&a.length!==void 0}),t._zod.onattach.push(i=>{let a=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let a=i.value;if(a.length>=e.minimum)return;let s=Es(a);i.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),LP=j("$ZodCheckLengthEquals",(t,e)=>{var n;hn.init(t,e),(n=t._zod.def).when??(n.when=i=>{let a=i.value;return!Ts(a)&&a.length!==void 0}),t._zod.onattach.push(i=>{let a=i._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=i=>{let a=i.value,r=a.length;if(r===e.length)return;let s=Es(a),o=r>e.length;i.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),zs=j("$ZodCheckStringFormat",(t,e)=>{var n,i;hn.init(t,e),t._zod.onattach.push(a=>{let r=a._zod.bag;r.format=e.format,e.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=a=>{e.pattern.lastIndex=0,!e.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:e.format,input:a.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),WP=j("$ZodCheckRegex",(t,e)=>{zs.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),BP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=IP),zs.init(t,e)}),FP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=zP),zs.init(t,e)}),VP=j("$ZodCheckIncludes",(t,e)=>{hn.init(t,e);let n=it(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=i,t._zod.onattach.push(a=>{let r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(i)}),t._zod.check=a=>{a.value.includes(e.includes,e.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:a.value,inst:t,continue:!e.abort})}}),JP=j("$ZodCheckStartsWith",(t,e)=>{hn.init(t,e);let n=new RegExp(`^${it(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(i=>{let a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),ZP=j("$ZodCheckEndsWith",(t,e)=>{hn.init(t,e);let n=new RegExp(`.*${it(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(i=>{let a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});var KP=j("$ZodCheckOverwrite",(t,e)=>{hn.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});var eu=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(` +`).filter(s=>s),a=Math.min(...i.map(s=>s.length-s.trimStart().length)),r=i.map(s=>s.slice(a)).map(s=>" ".repeat(this.indent*2)+s);for(let s of r)this.content.push(s)}compile(){let e=Function,n=this?.args,a=[...(this?.content??[""]).map(r=>` ${r}`)];return new e(...n,a.join(` +`))}};var YP={major:4,minor:4,patch:3};var qe=j("$ZodType",(t,e)=>{var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=YP;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let a of i)for(let r of a._zod.onattach)r(t);if(i.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,l)=>{let u=yt(s),c;for(let p of o){if(p._zod.def.when){if(Ud(s)||!p._zod.def.when(s))continue}else if(u)continue;let d=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Hi;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=yt(s,d)))});else{if(s.issues.length===d)continue;u||(u=yt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(yt(s))return s.aborted=!0,s;let u=a(o,i,l);if(u instanceof Promise){if(l.async===!1)throw new Hi;return u.then(c=>t._zod.parse(c,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(c=>r(c,s,o)):r(u,s,o)}let l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new Hi;return l.then(u=>a(u,i,o))}return a(l,i,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=ma(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return fa(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Ds=j("$ZodString",(t,e)=>{qe.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??kP(t._zod.bag),t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),Ie=j("$ZodStringFormat",(t,e)=>{zs.init(t,e),Ds.init(t,e)}),Kd=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=wP),Ie.init(t,e)}),Qd=j("$ZodUUID",(t,e)=>{if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Wd(i))}else e.pattern??(e.pattern=Wd());Ie.init(t,e)}),Yd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=vP),Ie.init(t,e)}),Xd=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=n=>{try{let i=n.value.trim();if(!e.normalize&&e.protocol?.source===SP.source&&!/^https?:\/\//i.test(i)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!e.abort});return}let a=new URL(i);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:n.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort})),e.normalize?n.value=a.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),eh=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=CP()),Ie.init(t,e)}),nh=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=mP),Ie.init(t,e)}),ih=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=cP),Ie.init(t,e)}),th=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=pP),Ie.init(t,e)}),ah=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=dP),Ie.init(t,e)}),rh=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=hP),Ie.init(t,e)}),sh=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=gP),Ie.init(t,e)}),oj=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=qP(e)),Ie.init(t,e)}),lj=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=TP),Ie.init(t,e)}),uj=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=EP(e)),Ie.init(t,e)}),cj=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=fP),Ie.init(t,e)}),oh=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=AP),Ie.init(t,e),t._zod.bag.format="ipv4"}),lh=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=bP),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}}});var uh=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=yP),Ie.init(t,e)}),ch=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=PP),Ie.init(t,e),t._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[a,r]=i;if(!r)throw new Error;let s=Number(r);if(`${s}`!==r)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}}});function pj(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var ph=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=jP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{pj(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}});function bD(t){if(!Bd.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return pj(n)}var dh=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Bd),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{bD(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),hh=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=OP),Ie.init(t,e)});function yD(t,e=null){try{let n=t.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let a=JSON.parse(atob(i));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}var gh=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=n=>{yD(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}});var tu=j("$ZodNumber",(t,e)=>{qe.init(t,e),t._zod.pattern=t._zod.bag.pattern??Fd,t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=Number(n.value)}catch{}let a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;let r=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),n}}),mh=j("$ZodNumberFormat",(t,e)=>{$P.init(t,e),tu.init(t,e)}),fh=j("$ZodBoolean",(t,e)=>{qe.init(t,e),t._zod.pattern=HP,t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=!!n.value}catch{}let a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),n}});var wh=j("$ZodNull",(t,e)=>{qe.init(t,e),t._zod.pattern=RP,t._zod.values=new Set([null]),t._zod.parse=(n,i)=>{let a=n.value;return a===null||n.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),n}});var vh=j("$ZodUnknown",(t,e)=>{qe.init(t,e),t._zod.parse=n=>n}),Ch=j("$ZodNever",(t,e)=>{qe.init(t,e),t._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)});function XP(t,e,n){t.issues.length&&e.issues.push(...tt(n,t.issues)),e.value[n]=t.value}var Ah=j("$ZodArray",(t,e)=>{qe.init(t,e),t._zod.parse=(n,i)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),n;n.value=Array(a.length);let r=[];for(let s=0;sXP(u,n,s))):XP(l,n,s)}return r.length?Promise.all(r).then(()=>n):n}});function iu(t,e,n,i,a,r){let s=n in i;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...tt(n,t.issues))}if(!s&&!a){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}t.value===void 0?s&&(e.value[n]=void 0):e.value[n]=t.value}function dj(t){let e=Object.keys(t.shape);for(let i of e)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=$d(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}function hj(t,e,n,i,a,r){let s=[],o=a.keySet,l=a.catchall._zod,u=l.def.type,c=l.optin==="optional",p=l.optout==="optional";for(let d in e){if(d==="__proto__"||o.has(d))continue;if(u==="never"){s.push(d);continue}let h=l.run({value:e[d],issues:[]},i);h instanceof Promise?t.push(h.then(g=>iu(g,n,d,e,c,p))):iu(h,n,d,e,c,p)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:r}),t.length?Promise.all(t).then(()=>n):n}var bh=j("$ZodObject",(t,e)=>{if(qe.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}let i=gr(()=>dj(e));Oe(t._zod,"propValues",()=>{let o=e.shape,l={};for(let u in o){let c=o[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let a=ga,r=e.catchall,s;t._zod.parse=(o,l)=>{s??(s=i.value);let u=o.value;if(!a(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};let c=[],p=s.shape;for(let d of s.keys){let h=p[d],g=h._zod.optin==="optional",m=h._zod.optout==="optional",f=h._zod.run({value:u[d],issues:[]},l);f instanceof Promise?c.push(f.then(w=>iu(w,o,d,u,g,m))):iu(f,o,d,u,g,m)}return r?hj(c,u,o,l,i.value,t):c.length?Promise.all(c).then(()=>o):o}}),gj=j("$ZodObjectJIT",(t,e)=>{bh.init(t,e);let n=t._zod.parse,i=gr(()=>dj(e)),a=d=>{let h=new eu(["shape","payload","ctx"]),g=i.value,m=A=>{let y=Jl(A);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};h.write("const input = payload.value;");let f=Object.create(null),w=0;for(let A of g.keys)f[A]=`key_${w++}`;h.write("const newResult = {};");for(let A of g.keys){let y=f[A],O=Jl(A),$=d[A],N=$?._zod?.optin==="optional",X=$?._zod?.optout==="optional";h.write(`const ${y} = ${m(A)};`),N&&X?h.write(` + if (${y}.issues.length) { + if (${O} in input) { + payload.issues = payload.issues.concat(${y}.issues.map(iss => ({ ...iss, - path: iss.path ? [${S}, ...iss.path] : [${S}] + path: iss.path ? [${O}, ...iss.path] : [${O}] }))); } } - if (${Z}.value === undefined) { - if (${S} in input) { - newResult[${S}] = undefined; + if (${y}.value === undefined) { + if (${O} in input) { + newResult[${O}] = undefined; } } else { - newResult[${S}] = ${Z}.value; + newResult[${O}] = ${y}.value; } - `):He?f.write(` - if (${Z}.issues.length) { - payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({ + `):N?h.write(` + if (${y}.issues.length) { + payload.issues = payload.issues.concat(${y}.issues.map(iss => ({ ...iss, - path: iss.path ? [${S}, ...iss.path] : [${S}] + path: iss.path ? [${O}, ...iss.path] : [${O}] }))); } - if (${Z}.value === undefined) { - if (${S} in input) { - newResult[${S}] = undefined; + if (${y}.value === undefined) { + if (${O} in input) { + newResult[${O}] = undefined; } } else { - newResult[${S}] = ${Z}.value; + newResult[${O}] = ${y}.value; } - `):f.write(` - const ${Z}_present = ${S} in input; - if (${Z}.issues.length) { - payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({ + `):h.write(` + const ${y}_present = ${O} in input; + if (${y}.issues.length) { + payload.issues = payload.issues.concat(${y}.issues.map(iss => ({ ...iss, - path: iss.path ? [${S}, ...iss.path] : [${S}] + path: iss.path ? [${O}, ...iss.path] : [${O}] }))); } - if (!${Z}_present && !${Z}.issues.length) { + if (!${y}_present && !${y}.issues.length) { payload.issues.push({ code: "invalid_type", expected: "nonoptional", input: undefined, - path: [${S}] + path: [${O}] }); } - if (${Z}_present) { - if (${Z}.value === undefined) { - newResult[${S}] = undefined; + if (${y}_present) { + if (${y}.value === undefined) { + newResult[${O}] = undefined; } else { - newResult[${S}] = ${Z}.value; + newResult[${O}] = ${y}.value; } } - `)}f.write("payload.value = newResult;"),f.write("return payload;");let j=f.compile();return(E,Z)=>j(p,E,Z)},s,i=mr,a=!Lr.jitless,u=a&&ji.value,l=e.catchall,d;t._zod.parse=(p,f)=>{d??(d=n.value);let m=p.value;return i(m)?a&&u&&f?.async===!1&&f.jitless!==!0?(s||(s=o(e.shape)),p=s(p,f),l?lf([],m,p,f,d,t):p):r(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),p)}});function Wp(t,e,r,n){for(let s of t)if(s.issues.length===0)return e.value=s.value,e;let o=t.filter(s=>!At(s));return o.length===1?(e.value=o[0].value,o[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(s=>s.issues.map(i=>Ge(i,n,Le())))}),e)}var Bo=g("$ZodUnion",(t,e)=>{re.init(t,e),Q(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Q(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Q(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Q(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>zn(o.source)).join("|")})$`)}});let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(n,o)=>{if(r)return r(n,o);let s=!1,i=[];for(let a of e.options){let c=a._zod.run({value:n.value,issues:[]},o);if(c instanceof Promise)i.push(c),s=!0;else{if(c.issues.length===0)return c;i.push(c)}}return s?Promise.all(i).then(a=>Wp(a,n,t,o)):Wp(i,n,t,o)}});var ba=g("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Bo.init(t,e);let r=t._zod.parse;Q(t._zod,"propValues",()=>{let o={};for(let s of e.options){let i=s._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let[a,c]of Object.entries(i)){o[a]||(o[a]=new Set);for(let u of c)o[a].add(u)}}return o});let n=Fr(()=>{let o=e.options,s=new Map;for(let i of o){let a=i._zod.propValues?.[e.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let c of a){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,i)}}return s});t._zod.parse=(o,s)=>{let i=o.value;if(!mr(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:t}),o;let a=n.value.get(i?.[e.discriminator]);return a?a._zod.run(o,s):e.unionFallback||s.direction==="backward"?r(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(n.value.keys()),input:i,path:[e.discriminator],inst:t}),o)}}),xa=g("$ZodIntersection",(t,e)=>{re.init(t,e),t._zod.parse=(r,n)=>{let o=r.value,s=e.left._zod.run({value:o,issues:[]},n),i=e.right._zod.run({value:o,issues:[]},n);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([c,u])=>Xp(r,c,u)):Xp(r,s,i)}});function Bi(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Ct(t)&&Ct(e)){let r=Object.keys(e),n=Object.keys(t).filter(s=>r.indexOf(s)!==-1),o={...t,...e};for(let s of n){let i=Bi(t[s],e[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;na.l&&a.r).map(([a])=>a);if(s.length&&o&&t.issues.push({...o,keys:s}),At(t))return t;let i=Bi(e.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return t.value=i.data,t}var $a=g("$ZodRecord",(t,e)=>{re.init(t,e),t._zod.parse=(r,n)=>{let o=r.value;if(!Ct(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:t}),r;let s=[],i=e.keyType._zod.values;if(i){r.value={};let a=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let l=e.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>Ge(f,n,Le())),input:u,path:[u],inst:t});continue}let d=l.value,p=e.valueType._zod.run({value:o[u],issues:[]},n);p instanceof Promise?s.push(p.then(f=>{f.issues.length&&r.issues.push(...St(u,f.issues)),r.value[d]=f.value})):(p.issues.length&&r.issues.push(...St(u,p.issues)),r.value[d]=p.value)}let c;for(let u in o)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:c})}else{r.value={};for(let a of Reflect.ownKeys(o)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,a))continue;let c=e.keyType._zod.run({value:a,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Vi.test(a)&&c.issues.length){let d=e.keyType._zod.run({value:Number(a),issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){e.mode==="loose"?r.value[a]=o[a]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>Ge(d,n,Le())),input:a,path:[a],inst:t});continue}let l=e.valueType._zod.run({value:o[a],issues:[]},n);l instanceof Promise?s.push(l.then(d=>{d.issues.length&&r.issues.push(...St(a,d.issues)),r.value[c.value]=d.value})):(l.issues.length&&r.issues.push(...St(a,l.issues)),r.value[c.value]=l.value)}}return s.length?Promise.all(s).then(()=>r):r}});var wa=g("$ZodEnum",(t,e)=>{re.init(t,e);let r=wn(e.entries),n=new Set(r);t._zod.values=n,t._zod.pattern=new RegExp(`^(${r.filter(o=>Ai.has(typeof o)).map(o=>typeof o=="string"?zt(o):o.toString()).join("|")})$`),t._zod.parse=(o,s)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r,input:i,inst:t}),o}}),ka=g("$ZodLiteral",(t,e)=>{if(re.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?zt(n):n?zt(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,o)=>{let s=n.value;return r.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:t}),n}});var za=g("$ZodTransform",(t,e)=>{re.init(t,e),t._zod.optin="optional",t._zod.parse=(r,n)=>{if(n.direction==="backward")throw new qr(t.constructor.name);let o=e.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(r.value=i,r.fallback=!0,r));if(o instanceof Promise)throw new mt;return r.value=o,r.fallback=!0,r}});function Yp(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Ko=g("$ZodOptional",(t,e)=>{re.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Q(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Q(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${zn(r.source)})?$`):void 0}),t._zod.parse=(r,n)=>{if(e.innerType._zod.optin==="optional"){let o=r.value,s=e.innerType._zod.run(r,n);return s instanceof Promise?s.then(i=>Yp(i,o)):Yp(s,o)}return r.value===void 0?r:e.innerType._zod.run(r,n)}}),Sa=g("$ZodExactOptional",(t,e)=>{Ko.init(t,e),Q(t._zod,"values",()=>e.innerType._zod.values),Q(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,n)=>e.innerType._zod.run(r,n)}),Pa=g("$ZodNullable",(t,e)=>{re.init(t,e),Q(t._zod,"optin",()=>e.innerType._zod.optin),Q(t._zod,"optout",()=>e.innerType._zod.optout),Q(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${zn(r.source)}|null)$`):void 0}),Q(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,n)=>r.value===null?r:e.innerType._zod.run(r,n)}),Ta=g("$ZodDefault",(t,e)=>{re.init(t,e),t._zod.optin="optional",Q(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);if(r.value===void 0)return r.value=e.defaultValue,r;let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>Qp(s,e)):Qp(o,e)}});function Qp(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var Ea=g("$ZodPrefault",(t,e)=>{re.init(t,e),t._zod.optin="optional",Q(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,n))}),Ra=g("$ZodNonOptional",(t,e)=>{re.init(t,e),Q(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,n)=>{let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>ef(s,t)):ef(o,t)}});function ef(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Ia=g("$ZodCatch",(t,e)=>{re.init(t,e),t._zod.optin="optional",Q(t._zod,"optout",()=>e.innerType._zod.optout),Q(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>(r.value=s.value,s.issues.length&&(r.value=e.catchValue({...r,error:{issues:s.issues.map(i=>Ge(i,n,Le()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(s=>Ge(s,n,Le()))},input:r.value}),r.issues=[],r.fallback=!0),r)}});var Go=g("$ZodPipe",(t,e)=>{re.init(t,e),Q(t._zod,"values",()=>e.in._zod.values),Q(t._zod,"optin",()=>e.in._zod.optin),Q(t._zod,"optout",()=>e.out._zod.optout),Q(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,n)=>{if(n.direction==="backward"){let s=e.out._zod.run(r,n);return s instanceof Promise?s.then(i=>Vo(i,e.in,n)):Vo(s,e.in,n)}let o=e.in._zod.run(r,n);return o instanceof Promise?o.then(s=>Vo(s,e.out,n)):Vo(o,e.out,n)}});function Vo(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},r)}var pf=g("$ZodPreprocess",(t,e)=>{Go.init(t,e)}),Oa=g("$ZodReadonly",(t,e)=>{re.init(t,e),Q(t._zod,"propValues",()=>e.innerType._zod.propValues),Q(t._zod,"values",()=>e.innerType._zod.values),Q(t._zod,"optin",()=>e.innerType?._zod?.optin),Q(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(tf):tf(o)}});function tf(t){return t.value=Object.freeze(t.value),t}var Za=g("$ZodCustom",(t,e)=>{_e.init(t,e),re.init(t,e),t._zod.parse=(r,n)=>r,t._zod.check=r=>{let n=r.value,o=e.fn(n);if(o instanceof Promise)return o.then(s=>rf(s,r,n,t));rf(o,r,n,t)}});function rf(t,e,r,n){if(!t){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),e.issues.push(Vr(o))}}var ab=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(o){return t[o]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let s=n[o.expected]??o.expected,i=Li(o.input),a=n[i]??i;return`Invalid input: expected ${s}, received ${a}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${Do(o.values[0])}`:`Invalid option: expected one of ${Co(o.values,"|")}`;case"too_big":{let s=o.inclusive?"<=":"<",i=e(o.origin);return i?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{let s=o.inclusive?">=":">",i=e(o.origin);return i?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${i.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{let s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${Co(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(i=>`'${i}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function ff(){return{localeError:ab()}}var mf,NE=Symbol("ZodOutput"),jE=Symbol("ZodInput"),Na=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let n=r[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function cb(){return new Na}(mf=globalThis).__zod_globalRegistry??(mf.__zod_globalRegistry=cb());var _r=globalThis.__zod_globalRegistry;function ja(t,e){return new t({type:"string",...N(e)})}function Ca(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...N(e)})}function Wo(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...N(e)})}function Aa(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...N(e)})}function Ma(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...N(e)})}function Da(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...N(e)})}function qa(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...N(e)})}function La(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...N(e)})}function Ua(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...N(e)})}function Fa(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...N(e)})}function Va(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...N(e)})}function Ha(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...N(e)})}function Ja(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...N(e)})}function Ba(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...N(e)})}function Ka(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...N(e)})}function Ga(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...N(e)})}function Wa(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...N(e)})}function Xa(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...N(e)})}function Ya(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...N(e)})}function Qa(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...N(e)})}function ec(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...N(e)})}function tc(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...N(e)})}function rc(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...N(e)})}function hf(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...N(e)})}function gf(t,e){return new t({type:"string",format:"date",check:"string_format",...N(e)})}function _f(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...N(e)})}function yf(t,e){return new t({type:"string",format:"duration",check:"string_format",...N(e)})}function nc(t,e){return new t({type:"number",checks:[],...N(e)})}function oc(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...N(e)})}function sc(t,e){return new t({type:"boolean",...N(e)})}function ic(t,e){return new t({type:"null",...N(e)})}function ac(t){return new t({type:"unknown"})}function cc(t,e){return new t({type:"never",...N(e)})}function Xo(t,e){return new Hi({check:"less_than",...N(e),value:t,inclusive:!1})}function jn(t,e){return new Hi({check:"less_than",...N(e),value:t,inclusive:!0})}function Yo(t,e){return new Ji({check:"greater_than",...N(e),value:t,inclusive:!1})}function Cn(t,e){return new Ji({check:"greater_than",...N(e),value:t,inclusive:!0})}function Qo(t,e){return new jp({check:"multiple_of",...N(e),value:t})}function es(t,e){return new Ap({check:"max_length",...N(e),maximum:t})}function Hr(t,e){return new Mp({check:"min_length",...N(e),minimum:t})}function ts(t,e){return new Dp({check:"length_equals",...N(e),length:t})}function uc(t,e){return new qp({check:"string_format",format:"regex",...N(e),pattern:t})}function lc(t){return new Lp({check:"string_format",format:"lowercase",...N(t)})}function dc(t){return new Up({check:"string_format",format:"uppercase",...N(t)})}function pc(t,e){return new Fp({check:"string_format",format:"includes",...N(e),includes:t})}function fc(t,e){return new Vp({check:"string_format",format:"starts_with",...N(e),prefix:t})}function mc(t,e){return new Hp({check:"string_format",format:"ends_with",...N(e),suffix:t})}function Mt(t){return new Jp({check:"overwrite",tx:t})}function hc(t){return Mt(e=>e.normalize(t))}function gc(){return Mt(t=>t.trim())}function _c(){return Mt(t=>t.toLowerCase())}function yc(){return Mt(t=>t.toUpperCase())}function vc(){return Mt(t=>Ni(t))}function vf(t,e,r){return new t({type:"array",element:e,...N(r)})}function bc(t,e,r){let n=N(r);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function xc(t,e,r){return new t({type:"custom",check:"custom",fn:e,...N(r)})}function $c(t,e){let r=ub(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Vr(o,n.value,r._zod.def));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=r),s.continue??(s.continue=!r._zod.def.abort),n.issues.push(Vr(s))}},t(n.value,n)),e);return r}function ub(t,e){let r=new _e({check:"custom",...N(e)});return r._zod.check=t,r}function Mn(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??_r,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function ne(t,e,r={path:[],schemaPath:[]}){var n;let o=t._zod.def,s=e.seen.get(t);if(s)return s.count++,r.schemaPath.includes(t)&&(s.cycle=r.path),s.schema;let i={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,i);let a=t._zod.toJSONSchema?.();if(a)i.schema=a;else{let l={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,i.schema,l);else{let p=i.schema,f=e.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(t,e,p,l)}let d=t._zod.parent;d&&(i.ref||(i.ref=d),ne(d,e,l),e.seen.get(d).isParent=!0)}let c=e.metadataRegistry.get(t);return c&&Object.assign(i.schema,c),e.io==="input"&&Te(t)&&(delete i.schema.examples,delete i.schema.default),e.io==="input"&&"_prefault"in i.schema&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,e.seen.get(t).schema}function Dn(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let i of t.seen.entries()){let a=t.metadataRegistry.get(i[0])?.id;if(a){let c=n.get(a);if(c&&c!==i[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,i[0])}}let o=i=>{let a=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let d=t.external.registry.get(i[0])?.id,p=t.external.uri??(m=>m);if(d)return{ref:p(d)};let f=i[1].defId??i[1].schema.id??`schema${t.counter++}`;return i[1].defId=f,{defId:f,ref:`${p("__shared")}#/${a}/${f}`}}if(i[1]===r)return{ref:"#"};let u=`#/${a}/`,l=i[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:u+l}},s=i=>{if(i[1].schema.$ref)return;let a=i[1],{ref:c,defId:u}=o(i);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(t.cycles==="throw")for(let i of t.seen.entries()){let a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/ + `)}h.write("payload.value = newResult;"),h.write("return payload;");let b=h.compile();return(A,y)=>b(d,A,y)},r,s=ga,o=!dr.jitless,u=o&&zd.value,c=e.catchall,p;t._zod.parse=(d,h)=>{p??(p=i.value);let g=d.value;return s(g)?o&&u&&h?.async===!1&&h.jitless!==!0?(r||(r=a(e.shape)),d=r(d,h),c?hj([],g,d,h,p,t):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function ej(t,e,n,i){for(let r of t)if(r.issues.length===0)return e.value=r.value,e;let a=t.filter(r=>!yt(r));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(r=>r.issues.map(s=>si(s,i,Yn())))}),e)}var au=j("$ZodUnion",(t,e)=>{qe.init(t,e),Oe(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Oe(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Oe(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),Oe(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){let i=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>Ms(a.source)).join("|")})$`)}});let n=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,a)=>{if(n)return n(i,a);let r=!1,s=[];for(let o of e.options){let l=o._zod.run({value:i.value,issues:[]},a);if(l instanceof Promise)s.push(l),r=!0;else{if(l.issues.length===0)return l;s.push(l)}}return r?Promise.all(s).then(o=>ej(o,i,t,a)):ej(s,i,t,a)}});var yh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,au.init(t,e);let n=t._zod.parse;Oe(t._zod,"propValues",()=>{let a={};for(let r of e.options){let s=r._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(let u of l)a[o].add(u)}}return a});let i=gr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!ga(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=i.value.get(s?.[e.discriminator]);return o?o._zod.run(a,r):e.unionFallback||r.direction==="backward"?n(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(i.value.keys()),input:s,path:[e.discriminator],inst:t}),a)}}),Ph=j("$ZodIntersection",(t,e)=>{qe.init(t,e),t._zod.parse=(n,i)=>{let a=n.value,r=e.left._zod.run({value:a,issues:[]},i),s=e.right._zod.run({value:a,issues:[]},i);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([l,u])=>nj(n,l,u)):nj(n,r,s)}});function Zd(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(bt(t)&&bt(e)){let n=Object.keys(e),i=Object.keys(t).filter(r=>n.indexOf(r)!==-1),a={...t,...e};for(let r of i){let s=Zd(t[r],e[r]);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};a[r]=s.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;io.l&&o.r).map(([o])=>o);if(r.length&&a&&t.issues.push({...a,keys:r}),yt(t))return t;let s=Zd(e.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var jh=j("$ZodRecord",(t,e)=>{qe.init(t,e),t._zod.parse=(n,i)=>{let a=n.value;if(!bt(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),n;let r=[],s=e.keyType._zod.values;if(s){n.value={};let o=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let c=e.keyType._zod.run({value:u,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>si(h,i,Yn())),input:u,path:[u],inst:t});continue}let p=c.value,d=e.valueType._zod.run({value:a[u],issues:[]},i);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&n.issues.push(...tt(u,h.issues)),n.value[p]=h.value})):(d.issues.length&&n.issues.push(...tt(u,d.issues)),n.value[p]=d.value)}let l;for(let u in a)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{n.value={};for(let o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let l=e.keyType._zod.run({value:o,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&Fd.test(o)&&l.issues.length){let p=e.keyType._zod.run({value:Number(o),issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){e.mode==="loose"?n.value[o]=a[o]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>si(p,i,Yn())),input:o,path:[o],inst:t});continue}let c=e.valueType._zod.run({value:a[o],issues:[]},i);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&n.issues.push(...tt(o,p.issues)),n.value[l.value]=p.value})):(c.issues.length&&n.issues.push(...tt(o,c.issues)),n.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>n):n}});var Sh=j("$ZodEnum",(t,e)=>{qe.init(t,e);let n=xs(e.entries),i=new Set(n);t._zod.values=i,t._zod.pattern=new RegExp(`^(${n.filter(a=>Gd.has(typeof a)).map(a=>typeof a=="string"?it(a):a.toString()).join("|")})$`),t._zod.parse=(a,r)=>{let s=a.value;return i.has(s)||a.issues.push({code:"invalid_value",values:n,input:s,inst:t}),a}}),Oh=j("$ZodLiteral",(t,e)=>{if(qe.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(i=>typeof i=="string"?it(i):i?it(i.toString()):String(i)).join("|")})$`),t._zod.parse=(i,a)=>{let r=i.value;return n.has(r)||i.issues.push({code:"invalid_value",values:e.values,input:r,inst:t}),i}});var xh=j("$ZodTransform",(t,e)=>{qe.init(t,e),t._zod.optin="optional",t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pr(t.constructor.name);let a=e.transform(n.value,n);if(i.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(n.value=s,n.fallback=!0,n));if(a instanceof Promise)throw new Hi;return n.value=a,n.fallback=!0,n}});function ij(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var ru=j("$ZodOptional",(t,e)=>{qe.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Oe(t._zod,"pattern",()=>{let n=e.innerType._zod.pattern;return n?new RegExp(`^(${Ms(n.source)})?$`):void 0}),t._zod.parse=(n,i)=>{if(e.innerType._zod.optin==="optional"){let a=n.value,r=e.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>ij(s,a)):ij(r,a)}return n.value===void 0?n:e.innerType._zod.run(n,i)}}),Th=j("$ZodExactOptional",(t,e)=>{ru.init(t,e),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(n,i)=>e.innerType._zod.run(n,i)}),Mh=j("$ZodNullable",(t,e)=>{qe.init(t,e),Oe(t._zod,"optin",()=>e.innerType._zod.optin),Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"pattern",()=>{let n=e.innerType._zod.pattern;return n?new RegExp(`^(${Ms(n.source)}|null)$`):void 0}),Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,i)=>n.value===null?n:e.innerType._zod.run(n,i)}),Eh=j("$ZodDefault",(t,e)=>{qe.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,i)=>{if(i.direction==="backward")return e.innerType._zod.run(n,i);if(n.value===void 0)return n.value=e.defaultValue,n;let a=e.innerType._zod.run(n,i);return a instanceof Promise?a.then(r=>tj(r,e)):tj(a,e)}});function tj(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var qh=j("$ZodPrefault",(t,e)=>{qe.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,i))}),kh=j("$ZodNonOptional",(t,e)=>{qe.init(t,e),Oe(t._zod,"values",()=>{let n=e.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),t._zod.parse=(n,i)=>{let a=e.innerType._zod.run(n,i);return a instanceof Promise?a.then(r=>aj(r,t)):aj(a,t)}});function aj(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var _h=j("$ZodCatch",(t,e)=>{qe.init(t,e),t._zod.optin="optional",Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,i)=>{if(i.direction==="backward")return e.innerType._zod.run(n,i);let a=e.innerType._zod.run(n,i);return a instanceof Promise?a.then(r=>(n.value=r.value,r.issues.length&&(n.value=e.catchValue({...n,error:{issues:r.issues.map(s=>si(s,i,Yn()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=e.catchValue({...n,error:{issues:a.issues.map(r=>si(r,i,Yn()))},input:n.value}),n.issues=[],n.fallback=!0),n)}});var su=j("$ZodPipe",(t,e)=>{qe.init(t,e),Oe(t._zod,"values",()=>e.in._zod.values),Oe(t._zod,"optin",()=>e.in._zod.optin),Oe(t._zod,"optout",()=>e.out._zod.optout),Oe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,i)=>{if(i.direction==="backward"){let r=e.out._zod.run(n,i);return r instanceof Promise?r.then(s=>nu(s,e.in,i)):nu(r,e.in,i)}let a=e.in._zod.run(n,i);return a instanceof Promise?a.then(r=>nu(r,e.out,i)):nu(a,e.out,i)}});function nu(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},n)}var mj=j("$ZodPreprocess",(t,e)=>{su.init(t,e)}),Hh=j("$ZodReadonly",(t,e)=>{qe.init(t,e),Oe(t._zod,"propValues",()=>e.innerType._zod.propValues),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"optin",()=>e.innerType?._zod?.optin),Oe(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(n,i)=>{if(i.direction==="backward")return e.innerType._zod.run(n,i);let a=e.innerType._zod.run(n,i);return a instanceof Promise?a.then(rj):rj(a)}});function rj(t){return t.value=Object.freeze(t.value),t}var Rh=j("$ZodCustom",(t,e)=>{hn.init(t,e),qe.init(t,e),t._zod.parse=(n,i)=>n,t._zod.check=n=>{let i=n.value,a=e.fn(i);if(a instanceof Promise)return a.then(r=>sj(r,n,i,t));sj(a,n,i,t)}});function sj(t,e,n,i){if(!t){let a={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(a.params=i._zod.def.params),e.issues.push(mr(a))}}var PD=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(a){return t[a]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=i[a.expected]??a.expected,s=Ld(a.input),o=i[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Kl(a.values[0])}`:`Invalid option: expected one of ${Vl(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",s=e(a.origin);return s?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",s=e(a.origin);return s?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${s.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Vl(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function fj(){return{localeError:PD()}}var wj,Mee=Symbol("ZodOutput"),Eee=Symbol("ZodInput"),Ih=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){let i=n[0];return this._map.set(e,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){let n=e._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let a={...i,...this._map.get(e)};return Object.keys(a).length?a:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function jD(){return new Ih}(wj=globalThis).__zod_globalRegistry??(wj.__zod_globalRegistry=jD());var wa=globalThis.__zod_globalRegistry;function zh(t,e){return new t({type:"string",...J(e)})}function Dh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function ou(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function Nh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Uh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Lh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function Bh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function Fh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function Vh(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function Jh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Zh(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Kh(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function Qh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Yh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function Xh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function eg(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function ng(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function ig(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function tg(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function ag(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function vj(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function Cj(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function Aj(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function bj(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function rg(t,e){return new t({type:"number",checks:[],...J(e)})}function sg(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function og(t,e){return new t({type:"boolean",...J(e)})}function lg(t,e){return new t({type:"null",...J(e)})}function ug(t){return new t({type:"unknown"})}function cg(t,e){return new t({type:"never",...J(e)})}function lu(t,e){return new Vd({check:"less_than",...J(e),value:t,inclusive:!1})}function Gs(t,e){return new Vd({check:"less_than",...J(e),value:t,inclusive:!0})}function uu(t,e){return new Jd({check:"greater_than",...J(e),value:t,inclusive:!1})}function $s(t,e){return new Jd({check:"greater_than",...J(e),value:t,inclusive:!0})}function cu(t,e){return new GP({check:"multiple_of",...J(e),value:t})}function pu(t,e){return new NP({check:"max_length",...J(e),maximum:t})}function fr(t,e){return new UP({check:"min_length",...J(e),minimum:t})}function du(t,e){return new LP({check:"length_equals",...J(e),length:t})}function pg(t,e){return new WP({check:"string_format",format:"regex",...J(e),pattern:t})}function dg(t){return new BP({check:"string_format",format:"lowercase",...J(t)})}function hg(t){return new FP({check:"string_format",format:"uppercase",...J(t)})}function gg(t,e){return new VP({check:"string_format",format:"includes",...J(e),includes:t})}function mg(t,e){return new JP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function fg(t,e){return new ZP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function Pt(t){return new KP({check:"overwrite",tx:t})}function wg(t){return Pt(e=>e.normalize(t))}function vg(){return Pt(t=>t.trim())}function Cg(){return Pt(t=>t.toLowerCase())}function Ag(){return Pt(t=>t.toUpperCase())}function bg(){return Pt(t=>Id(t))}function yj(t,e,n){return new t({type:"array",element:e,...J(n)})}function yg(t,e,n){let i=J(n);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function Pg(t,e,n){return new t({type:"custom",check:"custom",fn:e,...J(n)})}function jg(t,e){let n=SD(i=>(i.addIssue=a=>{if(typeof a=="string")i.issues.push(mr(a,i.value,n._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=i.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),i.issues.push(mr(r))}},t(i.value,i)),e);return n}function SD(t,e){let n=new hn({check:"custom",...J(e)});return n._zod.check=t,n}function Us(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??wa,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function ke(t,e,n={path:[],schemaPath:[]}){var i;let a=t._zod.def,r=e.seen.get(t);if(r)return r.count++,n.schemaPath.includes(t)&&(r.cycle=n.path),r.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,s);let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let c={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let d=s.schema,h=e.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(t,e,d,c)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),ke(p,e,c),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&kn(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function Ls(t,e){let n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let s of t.seen.entries()){let o=t.metadataRegistry.get(s[0])?.id;if(o){let l=i.get(o);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(o,s[0])}}let a=s=>{let o=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(s[0])?.id,d=t.external.uri??(g=>g);if(p)return{ref:d(p)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${d("__shared")}#/${o}/${h}`}}if(s[1]===n)return{ref:"#"};let u=`#/${o}/`,c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+c}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:u}=a(s);o.def={...o.schema},u&&(o.defId=u);let c=o.schema;for(let p in c)delete c[p];c.$ref=l};if(t.cycles==="throw")for(let s of t.seen.entries()){let o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of t.seen.entries()){let a=i[1];if(e===i[0]){s(i);continue}if(t.external){let u=t.external.registry.get(i[0])?.id;if(e!==i[0]&&u){s(i);continue}}if(t.metadataRegistry.get(i[0])?.id){s(i);continue}if(a.cycle){s(i);continue}if(a.count>1&&t.reused==="ref"){s(i);continue}}}function qn(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let c=t.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){n(d);let f=t.seen.get(d),m=f.schema;if(m.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,l),a._zod.parent===d)for(let y in u)y==="$ref"||y==="allOf"||y in l||delete u[y];if(m.$ref&&f.def)for(let y in u)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(u[y])===JSON.stringify(f.def[y])&&delete u[y]}let p=a._zod.parent;if(p&&p!==d){n(p);let f=t.seen.get(p);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let m in u)m==="$ref"||m==="allOf"||m in f.def&&JSON.stringify(u[m])===JSON.stringify(f.def[m])&&delete u[m]}t.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};for(let a of[...t.seen.entries()].reverse())n(a[0]);let o={};if(t.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let a=t.external.registry.get(e)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=t.external.uri(a)}Object.assign(o,r.def??r.schema);let s=t.metadataRegistry.get(e)?.id;s!==void 0&&o.id===s&&delete o.id;let i=t.external?.defs??{};for(let a of t.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,i[c.defId]=c.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...e["~standard"],jsonSchema:{input:An(e,"input",t.processors),output:An(e,"output",t.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Te(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Te(n.element,r);if(n.type==="set")return Te(n.valueType,r);if(n.type==="lazy")return Te(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Te(n.innerType,r);if(n.type==="intersection")return Te(n.left,r)||Te(n.right,r);if(n.type==="record"||n.type==="map")return Te(n.keyType,r)||Te(n.valueType,r);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:Te(n.in,r)||Te(n.out,r);if(n.type==="object"){for(let o in n.shape)if(Te(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(let o of n.options)if(Te(o,r))return!0;return!1}if(n.type==="tuple"){for(let o of n.items)if(Te(o,r))return!0;return!!(n.rest&&Te(n.rest,r))}return!1}var bf=(t,e={})=>r=>{let n=Mn({...r,processors:e});return ne(t,n),Dn(n,t),qn(n,t)},An=(t,e,r={})=>n=>{let{libraryOptions:o,target:s}=n??{},i=Mn({...o??{},target:s,io:e,processors:r});return ne(t,i),Dn(i,t),qn(i,t)};var lb={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},wc=(t,e,r,n)=>{let o=r;o.type="string";let{minimum:s,maximum:i,format:a,patterns:c,contentEncoding:u}=t._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),a&&(o.format=lb[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?o.pattern=l[0].source:l.length>1&&(o.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},kc=(t,e,r,n)=>{let o=r,{minimum:s,maximum:i,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=t._zod.bag;typeof a=="string"&&a.includes("int")?o.type="integer":o.type="number";let d=typeof l=="number"&&l>=(s??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=e.target==="draft-04"||e.target==="openapi-3.0";d?f?(o.minimum=l,o.exclusiveMinimum=!0):o.exclusiveMinimum=l:typeof s=="number"&&(o.minimum=s),p?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof c=="number"&&(o.multipleOf=c)},zc=(t,e,r,n)=>{r.type="boolean"},$f=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},wf=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Sc=(t,e,r,n)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},kf=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},zf=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Pc=(t,e,r,n)=>{r.not={}},Sf=(t,e,r,n)=>{},Tc=(t,e,r,n)=>{},Pf=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Ec=(t,e,r,n)=>{let o=t._zod.def,s=wn(o.entries);s.every(i=>typeof i=="number")&&(r.type="number"),s.every(i=>typeof i=="string")&&(r.type="string"),r.enum=s},Rc=(t,e,r,n)=>{let o=t._zod.def,s=[];for(let i of o.values)if(i===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(i))}else s.push(i);if(s.length!==0)if(s.length===1){let i=s[0];r.type=i===null?"null":typeof i,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[i]:r.const=i}else s.every(i=>typeof i=="number")&&(r.type="number"),s.every(i=>typeof i=="string")&&(r.type="string"),s.every(i=>typeof i=="boolean")&&(r.type="boolean"),s.every(i=>i===null)&&(r.type="null"),r.enum=s},Tf=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Ef=(t,e,r,n)=>{let o=r,s=t._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=s.source},Rf=(t,e,r,n)=>{let o=r,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:a,mime:c}=t._zod.bag;i!==void 0&&(s.minLength=i),a!==void 0&&(s.maxLength=a),c?c.length===1?(s.contentMediaType=c[0],Object.assign(o,s)):(Object.assign(o,s),o.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(o,s)},If=(t,e,r,n)=>{r.type="boolean"},Ic=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Of=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Oc=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Zf=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Nf=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Zc=(t,e,r,n)=>{let o=r,s=t._zod.def,{minimum:i,maximum:a}=t._zod.bag;typeof i=="number"&&(o.minItems=i),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=ne(s.element,e,{...n,path:[...n.path,"items"]})},Nc=(t,e,r,n)=>{let o=r,s=t._zod.def;o.type="object",o.properties={};let i=s.shape;for(let u in i)o.properties[u]=ne(i[u],e,{...n,path:[...n.path,"properties",u]});let a=new Set(Object.keys(i)),c=new Set([...a].filter(u=>{let l=s.shape[u]._zod;return e.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(o.required=Array.from(c)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=ne(s.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(o.additionalProperties=!1)},jc=(t,e,r,n)=>{let o=t._zod.def,s=o.inclusive===!1,i=o.options.map((a,c)=>ne(a,e,{...n,path:[...n.path,s?"oneOf":"anyOf",c]}));s?r.oneOf=i:r.anyOf=i},Cc=(t,e,r,n)=>{let o=t._zod.def,s=ne(o.left,e,{...n,path:[...n.path,"allOf",0]}),i=ne(o.right,e,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];r.allOf=c},jf=(t,e,r,n)=>{let o=r,s=t._zod.def;o.type="array";let i=e.target==="draft-2020-12"?"prefixItems":"items",a=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",c=s.items.map((p,f)=>ne(p,e,{...n,path:[...n.path,i,f]})),u=s.rest?ne(s.rest,e,{...n,path:[...n.path,a,...e.target==="openapi-3.0"?[s.items.length]:[]]}):null;e.target==="draft-2020-12"?(o.prefixItems=c,u&&(o.items=u)):e.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),o.minItems=c.length,u||(o.maxItems=c.length)):(o.items=c,u&&(o.additionalItems=u));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(o.minItems=l),typeof d=="number"&&(o.maxItems=d)},Ac=(t,e,r,n)=>{let o=r,s=t._zod.def;o.type="object";let i=s.keyType,c=i._zod.bag?.patterns;if(s.mode==="loose"&&c&&c.size>0){let l=ne(s.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});o.patternProperties={};for(let d of c)o.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(o.propertyNames=ne(s.keyType,e,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=ne(s.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=i._zod.values;if(u){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l)}},Mc=(t,e,r,n)=>{let o=t._zod.def,s=ne(o.innerType,e,n),i=e.seen.get(t);e.target==="openapi-3.0"?(i.ref=o.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},Dc=(t,e,r,n)=>{let o=t._zod.def;ne(o.innerType,e,n);let s=e.seen.get(t);s.ref=o.innerType},qc=(t,e,r,n)=>{let o=t._zod.def;ne(o.innerType,e,n);let s=e.seen.get(t);s.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},Lc=(t,e,r,n)=>{let o=t._zod.def;ne(o.innerType,e,n);let s=e.seen.get(t);s.ref=o.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},Uc=(t,e,r,n)=>{let o=t._zod.def;ne(o.innerType,e,n);let s=e.seen.get(t);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},Fc=(t,e,r,n)=>{let o=t._zod.def,s=o.in._zod.traits.has("$ZodTransform"),i=e.io==="input"?s?o.out:o.in:o.out;ne(i,e,n);let a=e.seen.get(t);a.ref=i},Vc=(t,e,r,n)=>{let o=t._zod.def;ne(o.innerType,e,n);let s=e.seen.get(t);s.ref=o.innerType,r.readOnly=!0},Cf=(t,e,r,n)=>{let o=t._zod.def;ne(o.innerType,e,n);let s=e.seen.get(t);s.ref=o.innerType},rs=(t,e,r,n)=>{let o=t._zod.def;ne(o.innerType,e,n);let s=e.seen.get(t);s.ref=o.innerType},Af=(t,e,r,n)=>{let o=t._zod.innerType;ne(o,e,n);let s=e.seen.get(t);s.ref=o},xf={string:wc,number:kc,boolean:zc,bigint:$f,symbol:wf,null:Sc,undefined:kf,void:zf,never:Pc,any:Sf,unknown:Tc,date:Pf,enum:Ec,literal:Rc,nan:Tf,template_literal:Ef,file:Rf,success:If,custom:Ic,function:Of,transform:Oc,map:Zf,set:Nf,array:Zc,object:Nc,union:jc,intersection:Cc,tuple:jf,record:Ac,nullable:Mc,nonoptional:Dc,default:qc,prefault:Lc,catch:Uc,pipe:Fc,readonly:Vc,promise:Cf,optional:rs,lazy:Af};function Hc(t,e){if("_idmap"in t){let n=t,o=Mn({...e,processors:xf}),s={};for(let c of n._idmap.entries()){let[u,l]=c;ne(l,o)}let i={},a={registry:n,uri:e?.uri,defs:s};o.external=a;for(let c of n._idmap.entries()){let[u,l]=c;Dn(o,l),i[u]=qn(o,l)}if(Object.keys(s).length>0){let c=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[c]:s}}return{schemas:i}}let r=Mn({...e,processors:xf});return ne(t,r),Dn(r,t),qn(r,t)}var Qb=g("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");re.init(t,e),t.def=e,t.type=e.type,t.parse=(r,n)=>Lo(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>hr(t,r,n),t.parseAsync=async(r,n)=>Uo(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>gr(t,r,n),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),t.with=t.check,t.clone=(r,n)=>Ue(t,r,n),t.brand=()=>t,t.register=((r,n)=>(r.add(t,n),t)),t.apply=r=>r(t)});var ex=g("ZodMiniObject",(t,e)=>{va.init(t,e),Qb.init(t,e),Q(t,"shape",()=>e.shape)});function Jc(t,e){let r={type:"object",shape:t??{},...N(e)};return new ex(r)}function We(t){return!!t._zod}function vr(t){let e=Object.values(t);if(e.length===0)return Jc({});let r=e.every(We),n=e.every(o=>!We(o));if(r)return Jc(t);if(n)return Ri(t);throw new Error("Mixed Zod versions detected in object shape.")}function Dt(t,e){return We(t)?hr(t,e):t.safeParse(e)}async function ns(t,e){return We(t)?await gr(t,e):await t.safeParseAsync(e)}function qt(t){if(!t)return;let e;if(We(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function Jr(t){if(t){if(typeof t=="object"){let e=t,r=t;if(!e._def&&!r._zod){let n=Object.values(t);if(n.length>0&&n.every(o=>typeof o=="object"&&o!==null&&(o._def!==void 0||o._zod!==void 0||typeof o.parse=="function")))return vr(t)}}if(We(t)){let r=t._zod?.def;if(r&&(r.type==="object"||r.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function os(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function Df(t){return t.description}function qf(t){if(We(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function ss(t){if(We(t)){let s=t._zod?.def;if(s){if(s.value!==void 0)return s.value;if(Array.isArray(s.values)&&s.values.length>0)return s.values[0]}}let r=t._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=t.value;if(n!==void 0)return n}var Ln={};zi(Ln,{ZodISODate:()=>Uf,ZodISODateTime:()=>Lf,ZodISODuration:()=>Vf,ZodISOTime:()=>Ff,date:()=>Kc,datetime:()=>Bc,duration:()=>Wc,time:()=>Gc});var Lf=g("ZodISODateTime",(t,e)=>{nf.init(t,e),le.init(t,e)});function Bc(t){return hf(Lf,t)}var Uf=g("ZodISODate",(t,e)=>{of.init(t,e),le.init(t,e)});function Kc(t){return gf(Uf,t)}var Ff=g("ZodISOTime",(t,e)=>{sf.init(t,e),le.init(t,e)});function Gc(t){return _f(Ff,t)}var Vf=g("ZodISODuration",(t,e)=>{af.init(t,e),le.init(t,e)});function Wc(t){return yf(Vf,t)}var cx=(t,e)=>{qo.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Xd(t,r)},flatten:{value:r=>Wd(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,Ur,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,Ur,2)}},isEmpty:{get(){return t.issues.length===0}}})};var Fe=g("ZodError",cx,{Parent:Error});var Hf=Tn(Fe),Jf=En(Fe),Bf=Rn(Fe),Kf=In(Fe),Gf=Yd(Fe),Wf=Qd(Fe),Xf=ep(Fe),Yf=tp(Fe),Qf=rp(Fe),em=np(Fe),tm=op(Fe),rm=sp(Fe);var nm=new WeakMap;function Un(t,e,r){let n=Object.getPrototypeOf(t),o=nm.get(n);if(o||(o=new Set,nm.set(n,o)),!o.has(e)){o.add(e);for(let s in r){let i=r[s];Object.defineProperty(n,s,{configurable:!0,enumerable:!1,get(){let a=i.bind(this);return Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}var fe=g("ZodType",(t,e)=>(re.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:An(t,"input"),output:An(t,"output")}}),t.toJSONSchema=bf(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(r,n)=>Hf(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>Bf(t,r,n),t.parseAsync=async(r,n)=>Jf(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>Kf(t,r,n),t.spa=t.safeParseAsync,t.encode=(r,n)=>Gf(t,r,n),t.decode=(r,n)=>Wf(t,r,n),t.encodeAsync=async(r,n)=>Xf(t,r,n),t.decodeAsync=async(r,n)=>Yf(t,r,n),t.safeEncode=(r,n)=>Qf(t,r,n),t.safeDecode=(r,n)=>em(t,r,n),t.safeEncodeAsync=async(r,n)=>tm(t,r,n),t.safeDecodeAsync=async(r,n)=>rm(t,r,n),Un(t,"ZodType",{check(...r){let n=this.def;return this.clone(J.mergeDefs(n,{checks:[...n.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,n){return Ue(this,r,n)},brand(){return this},register(r,n){return r.add(this,n),this},refine(r,n){return this.check(Yx(r,n))},superRefine(r,n){return this.check(Qx(r,n))},overwrite(r){return this.check(Mt(r))},optional(){return pe(this)},exactOptional(){return qx(this)},nullable(){return am(this)},nullish(){return pe(am(this))},nonoptional(r){return Jx(this,r)},array(){return B(this)},or(r){return ae([this,r])},and(r){return as(this,r)},transform(r){return cm(this,mm(r))},default(r){return Fx(this,r)},prefault(r){return Hx(this,r)},catch(r){return Kx(this,r)},pipe(r){return cm(this,r)},readonly(){return Xx(this)},describe(r){let n=this.clone();return _r.add(n,{description:r}),n},meta(...r){if(r.length===0)return _r.get(this);let n=this.clone();return _r.add(n,r[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(t,"description",{get(){return _r.get(t)?.description},configurable:!0}),t)),um=g("_ZodString",(t,e)=>{Nn.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(n,o,s)=>wc(t,n,o,s);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,Un(t,"_ZodString",{regex(...n){return this.check(uc(...n))},includes(...n){return this.check(pc(...n))},startsWith(...n){return this.check(fc(...n))},endsWith(...n){return this.check(mc(...n))},min(...n){return this.check(Hr(...n))},max(...n){return this.check(es(...n))},length(...n){return this.check(ts(...n))},nonempty(...n){return this.check(Hr(1,...n))},lowercase(n){return this.check(lc(n))},uppercase(n){return this.check(dc(n))},trim(){return this.check(gc())},normalize(...n){return this.check(hc(...n))},toLowerCase(){return this.check(_c())},toUpperCase(){return this.check(yc())},slugify(){return this.check(vc())}})}),lx=g("ZodString",(t,e)=>{Nn.init(t,e),um.init(t,e),t.email=r=>t.check(Ca(dx,r)),t.url=r=>t.check(La(px,r)),t.jwt=r=>t.check(rc(Px,r)),t.emoji=r=>t.check(Ua(fx,r)),t.guid=r=>t.check(Wo(om,r)),t.uuid=r=>t.check(Aa(is,r)),t.uuidv4=r=>t.check(Ma(is,r)),t.uuidv6=r=>t.check(Da(is,r)),t.uuidv7=r=>t.check(qa(is,r)),t.nanoid=r=>t.check(Fa(mx,r)),t.guid=r=>t.check(Wo(om,r)),t.cuid=r=>t.check(Va(hx,r)),t.cuid2=r=>t.check(Ha(gx,r)),t.ulid=r=>t.check(Ja(_x,r)),t.base64=r=>t.check(Qa(kx,r)),t.base64url=r=>t.check(ec(zx,r)),t.xid=r=>t.check(Ba(yx,r)),t.ksuid=r=>t.check(Ka(vx,r)),t.ipv4=r=>t.check(Ga(bx,r)),t.ipv6=r=>t.check(Wa(xx,r)),t.cidrv4=r=>t.check(Xa($x,r)),t.cidrv6=r=>t.check(Ya(wx,r)),t.e164=r=>t.check(tc(Sx,r)),t.datetime=r=>t.check(Bc(r)),t.date=r=>t.check(Kc(r)),t.time=r=>t.check(Gc(r)),t.duration=r=>t.check(Wc(r))});function h(t){return ja(lx,t)}var le=g("ZodStringFormat",(t,e)=>{se.init(t,e),um.init(t,e)}),dx=g("ZodEmail",(t,e)=>{Wi.init(t,e),le.init(t,e)});var om=g("ZodGUID",(t,e)=>{Ki.init(t,e),le.init(t,e)});var is=g("ZodUUID",(t,e)=>{Gi.init(t,e),le.init(t,e)});var px=g("ZodURL",(t,e)=>{Xi.init(t,e),le.init(t,e)});var fx=g("ZodEmoji",(t,e)=>{Yi.init(t,e),le.init(t,e)});var mx=g("ZodNanoID",(t,e)=>{Qi.init(t,e),le.init(t,e)});var hx=g("ZodCUID",(t,e)=>{ea.init(t,e),le.init(t,e)});var gx=g("ZodCUID2",(t,e)=>{ta.init(t,e),le.init(t,e)});var _x=g("ZodULID",(t,e)=>{ra.init(t,e),le.init(t,e)});var yx=g("ZodXID",(t,e)=>{na.init(t,e),le.init(t,e)});var vx=g("ZodKSUID",(t,e)=>{oa.init(t,e),le.init(t,e)});var bx=g("ZodIPv4",(t,e)=>{sa.init(t,e),le.init(t,e)});var xx=g("ZodIPv6",(t,e)=>{ia.init(t,e),le.init(t,e)});var $x=g("ZodCIDRv4",(t,e)=>{aa.init(t,e),le.init(t,e)});var wx=g("ZodCIDRv6",(t,e)=>{ca.init(t,e),le.init(t,e)});var kx=g("ZodBase64",(t,e)=>{ua.init(t,e),le.init(t,e)});var zx=g("ZodBase64URL",(t,e)=>{la.init(t,e),le.init(t,e)});var Sx=g("ZodE164",(t,e)=>{da.init(t,e),le.init(t,e)});var Px=g("ZodJWT",(t,e)=>{pa.init(t,e),le.init(t,e)});var lm=g("ZodNumber",(t,e)=>{Jo.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(n,o,s)=>kc(t,n,o,s),Un(t,"ZodNumber",{gt(n,o){return this.check(Yo(n,o))},gte(n,o){return this.check(Cn(n,o))},min(n,o){return this.check(Cn(n,o))},lt(n,o){return this.check(Xo(n,o))},lte(n,o){return this.check(jn(n,o))},max(n,o){return this.check(jn(n,o))},int(n){return this.check(sm(n))},safe(n){return this.check(sm(n))},positive(n){return this.check(Yo(0,n))},nonnegative(n){return this.check(Cn(0,n))},negative(n){return this.check(Xo(0,n))},nonpositive(n){return this.check(jn(0,n))},multipleOf(n,o){return this.check(Qo(n,o))},step(n,o){return this.check(Qo(n,o))},finite(){return this}});let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function ee(t){return nc(lm,t)}var Tx=g("ZodNumberFormat",(t,e)=>{fa.init(t,e),lm.init(t,e)});function sm(t){return oc(Tx,t)}var Ex=g("ZodBoolean",(t,e)=>{ma.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>zc(t,r,n,o)});function ye(t){return sc(Ex,t)}var Rx=g("ZodNull",(t,e)=>{ha.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Sc(t,r,n,o)});function dm(t){return ic(Rx,t)}var Ix=g("ZodUnknown",(t,e)=>{ga.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Tc(t,r,n,o)});function de(){return ac(Ix)}var Ox=g("ZodNever",(t,e)=>{_a.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Pc(t,r,n,o)});function Zx(t){return cc(Ox,t)}var Nx=g("ZodArray",(t,e)=>{ya.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Zc(t,r,n,o),t.element=e.element,Un(t,"ZodArray",{min(r,n){return this.check(Hr(r,n))},nonempty(r){return this.check(Hr(1,r))},max(r,n){return this.check(es(r,n))},length(r,n){return this.check(ts(r,n))},unwrap(){return this.element}})});function B(t,e){return vf(Nx,t,e)}var pm=g("ZodObject",(t,e)=>{df.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Nc(t,r,n,o),J.defineLazy(t,"shape",()=>e.shape),Un(t,"ZodObject",{keyof(){return je(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:de()})},loose(){return this.clone({...this._zod.def,catchall:de()})},strict(){return this.clone({...this._zod.def,catchall:Zx()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return J.extend(this,r)},safeExtend(r){return J.safeExtend(this,r)},merge(r){return J.merge(this,r)},pick(r){return J.pick(this,r)},omit(r){return J.omit(this,r)},partial(...r){return J.partial(cs,this,r[0])},required(...r){return J.required(hm,this,r[0])}})});function z(t,e){let r={type:"object",shape:t??{},...J.normalizeParams(e)};return new pm(r)}function Ee(t,e){return new pm({type:"object",shape:t,catchall:de(),...J.normalizeParams(e)})}var fm=g("ZodUnion",(t,e)=>{Bo.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>jc(t,r,n,o),t.options=e.options});function ae(t,e){return new fm({type:"union",options:t,...J.normalizeParams(e)})}var jx=g("ZodDiscriminatedUnion",(t,e)=>{fm.init(t,e),ba.init(t,e)});function Yc(t,e,r){return new jx({type:"union",options:e,discriminator:t,...J.normalizeParams(r)})}var Cx=g("ZodIntersection",(t,e)=>{xa.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Cc(t,r,n,o)});function as(t,e){return new Cx({type:"intersection",left:t,right:e})}var im=g("ZodRecord",(t,e)=>{$a.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Ac(t,r,n,o),t.keyType=e.keyType,t.valueType=e.valueType});function ie(t,e,r){return!e||!e._zod?new im({type:"record",keyType:h(),valueType:t,...J.normalizeParams(e)}):new im({type:"record",keyType:t,valueType:e,...J.normalizeParams(r)})}var Xc=g("ZodEnum",(t,e)=>{wa.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(n,o,s)=>Ec(t,n,o,s),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(n,o)=>{let s={};for(let i of n)if(r.has(i))s[i]=e.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Xc({...e,checks:[],...J.normalizeParams(o),entries:s})},t.exclude=(n,o)=>{let s={...e.entries};for(let i of n)if(r.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new Xc({...e,checks:[],...J.normalizeParams(o),entries:s})}});function je(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Xc({type:"enum",entries:r,...J.normalizeParams(e)})}var Ax=g("ZodLiteral",(t,e)=>{ka.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Rc(t,r,n,o),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function R(t,e){return new Ax({type:"literal",values:Array.isArray(t)?t:[t],...J.normalizeParams(e)})}var Mx=g("ZodTransform",(t,e)=>{za.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Oc(t,r,n,o),t._zod.parse=(r,n)=>{if(n.direction==="backward")throw new qr(t.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(J.issue(s,r.value,e));else{let i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),r.issues.push(J.issue(i))}};let o=e.transform(r.value,r);return o instanceof Promise?o.then(s=>(r.value=s,r.fallback=!0,r)):(r.value=o,r.fallback=!0,r)}});function mm(t){return new Mx({type:"transform",transform:t})}var cs=g("ZodOptional",(t,e)=>{Ko.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>rs(t,r,n,o),t.unwrap=()=>t._zod.def.innerType});function pe(t){return new cs({type:"optional",innerType:t})}var Dx=g("ZodExactOptional",(t,e)=>{Sa.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>rs(t,r,n,o),t.unwrap=()=>t._zod.def.innerType});function qx(t){return new Dx({type:"optional",innerType:t})}var Lx=g("ZodNullable",(t,e)=>{Pa.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Mc(t,r,n,o),t.unwrap=()=>t._zod.def.innerType});function am(t){return new Lx({type:"nullable",innerType:t})}var Ux=g("ZodDefault",(t,e)=>{Ta.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>qc(t,r,n,o),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Fx(t,e){return new Ux({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():J.shallowClone(e)}})}var Vx=g("ZodPrefault",(t,e)=>{Ea.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Lc(t,r,n,o),t.unwrap=()=>t._zod.def.innerType});function Hx(t,e){return new Vx({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():J.shallowClone(e)}})}var hm=g("ZodNonOptional",(t,e)=>{Ra.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Dc(t,r,n,o),t.unwrap=()=>t._zod.def.innerType});function Jx(t,e){return new hm({type:"nonoptional",innerType:t,...J.normalizeParams(e)})}var Bx=g("ZodCatch",(t,e)=>{Ia.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Uc(t,r,n,o),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Kx(t,e){return new Bx({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var gm=g("ZodPipe",(t,e)=>{Go.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Fc(t,r,n,o),t.in=e.in,t.out=e.out});function cm(t,e){return new gm({type:"pipe",in:t,out:e})}var Gx=g("ZodPreprocess",(t,e)=>{gm.init(t,e),pf.init(t,e)}),Wx=g("ZodReadonly",(t,e)=>{Oa.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Vc(t,r,n,o),t.unwrap=()=>t._zod.def.innerType});function Xx(t){return new Wx({type:"readonly",innerType:t})}var _m=g("ZodCustom",(t,e)=>{Za.init(t,e),fe.init(t,e),t._zod.processJSONSchema=(r,n,o)=>Ic(t,r,n,o)});function ym(t,e){return bc(_m,t??(()=>!0),e)}function Yx(t,e={}){return xc(_m,t,e)}function Qx(t,e){return $c(t,e)}function Qc(t,e){return new Gx({type:"pipe",in:mm(t),out:e})}Le(ff());var tu="2025-11-25";var vm=[tu,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Lt="io.modelcontextprotocol/related-task",ls="2.0",ge=ym(t=>t!==null&&(typeof t=="object"||typeof t=="function")),bm=ae([h(),ee().int()]),xm=h(),FR=Ee({ttl:ee().optional(),pollInterval:ee().optional()}),e$=z({ttl:ee().optional()}),t$=z({taskId:h()}),ru=Ee({progressToken:bm.optional(),[Lt]:t$.optional()}),Ve=z({_meta:ru.optional()}),Fn=Ve.extend({task:e$.optional()}),$m=t=>Fn.safeParse(t).success,be=z({method:h(),params:Ve.loose().optional()}),Xe=z({_meta:ru.optional()}),Ye=z({method:h(),params:Xe.loose().optional()}),xe=Ee({_meta:ru.optional()}),ds=ae([h(),ee().int()]),wm=z({jsonrpc:R(ls),id:ds,...be.shape}).strict(),nu=t=>wm.safeParse(t).success,km=z({jsonrpc:R(ls),...Ye.shape}).strict(),zm=t=>km.safeParse(t).success,ou=z({jsonrpc:R(ls),id:ds,result:xe}).strict(),Vn=t=>ou.safeParse(t).success;var O;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(O||(O={}));var su=z({jsonrpc:R(ls),id:ds.optional(),error:z({code:ee().int(),message:h(),data:de().optional()})}).strict();var Sm=t=>su.safeParse(t).success;var Pm=ae([wm,km,ou,su]),VR=ae([ou,su]),ps=xe.strict(),r$=Xe.extend({requestId:ds.optional(),reason:h().optional()}),fs=Ye.extend({method:R("notifications/cancelled"),params:r$}),n$=z({src:h(),mimeType:h().optional(),sizes:B(h()).optional(),theme:je(["light","dark"]).optional()}),Hn=z({icons:B(n$).optional()}),Br=z({name:h(),title:h().optional()}),Tm=Br.extend({...Br.shape,...Hn.shape,version:h(),websiteUrl:h().optional(),description:h().optional()}),o$=as(z({applyDefaults:ye().optional()}),ie(h(),de())),s$=Qc(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,as(z({form:o$.optional(),url:ge.optional()}),ie(h(),de()).optional())),i$=Ee({list:ge.optional(),cancel:ge.optional(),requests:Ee({sampling:Ee({createMessage:ge.optional()}).optional(),elicitation:Ee({create:ge.optional()}).optional()}).optional()}),a$=Ee({list:ge.optional(),cancel:ge.optional(),requests:Ee({tools:Ee({call:ge.optional()}).optional()}).optional()}),c$=z({experimental:ie(h(),ge).optional(),sampling:z({context:ge.optional(),tools:ge.optional()}).optional(),elicitation:s$.optional(),roots:z({listChanged:ye().optional()}).optional(),tasks:i$.optional(),extensions:ie(h(),ge).optional()}),u$=Ve.extend({protocolVersion:h(),capabilities:c$,clientInfo:Tm}),iu=be.extend({method:R("initialize"),params:u$});var l$=z({experimental:ie(h(),ge).optional(),logging:ge.optional(),completions:ge.optional(),prompts:z({listChanged:ye().optional()}).optional(),resources:z({subscribe:ye().optional(),listChanged:ye().optional()}).optional(),tools:z({listChanged:ye().optional()}).optional(),tasks:a$.optional(),extensions:ie(h(),ge).optional()}),d$=xe.extend({protocolVersion:h(),capabilities:l$,serverInfo:Tm,instructions:h().optional()}),au=Ye.extend({method:R("notifications/initialized"),params:Xe.optional()});var ms=be.extend({method:R("ping"),params:Ve.optional()}),p$=z({progress:ee(),total:pe(ee()),message:pe(h())}),f$=z({...Xe.shape,...p$.shape,progressToken:bm}),hs=Ye.extend({method:R("notifications/progress"),params:f$}),m$=Ve.extend({cursor:xm.optional()}),Jn=be.extend({params:m$.optional()}),Bn=xe.extend({nextCursor:xm.optional()}),h$=je(["working","input_required","completed","failed","cancelled"]),Kn=z({taskId:h(),status:h$,ttl:ae([ee(),dm()]),createdAt:h(),lastUpdatedAt:h(),pollInterval:pe(ee()),statusMessage:pe(h())}),Kr=xe.extend({task:Kn}),g$=Xe.merge(Kn),Gn=Ye.extend({method:R("notifications/tasks/status"),params:g$}),gs=be.extend({method:R("tasks/get"),params:Ve.extend({taskId:h()})}),_s=xe.merge(Kn),ys=be.extend({method:R("tasks/result"),params:Ve.extend({taskId:h()})}),HR=xe.loose(),vs=Jn.extend({method:R("tasks/list")}),bs=Bn.extend({tasks:B(Kn)}),xs=be.extend({method:R("tasks/cancel"),params:Ve.extend({taskId:h()})}),Em=xe.merge(Kn),Rm=z({uri:h(),mimeType:pe(h()),_meta:ie(h(),de()).optional()}),Im=Rm.extend({text:h()}),cu=h().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),Om=Rm.extend({blob:cu}),Wn=je(["user","assistant"]),Gr=z({audience:B(Wn).optional(),priority:ee().min(0).max(1).optional(),lastModified:Ln.datetime({offset:!0}).optional()}),Zm=z({...Br.shape,...Hn.shape,uri:h(),description:pe(h()),mimeType:pe(h()),size:pe(ee()),annotations:Gr.optional(),_meta:pe(Ee({}))}),_$=z({...Br.shape,...Hn.shape,uriTemplate:h(),description:pe(h()),mimeType:pe(h()),annotations:Gr.optional(),_meta:pe(Ee({}))}),$s=Jn.extend({method:R("resources/list")}),y$=Bn.extend({resources:B(Zm)}),ws=Jn.extend({method:R("resources/templates/list")}),v$=Bn.extend({resourceTemplates:B(_$)}),uu=Ve.extend({uri:h()}),b$=uu,ks=be.extend({method:R("resources/read"),params:b$}),x$=xe.extend({contents:B(ae([Im,Om]))}),$$=Ye.extend({method:R("notifications/resources/list_changed"),params:Xe.optional()}),w$=uu,k$=be.extend({method:R("resources/subscribe"),params:w$}),z$=uu,S$=be.extend({method:R("resources/unsubscribe"),params:z$}),P$=Xe.extend({uri:h()}),T$=Ye.extend({method:R("notifications/resources/updated"),params:P$}),E$=z({name:h(),description:pe(h()),required:pe(ye())}),R$=z({...Br.shape,...Hn.shape,description:pe(h()),arguments:pe(B(E$)),_meta:pe(Ee({}))}),zs=Jn.extend({method:R("prompts/list")}),I$=Bn.extend({prompts:B(R$)}),O$=Ve.extend({name:h(),arguments:ie(h(),h()).optional()}),Ss=be.extend({method:R("prompts/get"),params:O$}),lu=z({type:R("text"),text:h(),annotations:Gr.optional(),_meta:ie(h(),de()).optional()}),du=z({type:R("image"),data:cu,mimeType:h(),annotations:Gr.optional(),_meta:ie(h(),de()).optional()}),pu=z({type:R("audio"),data:cu,mimeType:h(),annotations:Gr.optional(),_meta:ie(h(),de()).optional()}),Z$=z({type:R("tool_use"),name:h(),id:h(),input:ie(h(),de()),_meta:ie(h(),de()).optional()}),N$=z({type:R("resource"),resource:ae([Im,Om]),annotations:Gr.optional(),_meta:ie(h(),de()).optional()}),j$=Zm.extend({type:R("resource_link")}),fu=ae([lu,du,pu,j$,N$]),C$=z({role:Wn,content:fu}),A$=xe.extend({description:h().optional(),messages:B(C$)}),M$=Ye.extend({method:R("notifications/prompts/list_changed"),params:Xe.optional()}),D$=z({title:h().optional(),readOnlyHint:ye().optional(),destructiveHint:ye().optional(),idempotentHint:ye().optional(),openWorldHint:ye().optional()}),q$=z({taskSupport:je(["required","optional","forbidden"]).optional()}),Nm=z({...Br.shape,...Hn.shape,description:h().optional(),inputSchema:z({type:R("object"),properties:ie(h(),ge).optional(),required:B(h()).optional()}).catchall(de()),outputSchema:z({type:R("object"),properties:ie(h(),ge).optional(),required:B(h()).optional()}).catchall(de()).optional(),annotations:D$.optional(),execution:q$.optional(),_meta:ie(h(),de()).optional()}),Ps=Jn.extend({method:R("tools/list")}),L$=Bn.extend({tools:B(Nm)}),Ts=xe.extend({content:B(fu).default([]),structuredContent:ie(h(),de()).optional(),isError:ye().optional()}),JR=Ts.or(xe.extend({toolResult:de()})),U$=Fn.extend({name:h(),arguments:ie(h(),de()).optional()}),Wr=be.extend({method:R("tools/call"),params:U$}),F$=Ye.extend({method:R("notifications/tools/list_changed"),params:Xe.optional()}),BR=z({autoRefresh:ye().default(!0),debounceMs:ee().int().nonnegative().default(300)}),Xn=je(["debug","info","notice","warning","error","critical","alert","emergency"]),V$=Ve.extend({level:Xn}),mu=be.extend({method:R("logging/setLevel"),params:V$}),H$=Xe.extend({level:Xn,logger:h().optional(),data:de()}),J$=Ye.extend({method:R("notifications/message"),params:H$}),B$=z({name:h().optional()}),K$=z({hints:B(B$).optional(),costPriority:ee().min(0).max(1).optional(),speedPriority:ee().min(0).max(1).optional(),intelligencePriority:ee().min(0).max(1).optional()}),G$=z({mode:je(["auto","required","none"]).optional()}),W$=z({type:R("tool_result"),toolUseId:h().describe("The unique identifier for the corresponding tool call."),content:B(fu).default([]),structuredContent:z({}).loose().optional(),isError:ye().optional(),_meta:ie(h(),de()).optional()}),X$=Yc("type",[lu,du,pu]),us=Yc("type",[lu,du,pu,Z$,W$]),Y$=z({role:Wn,content:ae([us,B(us)]),_meta:ie(h(),de()).optional()}),Q$=Fn.extend({messages:B(Y$),modelPreferences:K$.optional(),systemPrompt:h().optional(),includeContext:je(["none","thisServer","allServers"]).optional(),temperature:ee().optional(),maxTokens:ee().int(),stopSequences:B(h()).optional(),metadata:ge.optional(),tools:B(Nm).optional(),toolChoice:G$.optional()}),e0=be.extend({method:R("sampling/createMessage"),params:Q$}),Yn=xe.extend({model:h(),stopReason:pe(je(["endTurn","stopSequence","maxTokens"]).or(h())),role:Wn,content:X$}),hu=xe.extend({model:h(),stopReason:pe(je(["endTurn","stopSequence","maxTokens","toolUse"]).or(h())),role:Wn,content:ae([us,B(us)])}),t0=z({type:R("boolean"),title:h().optional(),description:h().optional(),default:ye().optional()}),r0=z({type:R("string"),title:h().optional(),description:h().optional(),minLength:ee().optional(),maxLength:ee().optional(),format:je(["email","uri","date","date-time"]).optional(),default:h().optional()}),n0=z({type:je(["number","integer"]),title:h().optional(),description:h().optional(),minimum:ee().optional(),maximum:ee().optional(),default:ee().optional()}),o0=z({type:R("string"),title:h().optional(),description:h().optional(),enum:B(h()),default:h().optional()}),s0=z({type:R("string"),title:h().optional(),description:h().optional(),oneOf:B(z({const:h(),title:h()})),default:h().optional()}),i0=z({type:R("string"),title:h().optional(),description:h().optional(),enum:B(h()),enumNames:B(h()).optional(),default:h().optional()}),a0=ae([o0,s0]),c0=z({type:R("array"),title:h().optional(),description:h().optional(),minItems:ee().optional(),maxItems:ee().optional(),items:z({type:R("string"),enum:B(h())}),default:B(h()).optional()}),u0=z({type:R("array"),title:h().optional(),description:h().optional(),minItems:ee().optional(),maxItems:ee().optional(),items:z({anyOf:B(z({const:h(),title:h()}))}),default:B(h()).optional()}),l0=ae([c0,u0]),d0=ae([i0,a0,l0]),p0=ae([d0,t0,r0,n0]),f0=Fn.extend({mode:R("form").optional(),message:h(),requestedSchema:z({type:R("object"),properties:ie(h(),p0),required:B(h()).optional()})}),m0=Fn.extend({mode:R("url"),message:h(),elicitationId:h(),url:h().url()}),h0=ae([f0,m0]),g0=be.extend({method:R("elicitation/create"),params:h0}),_0=Xe.extend({elicitationId:h()}),y0=Ye.extend({method:R("notifications/elicitation/complete"),params:_0}),Xr=xe.extend({action:je(["accept","decline","cancel"]),content:Qc(t=>t===null?void 0:t,ie(h(),ae([h(),ee(),ye(),B(h())])).optional())}),v0=z({type:R("ref/resource"),uri:h()});var b0=z({type:R("ref/prompt"),name:h()}),x0=Ve.extend({ref:ae([b0,v0]),argument:z({name:h(),value:h()}),context:z({arguments:ie(h(),h()).optional()}).optional()}),Es=be.extend({method:R("completion/complete"),params:x0});function jm(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function Cm(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var $0=xe.extend({completion:Ee({values:B(h()).max(100),total:pe(ee().int()),hasMore:pe(ye())})}),w0=z({uri:h().startsWith("file://"),name:h().optional(),_meta:ie(h(),de()).optional()}),k0=be.extend({method:R("roots/list"),params:Ve.optional()}),gu=xe.extend({roots:B(w0)}),z0=Ye.extend({method:R("notifications/roots/list_changed"),params:Xe.optional()}),KR=ae([ms,iu,Es,mu,Ss,zs,$s,ws,ks,k$,S$,Wr,Ps,gs,ys,vs,xs]),GR=ae([fs,hs,au,z0,Gn]),WR=ae([ps,Yn,hu,Xr,gu,_s,bs,Kr]),XR=ae([ms,e0,g0,k0,gs,ys,vs,xs]),YR=ae([fs,hs,J$,T$,$$,F$,M$,Gn,y0]),QR=ae([ps,d$,$0,A$,I$,y$,v$,x$,Ts,L$,_s,bs,Kr]),T=class t extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,r,n){if(e===O.UrlElicitationRequired&&n){let o=n;if(o.elicitations)return new eu(o.elicitations,r)}return new t(e,r,n)}},eu=class extends T{constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(O.UrlElicitationRequired,r,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Ut(t){return t==="completed"||t==="failed"||t==="cancelled"}var Mm=Symbol("Let zodToJsonSchema decide on which parser to use");var Am={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},Dm=t=>typeof t=="string"?{...Am,name:t}:{...Am,...t};var qm=t=>{let e=Dm(t),r=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,o])=>[o._def,{def:o._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function _u(t,e,r,n){n?.errorMessages&&r&&(t.errorMessage={...t.errorMessage,[e]:r})}function K(t,e,r,n,o){t[e]=r,_u(t,e,n,o)}var Rs=(t,e)=>{let r=0;for(;rA(t.innerType._def,e);function yu(t,e,r){let n=r??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((o,s)=>yu(t,e,o))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return S0(t,e)}}var S0=(t,e)=>{let r={type:"integer",format:"unix-time"};if(e.target==="openApi3")return r;for(let n of t.checks)switch(n.kind){case"min":K(r,"minimum",n.value,n.message,e);break;case"max":K(r,"maximum",n.value,n.message,e);break}return r};function Hm(t,e){return{...A(t.innerType._def,e),default:t.defaultValue()}}function Jm(t,e){return e.effectStrategy==="input"?A(t.schema._def,e):me(e)}function Bm(t){return{type:"string",enum:Array.from(t.values)}}var P0=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function Km(t,e){let r=[A(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),A(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,o=[];return r.forEach(s=>{if(P0(s))o.push(...s.allOf),s.unevaluatedProperties===void 0&&(n=void 0);else{let i=s;if("additionalProperties"in s&&s.additionalProperties===!1){let{additionalProperties:a,...c}=s;i=c}else n=void 0;o.push(i)}}),o.length?{allOf:o,...n}:void 0}function Gm(t,e){let r=typeof t.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[t.value]}:{type:r==="bigint"?"integer":r,const:t.value}}var vu,ot={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(vu===void 0&&(vu=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),vu),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Os(t,e){let r={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":K(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,e);break;case"max":K(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":st(r,"email",n.message,e);break;case"format:idn-email":st(r,"idn-email",n.message,e);break;case"pattern:zod":Re(r,ot.email,n.message,e);break}break;case"url":st(r,"uri",n.message,e);break;case"uuid":st(r,"uuid",n.message,e);break;case"regex":Re(r,n.regex,n.message,e);break;case"cuid":Re(r,ot.cuid,n.message,e);break;case"cuid2":Re(r,ot.cuid2,n.message,e);break;case"startsWith":Re(r,RegExp(`^${bu(n.value,e)}`),n.message,e);break;case"endsWith":Re(r,RegExp(`${bu(n.value,e)}$`),n.message,e);break;case"datetime":st(r,"date-time",n.message,e);break;case"date":st(r,"date",n.message,e);break;case"time":st(r,"time",n.message,e);break;case"duration":st(r,"duration",n.message,e);break;case"length":K(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,e),K(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,e);break;case"includes":{Re(r,RegExp(bu(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&st(r,"ipv4",n.message,e),n.version!=="v4"&&st(r,"ipv6",n.message,e);break}case"base64url":Re(r,ot.base64url,n.message,e);break;case"jwt":Re(r,ot.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&Re(r,ot.ipv4Cidr,n.message,e),n.version!=="v4"&&Re(r,ot.ipv6Cidr,n.message,e);break}case"emoji":Re(r,ot.emoji(),n.message,e);break;case"ulid":{Re(r,ot.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{st(r,"binary",n.message,e);break}case"contentEncoding:base64":{K(r,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{Re(r,ot.base64,n.message,e);break}}break}case"nanoid":Re(r,ot.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function bu(t,e){return e.patternStrategy==="escape"?E0(t):t}var T0=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function E0(t){let e="";for(let r=0;ro.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...r&&n.errorMessages&&{errorMessage:{format:r}}})):K(t,"format",e,r,n)}function Re(t,e,r,n){t.pattern||t.allOf?.some(o=>o.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:Wm(e,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):K(t,"pattern",Wm(e,n),r,n)}function Wm(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=r.i?t.source.toLowerCase():t.source,o="",s=!1,i=!1,a=!1;for(let c=0;c({...n,[o]:A(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",o]})??me(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let r={type:"object",additionalProperties:A(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return r;if(t.keyType?._def.typeName===b.ZodString&&t.keyType._def.checks?.length){let{type:n,...o}=Os(t.keyType._def,e);return{...r,propertyNames:o}}else{if(t.keyType?._def.typeName===b.ZodEnum)return{...r,propertyNames:{enum:t.keyType._def.values}};if(t.keyType?._def.typeName===b.ZodBranded&&t.keyType._def.type._def.typeName===b.ZodString&&t.keyType._def.type._def.checks?.length){let{type:n,...o}=Is(t.keyType._def,e);return{...r,propertyNames:o}}}return r}function Xm(t,e){if(e.mapStrategy==="record")return Zs(t,e);let r=A(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||me(e),n=A(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||me(e);return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function Ym(t){let e=t.values,n=Object.keys(t.values).filter(s=>typeof e[e[s]]!="number").map(s=>e[s]),o=Array.from(new Set(n.map(s=>typeof s)));return{type:o.length===1?o[0]==="string"?"string":"number":["string","number"],enum:n}}function Qm(t){return t.target==="openAi"?void 0:{not:me({...t,currentPath:[...t.currentPath,"not"]})}}function eh(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Qn={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function rh(t,e){if(e.target==="openApi3")return th(t,e);let r=t.options instanceof Map?Array.from(t.options.values()):t.options;if(r.every(n=>n._def.typeName in Qn&&(!n._def.checks||!n._def.checks.length))){let n=r.reduce((o,s)=>{let i=Qn[s._def.typeName];return i&&!o.includes(i)?[...o,i]:o},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=r.reduce((o,s)=>{let i=typeof s._def.value;switch(i){case"string":case"number":case"boolean":return[...o,i];case"bigint":return[...o,"integer"];case"object":if(s._def.value===null)return[...o,"null"];case"symbol":case"undefined":case"function":default:return o}},[]);if(n.length===r.length){let o=n.filter((s,i,a)=>a.indexOf(s)===i);return{type:o.length>1?o:o[0],enum:r.reduce((s,i)=>s.includes(i._def.value)?s:[...s,i._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,o)=>[...n,...o._def.values.filter(s=>!n.includes(s))],[])};return th(t,e)}var th=(t,e)=>{let r=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,o)=>A(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${o}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function nh(t,e){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length))return e.target==="openApi3"?{type:Qn[t.innerType._def.typeName],nullable:!0}:{type:[Qn[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=A(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let r=A(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function oh(t,e){let r={type:"number"};if(!t.checks)return r;for(let n of t.checks)switch(n.kind){case"int":r.type="integer",_u(r,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?K(r,"minimum",n.value,n.message,e):K(r,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(r.exclusiveMinimum=!0),K(r,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?K(r,"maximum",n.value,n.message,e):K(r,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(r.exclusiveMaximum=!0),K(r,"maximum",n.value,n.message,e));break;case"multipleOf":K(r,"multipleOf",n.value,n.message,e);break}return r}function sh(t,e){let r=e.target==="openAi",n={type:"object",properties:{}},o=[],s=t.shape();for(let a in s){let c=s[a];if(c===void 0||c._def===void 0)continue;let u=I0(c);u&&r&&(c._def.typeName==="ZodOptional"&&(c=c._def.innerType),c.isNullable()||(c=c.nullable()),u=!1);let l=A(c._def,{...e,currentPath:[...e.currentPath,"properties",a],propertyPath:[...e.currentPath,"properties",a]});l!==void 0&&(n.properties[a]=l,u||o.push(a))}o.length&&(n.required=o);let i=R0(t,e);return i!==void 0&&(n.additionalProperties=i),n}function R0(t,e){if(t.catchall._def.typeName!=="ZodNever")return A(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function I0(t){try{return t.isOptional()}catch{return!0}}var ih=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return A(t.innerType._def,e);let r=A(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return r?{anyOf:[{not:me(e)},r]}:me(e)};var ah=(t,e)=>{if(e.pipeStrategy==="input")return A(t.in._def,e);if(e.pipeStrategy==="output")return A(t.out._def,e);let r=A(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=A(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(o=>o!==void 0)}};function ch(t,e){return A(t.type._def,e)}function uh(t,e){let n={type:"array",uniqueItems:!0,items:A(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&K(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&K(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function lh(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((r,n)=>A(r._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:A(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((r,n)=>A(r._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function dh(t){return{not:me(t)}}function ph(t){return me(t)}var fh=(t,e)=>A(t.innerType._def,e);var mh=(t,e,r)=>{switch(e){case b.ZodString:return Os(t,r);case b.ZodNumber:return oh(t,r);case b.ZodObject:return sh(t,r);case b.ZodBigInt:return Um(t,r);case b.ZodBoolean:return Fm();case b.ZodDate:return yu(t,r);case b.ZodUndefined:return dh(r);case b.ZodNull:return eh(r);case b.ZodArray:return Lm(t,r);case b.ZodUnion:case b.ZodDiscriminatedUnion:return rh(t,r);case b.ZodIntersection:return Km(t,r);case b.ZodTuple:return lh(t,r);case b.ZodRecord:return Zs(t,r);case b.ZodLiteral:return Gm(t,r);case b.ZodEnum:return Bm(t);case b.ZodNativeEnum:return Ym(t);case b.ZodNullable:return nh(t,r);case b.ZodOptional:return ih(t,r);case b.ZodMap:return Xm(t,r);case b.ZodSet:return uh(t,r);case b.ZodLazy:return()=>t.getter()._def;case b.ZodPromise:return ch(t,r);case b.ZodNaN:case b.ZodNever:return Qm(r);case b.ZodEffects:return Jm(t,r);case b.ZodAny:return me(r);case b.ZodUnknown:return ph(r);case b.ZodDefault:return Hm(t,r);case b.ZodBranded:return Is(t,r);case b.ZodReadonly:return fh(t,r);case b.ZodCatch:return Vm(t,r);case b.ZodPipeline:return ah(t,r);case b.ZodFunction:case b.ZodVoid:case b.ZodSymbol:return;default:return(n=>{})(e)}};function A(t,e,r=!1){let n=e.seen.get(t);if(e.override){let a=e.override?.(t,e,n,r);if(a!==Mm)return a}if(n&&!r){let a=O0(n,e);if(a!==void 0)return a}let o={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,o);let s=mh(t,t.typeName,e),i=typeof s=="function"?A(s(),e):s;if(i&&Z0(t,e,i),e.postProcess){let a=e.postProcess(i,t,e);return o.jsonSchema=i,a}return o.jsonSchema=i,i}var O0=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Rs(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),me(e)):e.$refStrategy==="seen"?me(e):void 0}},Z0=(t,e,r)=>(t.description&&(r.description=t.description,e.markdownDescription&&(r.markdownDescription=t.description)),r);var xu=(t,e)=>{let r=qm(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((c,[u,l])=>({...c,[u]:A(l._def,{...r,currentPath:[...r.basePath,r.definitionPath,u]},!0)??me(r)}),{}):void 0,o=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,s=A(t._def,o===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,o]},!1)??me(r),i=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;i!==void 0&&(s.title=i),r.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[r.openAiAnyTypeName]||(n[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}));let a=o===void 0?n?{...s,[r.definitionPath]:n}:s:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,o].join("/"),[r.definitionPath]:{...n,[o]:s}};return r.target==="jsonSchema7"?a.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(a.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in a||"oneOf"in a||"allOf"in a||"type"in a&&Array.isArray(a.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),a};function N0(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function $u(t,e){return We(t)?Hc(t,{target:N0(e?.target),io:e?.pipeStrategy??"input"}):xu(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function wu(t){let r=qt(t)?.method;if(!r)throw new Error("Schema is missing a method literal");let n=ss(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function ku(t,e){let r=Dt(t,e);if(!r.success)throw r.error;return r.data}var j0=6e4,Ns=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(fs,r=>{this._oncancel(r)}),this.setNotificationHandler(hs,r=>{this._onprogress(r)}),this.setRequestHandler(ms,r=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(gs,async(r,n)=>{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new T(O.InvalidParams,"Failed to retrieve task: Task not found");return{...o}}),this.setRequestHandler(ys,async(r,n)=>{let o=async()=>{let s=r.params.taskId;if(this._taskMessageQueue){let a;for(;a=await this._taskMessageQueue.dequeue(s,n.sessionId);){if(a.type==="response"||a.type==="error"){let c=a.message,u=c.id,l=this._requestResolvers.get(u);if(l)if(this._requestResolvers.delete(u),a.type==="response")l(c);else{let d=c,p=new T(d.error.code,d.error.message,d.error.data);l(p)}else{let d=a.type==="response"?"Response":"Error";this._onerror(new Error(`${d} handler missing for request ${u}`))}continue}await this._transport?.send(a.message,{relatedRequestId:n.requestId})}}let i=await this._taskStore.getTask(s,n.sessionId);if(!i)throw new T(O.InvalidParams,`Task not found: ${s}`);if(!Ut(i.status))return await this._waitForTaskUpdate(s,n.signal),await o();if(Ut(i.status)){let a=await this._taskStore.getTaskResult(s,n.sessionId);return this._clearTaskQueue(s),{...a,_meta:{...a._meta,[Lt]:{taskId:s}}}}return await o()};return await o()}),this.setRequestHandler(vs,async(r,n)=>{try{let{tasks:o,nextCursor:s}=await this._taskStore.listTasks(r.params?.cursor,n.sessionId);return{tasks:o,nextCursor:s,_meta:{}}}catch(o){throw new T(O.InvalidParams,`Failed to list tasks: ${o instanceof Error?o.message:String(o)}`)}}),this.setRequestHandler(xs,async(r,n)=>{try{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new T(O.InvalidParams,`Task not found: ${r.params.taskId}`);if(Ut(o.status))throw new T(O.InvalidParams,`Cannot cancel task in terminal status: ${o.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);let s=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!s)throw new T(O.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...s}}catch(o){throw o instanceof T?o:new T(O.InvalidRequest,`Failed to cancel task: ${o instanceof Error?o.message:String(o)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,r,n,o,s=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(o,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:s,onTimeout:o})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),T.fromError(O.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=s=>{n?.(s),this._onerror(s)};let o=this._transport?.onmessage;this._transport.onmessage=(s,i)=>{o?.(s,i),Vn(s)||Sm(s)?this._onresponse(s):nu(s)?this._onrequest(s,i):zm(s)?this._onnotification(s):this._onerror(new Error(`Unknown message type: ${JSON.stringify(s)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let r=T.fromError(O.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(r)}_onerror(e){this.onerror?.(e)}_onnotification(e){let r=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,r){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,o=this._transport,s=e.params?._meta?.[Lt]?.taskId;if(n===void 0){let l={jsonrpc:"2.0",id:e.id,error:{code:O.MethodNotFound,message:"Method not found"}};s&&this._taskMessageQueue?this._enqueueTaskMessage(s,{type:"error",message:l,timestamp:Date.now()},o?.sessionId).catch(d=>this._onerror(new Error(`Failed to enqueue error response: ${d}`))):o?.send(l).catch(d=>this._onerror(new Error(`Failed to send an error response: ${d}`)));return}let i=new AbortController;this._requestHandlerAbortControllers.set(e.id,i);let a=$m(e.params)?e.params.task:void 0,c=this._taskStore?this.requestTaskStore(e,o?.sessionId):void 0,u={signal:i.signal,sessionId:o?.sessionId,_meta:e.params?._meta,sendNotification:async l=>{if(i.signal.aborted)return;let d={relatedRequestId:e.id};s&&(d.relatedTask={taskId:s}),await this.notification(l,d)},sendRequest:async(l,d,p)=>{if(i.signal.aborted)throw new T(O.ConnectionClosed,"Request was cancelled");let f={...p,relatedRequestId:e.id};s&&!f.relatedTask&&(f.relatedTask={taskId:s});let m=f.relatedTask?.taskId??s;return m&&c&&await c.updateTaskStatus(m,"input_required"),await this.request(l,d,f)},authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo,taskId:s,taskStore:c,taskRequestedTtl:a?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async l=>{if(i.signal.aborted)return;let d={result:l,jsonrpc:"2.0",id:e.id};s&&this._taskMessageQueue?await this._enqueueTaskMessage(s,{type:"response",message:d,timestamp:Date.now()},o?.sessionId):await o?.send(d)},async l=>{if(i.signal.aborted)return;let d={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(l.code)?l.code:O.InternalError,message:l.message??"Internal error",...l.data!==void 0&&{data:l.data}}};s&&this._taskMessageQueue?await this._enqueueTaskMessage(s,{type:"error",message:d,timestamp:Date.now()},o?.sessionId):await o?.send(d)}).catch(l=>this._onerror(new Error(`Failed to send response: ${l}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===i&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,o=Number(r),s=this._progressHandlers.get(o);if(!s){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let i=this._responseHandlers.get(o),a=this._timeoutInfo.get(o);if(a&&i&&a.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(c){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),i(c);return}s(n)}_onresponse(e){let r=Number(e.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),Vn(e))n(e);else{let i=new T(e.error.code,e.error.message,e.error.data);n(i)}return}let o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let s=!1;if(Vn(e)&&e.result&&typeof e.result=="object"){let i=e.result;if(i.task&&typeof i.task=="object"){let a=i.task;typeof a.taskId=="string"&&(s=!0,this._taskProgressTokens.set(a.taskId,r))}}if(s||this._progressHandlers.delete(r),Vn(e))o(e);else{let i=T.fromError(e.error.code,e.error.message,e.error.data);o(i)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,r,n){let{task:o}=n??{};if(!o){try{yield{type:"result",result:await this.request(e,r,n)}}catch(i){yield{type:"error",error:i instanceof T?i:new T(O.InternalError,String(i))}}return}let s;try{let i=await this.request(e,Kr,n);if(i.task)s=i.task.taskId,yield{type:"taskCreated",task:i.task};else throw new T(O.InternalError,"Task creation did not return a task");for(;;){let a=await this.getTask({taskId:s},n);if(yield{type:"taskStatus",task:a},Ut(a.status)){a.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:s},r,n)}:a.status==="failed"?yield{type:"error",error:new T(O.InternalError,`Task ${s} failed`)}:a.status==="cancelled"&&(yield{type:"error",error:new T(O.InternalError,`Task ${s} was cancelled`)});return}if(a.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:s},r,n)};return}let c=a.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,c)),n?.signal?.throwIfAborted()}}catch(i){yield{type:"error",error:i instanceof T?i:new T(O.InternalError,String(i))}}}request(e,r,n){let{relatedRequestId:o,resumptionToken:s,onresumptiontoken:i,task:a,relatedTask:c}=n??{};return new Promise((u,l)=>{let d=j=>{l(j)};if(!this._transport){d(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),a&&this.assertTaskCapability(e.method)}catch(j){d(j);return}n?.signal?.throwIfAborted();let p=this._requestMessageId++,f={...e,jsonrpc:"2.0",id:p};n?.onprogress&&(this._progressHandlers.set(p,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:p}}),a&&(f.params={...f.params,task:a}),c&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Lt]:c}});let m=j=>{this._responseHandlers.delete(p),this._progressHandlers.delete(p),this._cleanupTimeout(p),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:p,reason:String(j)}},{relatedRequestId:o,resumptionToken:s,onresumptiontoken:i}).catch(Z=>this._onerror(new Error(`Failed to send cancellation: ${Z}`)));let E=j instanceof T?j:new T(O.RequestTimeout,String(j));l(E)};this._responseHandlers.set(p,j=>{if(!n?.signal?.aborted){if(j instanceof Error)return l(j);try{let E=Dt(r,j.result);E.success?u(E.data):l(E.error)}catch(E){l(E)}}}),n?.signal?.addEventListener("abort",()=>{m(n?.signal?.reason)});let _=n?.timeout??j0,y=()=>m(T.fromError(O.RequestTimeout,"Request timed out",{timeout:_}));this._setupTimeout(p,_,n?.maxTotalTimeout,y,n?.resetTimeoutOnProgress??!1);let $=c?.taskId;if($){let j=E=>{let Z=this._responseHandlers.get(p);Z?Z(E):this._onerror(new Error(`Response handler missing for side-channeled request ${p}`))};this._requestResolvers.set(p,j),this._enqueueTaskMessage($,{type:"request",message:f,timestamp:Date.now()}).catch(E=>{this._cleanupTimeout(p),l(E)})}else this._transport.send(f,{relatedRequestId:o,resumptionToken:s,onresumptiontoken:i}).catch(j=>{this._cleanupTimeout(p),l(j)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},_s,r)}async getTaskResult(e,r,n){return this.request({method:"tasks/result",params:e},r,n)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},bs,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},Em,r)}async notification(e,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=r?.relatedTask?.taskId;if(n){let a={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[Lt]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:a,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let a={...e,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[Lt]:r.relatedTask}}}),this._transport?.send(a,r).catch(c=>this._onerror(c))});return}let i={...e,jsonrpc:"2.0"};r?.relatedTask&&(i={...i,params:{...i.params,_meta:{...i.params?._meta||{},[Lt]:r.relatedTask}}}),await this._transport.send(i,r)}setRequestHandler(e,r){let n=wu(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(o,s)=>{let i=ku(e,o);return Promise.resolve(r(i,s))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){let n=wu(e);this._notificationHandlers.set(n,o=>{let s=ku(e,o);return Promise.resolve(r(s))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let o=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,n,o)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,r);for(let o of n)if(o.type==="request"&&nu(o.message)){let s=o.message.id,i=this._requestResolvers.get(s);i?(i(new T(O.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(s)):this._onerror(new Error(`Resolver missing for request ${s} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){let n=this._options?.defaultTaskPollInterval??1e3;try{let o=await this._taskStore?.getTask(e);o?.pollInterval&&(n=o.pollInterval)}catch{}return new Promise((o,s)=>{if(r.aborted){s(new T(O.InvalidRequest,"Request cancelled"));return}let i=setTimeout(o,n);r.addEventListener("abort",()=>{clearTimeout(i),s(new T(O.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async o=>{if(!e)throw new Error("No request provided");return await n.createTask(o,e.id,{method:e.method,params:e.params},r)},getTask:async o=>{let s=await n.getTask(o,r);if(!s)throw new T(O.InvalidParams,"Failed to retrieve task: Task not found");return s},storeTaskResult:async(o,s,i)=>{await n.storeTaskResult(o,s,i,r);let a=await n.getTask(o,r);if(a){let c=Gn.parse({method:"notifications/tasks/status",params:a});await this.notification(c),Ut(a.status)&&this._cleanupTaskProgressHandler(o)}},getTaskResult:o=>n.getTaskResult(o,r),updateTaskStatus:async(o,s,i)=>{let a=await n.getTask(o,r);if(!a)throw new T(O.InvalidParams,`Task "${o}" not found - it may have been cleaned up`);if(Ut(a.status))throw new T(O.InvalidParams,`Cannot update task "${o}" from terminal status "${a.status}" to "${s}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(o,s,i,r);let c=await n.getTask(o,r);if(c){let u=Gn.parse({method:"notifications/tasks/status",params:c});await this.notification(u),Ut(c.status)&&this._cleanupTaskProgressHandler(o)}},listTasks:o=>n.listTasks(o,r)}}};function hh(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function gh(t,e){let r={...t};for(let n in e){let o=n,s=e[o];if(s===void 0)continue;let i=r[o];hh(i)&&hh(s)?r[o]={...i,...s}:r[o]=s}return r}var ay=Si(ld(),1),cy=Si(iy(),1);function MT(){let t=new ay.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,cy.default)(t),t}var hi=class{constructor(e){this._ajv=e??MT()}getValidator(e){let r="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var gi=class{constructor(e){this._server=e}requestStream(e,r,n){return this._server.requestStream(e,r,n)}createMessageStream(e,r){let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let o=e.messages[e.messages.length-1],s=Array.isArray(o.content)?o.content:[o.content],i=s.some(l=>l.type==="tool_result"),a=e.messages.length>1?e.messages[e.messages.length-2]:void 0,c=a?Array.isArray(a.content)?a.content:[a.content]:[],u=c.some(l=>l.type==="tool_use");if(i){if(s.some(l=>l.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let l=new Set(c.filter(p=>p.type==="tool_use").map(p=>p.id)),d=new Set(s.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(l.size!==d.size||![...l].every(p=>d.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Yn,r)}elicitInputStream(e,r){let n=this._server.getClientCapabilities(),o=e.mode??"form";switch(o){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let s=o==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:s},Xr,r)}async getTask(e,r){return this._server.getTask({taskId:e},r)}async getTaskResult(e,r,n){return this._server.getTaskResult({taskId:e},r,n)}async listTasks(e,r){return this._server.listTasks(e?{cursor:e}:void 0,r)}async cancelTask(e,r){return this._server.cancelTask({taskId:e},r)}};function uy(t,e,r){if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${e})`);break;default:break}}function ly(t,e,r){if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var _i=class extends Ns{constructor(e,r){super(r),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Xn.options.map((n,o)=>[n,o])),this.isMessageIgnored=(n,o)=>{let s=this._loggingLevels.get(o);return s?this.LOG_LEVEL_SEVERITY.get(n)this._oninitialize(n)),this.setNotificationHandler(au,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(mu,async(n,o)=>{let s=o.sessionId||o.requestInfo?.headers["mcp-session-id"]||void 0,{level:i}=n.params,a=Xn.safeParse(i);return a.success&&this._loggingLevels.set(s,a.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new gi(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=gh(this._capabilities,e)}setRequestHandler(e,r){let o=qt(e)?.method;if(!o)throw new Error("Schema is missing a method literal");let s;if(We(o)){let a=o;s=a._zod?.def?.value??a.value}else{let a=o;s=a._def?.value??a.value}if(typeof s!="string")throw new Error("Schema method literal must be a string");if(s==="tools/call"){let a=async(c,u)=>{let l=Dt(Wr,c);if(!l.success){let m=l.error instanceof Error?l.error.message:String(l.error);throw new T(O.InvalidParams,`Invalid tools/call request: ${m}`)}let{params:d}=l.data,p=await Promise.resolve(r(c,u));if(d.task){let m=Dt(Kr,p);if(!m.success){let _=m.error instanceof Error?m.error.message:String(m.error);throw new T(O.InvalidParams,`Invalid task creation result: ${_}`)}return m.data}let f=Dt(Ts,p);if(!f.success){let m=f.error instanceof Error?f.error.message:String(f.error);throw new T(O.InvalidParams,`Invalid tools/call result: ${m}`)}return f.data};return super.setRequestHandler(e,a)}return super.setRequestHandler(e,r)}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${e})`);break;case"ping":case"initialize":break}}assertTaskCapability(e){ly(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&uy(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let r=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:vm.includes(r)?r:tu,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},ps)}async createMessage(e,r){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let n=e.messages[e.messages.length-1],o=Array.isArray(n.content)?n.content:[n.content],s=o.some(u=>u.type==="tool_result"),i=e.messages.length>1?e.messages[e.messages.length-2]:void 0,a=i?Array.isArray(i.content)?i.content:[i.content]:[],c=a.some(u=>u.type==="tool_use");if(s){if(o.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!c)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(c){let u=new Set(a.filter(d=>d.type==="tool_use").map(d=>d.id)),l=new Set(o.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(u.size!==l.size||![...u].every(d=>l.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},hu,r):this.request({method:"sampling/createMessage",params:e},Yn,r)}async elicitInput(e,r){switch(e.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");let o=e;return this.request({method:"elicitation/create",params:o},Xr,r)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");let o=e.mode==="form"?e:{...e,mode:"form"},s=await this.request({method:"elicitation/create",params:o},Xr,r);if(s.action==="accept"&&s.content&&o.requestedSchema)try{let a=this._jsonSchemaValidator.getValidator(o.requestedSchema)(s.content);if(!a.valid)throw new T(O.InvalidParams,`Elicitation response content does not match requested schema: ${a.errorMessage}`)}catch(i){throw i instanceof T?i:new T(O.InternalError,`Error validating elicitation response: ${i instanceof Error?i.message:String(i)}`)}return s}}}createElicitationCompletionNotifier(e,r){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},r)}async listRoots(e,r){return this.request({method:"roots/list",params:e},gu,r)}async sendLoggingMessage(e,r){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,r))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};var py=Symbol.for("mcp.completable");function yd(t){return!!t&&typeof t=="object"&&py in t}function fy(t){return t[py]?.complete}var dy;(function(t){t.Completable="McpCompletable"})(dy||(dy={}));var DT=/^[A-Za-z0-9._-]{1,128}$/;function qT(t){let e=[];if(t.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(t.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${t.length})`]};if(t.includes(" ")&&e.push("Tool name contains spaces, which may cause parsing issues"),t.includes(",")&&e.push("Tool name contains commas, which may cause parsing issues"),(t.startsWith("-")||t.endsWith("-"))&&e.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(t.startsWith(".")||t.endsWith("."))&&e.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!DT.test(t)){let r=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,o,s)=>s.indexOf(n)===o);return e.push(`Tool name contains invalid characters: ${r.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function LT(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let r of e)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function vd(t){let e=qT(t);return LT(t,e.warnings),e.isValid}var yi=class{constructor(e){this._mcpServer=e}registerToolTask(e,r,n){let o={taskSupport:"required",...r.execution};if(o.taskSupport==="forbidden")throw new Error(`Cannot register task-based tool '${e}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(e,r.title,r.description,r.inputSchema,r.outputSchema,r.annotations,o,r._meta,n)}};var vi=class{constructor(e,r){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new _i(e,r)}get experimental(){return this._experimental||(this._experimental={tasks:new yi(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Xt(Ps)),this.server.assertCanSetRequestHandler(Xt(Wr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Ps,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,r])=>{let n={name:e,title:r.title,description:r.description,inputSchema:(()=>{let o=Jr(r.inputSchema);return o?$u(o,{strictUnions:!0,pipeStrategy:"input"}):UT})(),annotations:r.annotations,execution:r.execution,_meta:r._meta};if(r.outputSchema){let o=Jr(r.outputSchema);o&&(n.outputSchema=$u(o,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(Wr,async(e,r)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new T(O.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new T(O.InvalidParams,`Tool ${e.params.name} disabled`);let o=!!e.params.task,s=n.execution?.taskSupport,i="createTask"in n.handler;if((s==="required"||s==="optional")&&!i)throw new T(O.InternalError,`Tool ${e.params.name} has taskSupport '${s}' but was not registered with registerToolTask`);if(s==="required"&&!o)throw new T(O.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(s==="optional"&&!o&&i)return await this.handleAutomaticTaskPolling(n,e,r);let a=await this.validateToolInput(n,e.params.arguments,e.params.name),c=await this.executeToolHandler(n,a,r);return o||await this.validateToolOutput(n,c,e.params.name),c}catch(n){if(n instanceof T&&n.code===O.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,r,n){if(!e.inputSchema)return;let s=Jr(e.inputSchema)??e.inputSchema,i=await ns(s,r);if(!i.success){let a="error"in i?i.error:"Unknown error",c=os(a);throw new T(O.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${c}`)}return i.data}async validateToolOutput(e,r,n){if(!e.outputSchema||!("content"in r)||r.isError)return;if(!r.structuredContent)throw new T(O.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let o=Jr(e.outputSchema),s=await ns(o,r.structuredContent);if(!s.success){let i="error"in s?s.error:"Unknown error",a=os(i);throw new T(O.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${a}`)}}async executeToolHandler(e,r,n){let o=e.handler;if("createTask"in o){if(!n.taskStore)throw new Error("No task store provided.");let i={...n,taskStore:n.taskStore};if(e.inputSchema){let a=o;return await Promise.resolve(a.createTask(r,i))}else{let a=o;return await Promise.resolve(a.createTask(i))}}if(e.inputSchema){let i=o;return await Promise.resolve(i(r,n))}else{let i=o;return await Promise.resolve(i(n))}}async handleAutomaticTaskPolling(e,r,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let o=await this.validateToolInput(e,r.params.arguments,r.params.name),s=e.handler,i={...n,taskStore:n.taskStore},a=o?await Promise.resolve(s.createTask(o,i)):await Promise.resolve(s.createTask(i)),c=a.task.taskId,u=a.task,l=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(p=>setTimeout(p,l));let d=await n.taskStore.getTask(c);if(!d)throw new T(O.InternalError,`Task ${c} not found during polling`);u=d}return await n.taskStore.getTaskResult(c)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Xt(Es)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Es,async e=>{switch(e.params.ref.type){case"ref/prompt":return jm(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return Cm(e),this.handleResourceCompletion(e,e.params.ref);default:throw new T(O.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,r){let n=this._registeredPrompts[r.name];if(!n)throw new T(O.InvalidParams,`Prompt ${r.name} not found`);if(!n.enabled)throw new T(O.InvalidParams,`Prompt ${r.name} disabled`);if(!n.argsSchema)return Ro;let s=qt(n.argsSchema)?.[e.params.argument.name];if(!yd(s))return Ro;let i=fy(s);if(!i)return Ro;let a=await i(e.params.argument.value,e.params.context);return hy(a)}async handleResourceCompletion(e,r){let n=Object.values(this._registeredResourceTemplates).find(i=>i.resourceTemplate.uriTemplate.toString()===r.uri);if(!n){if(this._registeredResources[r.uri])return Ro;throw new T(O.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let o=n.resourceTemplate.completeCallback(e.params.argument.name);if(!o)return Ro;let s=await o(e.params.argument.value,e.params.context);return hy(s)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Xt($s)),this.server.assertCanSetRequestHandler(Xt(ws)),this.server.assertCanSetRequestHandler(Xt(ks)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler($s,async(e,r)=>{let n=Object.entries(this._registeredResources).filter(([s,i])=>i.enabled).map(([s,i])=>({uri:s,name:i.name,...i.metadata})),o=[];for(let s of Object.values(this._registeredResourceTemplates)){if(!s.resourceTemplate.listCallback)continue;let i=await s.resourceTemplate.listCallback(r);for(let a of i.resources)o.push({...s.metadata,...a})}return{resources:[...n,...o]}}),this.server.setRequestHandler(ws,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([r,n])=>({name:r,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(ks,async(e,r)=>{let n=new URL(e.params.uri),o=this._registeredResources[n.toString()];if(o){if(!o.enabled)throw new T(O.InvalidParams,`Resource ${n} disabled`);return o.readCallback(n,r)}for(let s of Object.values(this._registeredResourceTemplates)){let i=s.resourceTemplate.uriTemplate.match(n.toString());if(i)return s.readCallback(n,i,r)}throw new T(O.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Xt(zs)),this.server.assertCanSetRequestHandler(Xt(Ss)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(zs,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,r])=>({name:e,title:r.title,description:r.description,arguments:r.argsSchema?FT(r.argsSchema):void 0}))})),this.server.setRequestHandler(Ss,async(e,r)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new T(O.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new T(O.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let o=Jr(n.argsSchema),s=await ns(o,e.params.arguments);if(!s.success){let c="error"in s?s.error:"Unknown error",u=os(c);throw new T(O.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let i=s.data,a=n.callback;return await Promise.resolve(a(i,r))}else{let o=n.callback;return await Promise.resolve(o(r))}}),this._promptHandlersInitialized=!0)}resource(e,r,...n){let o;typeof n[0]=="object"&&(o=n.shift());let s=n[0];if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let i=this._createRegisteredResource(e,void 0,r,o,s);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let i=this._createRegisteredResourceTemplate(e,void 0,r,o,s);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}}registerResource(e,r,n,o){if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let s=this._createRegisteredResource(e,n.title,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let s=this._createRegisteredResourceTemplate(e,n.title,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}_createRegisteredResource(e,r,n,o,s){let i={name:e,title:r,metadata:o,readCallback:s,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({uri:null}),update:a=>{typeof a.uri<"u"&&a.uri!==n&&(delete this._registeredResources[n],a.uri&&(this._registeredResources[a.uri]=i)),typeof a.name<"u"&&(i.name=a.name),typeof a.title<"u"&&(i.title=a.title),typeof a.metadata<"u"&&(i.metadata=a.metadata),typeof a.callback<"u"&&(i.readCallback=a.callback),typeof a.enabled<"u"&&(i.enabled=a.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=i,i}_createRegisteredResourceTemplate(e,r,n,o,s){let i={resourceTemplate:n,title:r,metadata:o,readCallback:s,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=i)),typeof u.title<"u"&&(i.title=u.title),typeof u.template<"u"&&(i.resourceTemplate=u.template),typeof u.metadata<"u"&&(i.metadata=u.metadata),typeof u.callback<"u"&&(i.readCallback=u.callback),typeof u.enabled<"u"&&(i.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=i;let a=n.uriTemplate.variableNames;return Array.isArray(a)&&a.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),i}_createRegisteredPrompt(e,r,n,o,s){let i={title:r,description:n,argsSchema:o===void 0?void 0:vr(o),callback:s,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({name:null}),update:a=>{typeof a.name<"u"&&a.name!==e&&(delete this._registeredPrompts[e],a.name&&(this._registeredPrompts[a.name]=i)),typeof a.title<"u"&&(i.title=a.title),typeof a.description<"u"&&(i.description=a.description),typeof a.argsSchema<"u"&&(i.argsSchema=vr(a.argsSchema)),typeof a.callback<"u"&&(i.callback=a.callback),typeof a.enabled<"u"&&(i.enabled=a.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=i,o&&Object.values(o).some(c=>{let u=c instanceof cs?c._def?.innerType:c;return yd(u)})&&this.setCompletionRequestHandler(),i}_createRegisteredTool(e,r,n,o,s,i,a,c,u){vd(e);let l={title:r,description:n,inputSchema:my(o),outputSchema:my(s),annotations:i,execution:a,_meta:c,handler:u,enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:d=>{typeof d.name<"u"&&d.name!==e&&(typeof d.name=="string"&&vd(d.name),delete this._registeredTools[e],d.name&&(this._registeredTools[d.name]=l)),typeof d.title<"u"&&(l.title=d.title),typeof d.description<"u"&&(l.description=d.description),typeof d.paramsSchema<"u"&&(l.inputSchema=vr(d.paramsSchema)),typeof d.outputSchema<"u"&&(l.outputSchema=vr(d.outputSchema)),typeof d.callback<"u"&&(l.handler=d.callback),typeof d.annotations<"u"&&(l.annotations=d.annotations),typeof d._meta<"u"&&(l._meta=d._meta),typeof d.enabled<"u"&&(l.enabled=d.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=l,this.setToolRequestHandlers(),this.sendToolListChanged(),l}tool(e,...r){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,o,s,i;if(typeof r[0]=="string"&&(n=r.shift()),r.length>1){let c=r[0];if(bd(c))o=r.shift(),r.length>1&&typeof r[0]=="object"&&r[0]!==null&&!bd(r[0])&&(i=r.shift());else if(typeof c=="object"&&c!==null){if(Object.values(c).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);i=r.shift()}}let a=r[0];return this._createRegisteredTool(e,void 0,n,o,s,i,{taskSupport:"forbidden"},void 0,a)}registerTool(e,r,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:o,description:s,inputSchema:i,outputSchema:a,annotations:c,_meta:u}=r;return this._createRegisteredTool(e,o,s,i,a,c,{taskSupport:"forbidden"},u,n)}prompt(e,...r){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof r[0]=="string"&&(n=r.shift());let o;r.length>1&&(o=r.shift());let s=r[0],i=this._createRegisteredPrompt(e,void 0,n,o,s);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),i}registerPrompt(e,r,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:o,description:s,argsSchema:i}=r,a=this._createRegisteredPrompt(e,o,s,i,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),a}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,r){return this.server.sendLoggingMessage(e,r)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var UT={type:"object",properties:{}};function gy(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function _y(t){return"_def"in t||"_zod"in t||gy(t)}function bd(t){return typeof t!="object"||t===null||_y(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(gy)}function my(t){if(t){if(bd(t))return vr(t);if(!_y(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function FT(t){let e=qt(t);return e?Object.entries(e).map(([r,n])=>{let o=Df(n),s=qf(n);return{name:r,description:o,required:!s}}):[]}function Xt(t){let r=qt(t)?.method;if(!r)throw new Error("Schema is missing a method literal");let n=ss(r);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function hy(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Ro={completion:{values:[],hasMore:!1}};var xd=Si(require("node:process"),1);var bi=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` -`);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),VT(r)}clear(){this._buffer=void 0}};function VT(t){return Pm.parse(JSON.parse(t))}function yy(t){return JSON.stringify(t)+` -`}var xi=class{constructor(e=xd.default.stdin,r=xd.default.stdout){this._stdin=e,this._stdout=r,this._readBuffer=new bi,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(r=>{let n=yy(e);this._stdout.write(n)?r():this._stdout.once("drain",r)})}};var $d=t=>({config:{description:"Returns a greeting to confirm the server is running and credentials are configured. Use this to verify connectivity before calling other tools.",annotations:{title:"Hello",readOnlyHint:!0,destructiveHint:!1},inputSchema:{name:Dr.string().min(1).describe("The name to include in the greeting")}},handler:async({name:e})=>({content:[{type:"text",text:`Hello, ${e}! Server is ready.`}]})});var ej=Dr.object({}).parse(process.env),HT={},by=new vi({name:"genesys-cloud-architect",version:"1.0.0"},{instructions:"Use the hello tool to verify the server connection is working."}),vy=$d(HT);by.registerTool("hello",vy.config,vy.handler);(async()=>{let t=new xi;await by.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let o=s[1];if(e===s[0]){r(s);continue}if(t.external){let u=t.external.registry.get(s[0])?.id;if(e!==s[0]&&u){r(s);continue}}if(t.metadataRegistry.get(s[0])?.id){r(s);continue}if(o.cycle){r(s);continue}if(o.count>1&&t.reused==="ref"){r(s);continue}}}function Ws(t,e){let n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=o=>{let l=t.seen.get(o);if(l.ref===null)return;let u=l.def??l.schema,c={...u},p=l.ref;if(l.ref=null,p){i(p);let h=t.seen.get(p),g=h.schema;if(g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),o._zod.parent===p)for(let f in u)f==="$ref"||f==="allOf"||f in c||delete u[f];if(g.$ref&&h.def)for(let f in u)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(u[f])===JSON.stringify(h.def[f])&&delete u[f]}let d=o._zod.parent;if(d&&d!==p){i(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}t.override({zodSchema:o,jsonSchema:u,path:l.path??[]})};for(let o of[...t.seen.entries()].reverse())i(o[0]);let a={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=t.external.uri(o)}Object.assign(a,n.def??n.schema);let r=t.metadataRegistry.get(e)?.id;r!==void 0&&a.id===r&&delete a.id;let s=t.external?.defs??{};for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{let o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:Ns(e,"input",t.processors),output:Ns(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function kn(t,e){let n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return kn(i.element,n);if(i.type==="set")return kn(i.valueType,n);if(i.type==="lazy")return kn(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return kn(i.innerType,n);if(i.type==="intersection")return kn(i.left,n)||kn(i.right,n);if(i.type==="record"||i.type==="map")return kn(i.keyType,n)||kn(i.valueType,n);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:kn(i.in,n)||kn(i.out,n);if(i.type==="object"){for(let a in i.shape)if(kn(i.shape[a],n))return!0;return!1}if(i.type==="union"){for(let a of i.options)if(kn(a,n))return!0;return!1}if(i.type==="tuple"){for(let a of i.items)if(kn(a,n))return!0;return!!(i.rest&&kn(i.rest,n))}return!1}var Pj=(t,e={})=>n=>{let i=Us({...n,processors:e});return ke(t,i),Ls(i,t),Ws(i,t)},Ns=(t,e,n={})=>i=>{let{libraryOptions:a,target:r}=i??{},s=Us({...a??{},target:r,io:e,processors:n});return ke(t,s),Ls(s,t),Ws(s,t)};var OD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Sg=(t,e,n,i)=>{let a=n;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=OD[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Og=(t,e,n,i)=>{let a=n,{minimum:r,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof s=="number"&&(a.maximum=s),typeof l=="number"&&(a.multipleOf=l)},xg=(t,e,n,i)=>{n.type="boolean"},Sj=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Oj=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Tg=(t,e,n,i)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},xj=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Tj=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Mg=(t,e,n,i)=>{n.not={}},Mj=(t,e,n,i)=>{},Eg=(t,e,n,i)=>{},Ej=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},qg=(t,e,n,i)=>{let a=t._zod.def,r=xs(a.entries);r.every(s=>typeof s=="number")&&(n.type="number"),r.every(s=>typeof s=="string")&&(n.type="string"),n.enum=r},kg=(t,e,n,i)=>{let a=t._zod.def,r=[];for(let s of a.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(s))}else r.push(s);if(r.length!==0)if(r.length===1){let s=r[0];n.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[s]:n.const=s}else r.every(s=>typeof s=="number")&&(n.type="number"),r.every(s=>typeof s=="string")&&(n.type="string"),r.every(s=>typeof s=="boolean")&&(n.type="boolean"),r.every(s=>s===null)&&(n.type="null"),n.enum=r},qj=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},kj=(t,e,n,i)=>{let a=n,r=t._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},_j=(t,e,n,i)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:o,mime:l}=t._zod.bag;s!==void 0&&(r.minLength=s),o!==void 0&&(r.maxLength=o),l?l.length===1?(r.contentMediaType=l[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,r)},Hj=(t,e,n,i)=>{n.type="boolean"},_g=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Rj=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Hg=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ij=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},zj=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Rg=(t,e,n,i)=>{let a=n,r=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=ke(r.element,e,{...i,path:[...i.path,"items"]})},Ig=(t,e,n,i)=>{let a=n,r=t._zod.def;a.type="object",a.properties={};let s=r.shape;for(let u in s)a.properties[u]=ke(s[u],e,{...i,path:[...i.path,"properties",u]});let o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{let c=r.shape[u]._zod;return e.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(a.required=Array.from(l)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=ke(r.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},zg=(t,e,n,i)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>ke(o,e,{...i,path:[...i.path,r?"oneOf":"anyOf",l]}));r?n.oneOf=s:n.anyOf=s},Dg=(t,e,n,i)=>{let a=t._zod.def,r=ke(a.left,e,{...i,path:[...i.path,"allOf",0]}),s=ke(a.right,e,{...i,path:[...i.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];n.allOf=l},Dj=(t,e,n,i)=>{let a=n,r=t._zod.def;a.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",o=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=r.items.map((d,h)=>ke(d,e,{...i,path:[...i.path,s,h]})),u=r.rest?ke(r.rest,e,{...i,path:[...i.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null;e.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):e.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:c,maximum:p}=t._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},Gg=(t,e,n,i)=>{let a=n,r=t._zod.def;a.type="object";let s=r.keyType,l=s._zod.bag?.patterns;if(r.mode==="loose"&&l&&l.size>0){let c=ke(r.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});a.patternProperties={};for(let p of l)a.patternProperties[p.source]=c}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(a.propertyNames=ke(r.keyType,e,{...i,path:[...i.path,"propertyNames"]})),a.additionalProperties=ke(r.valueType,e,{...i,path:[...i.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},$g=(t,e,n,i)=>{let a=t._zod.def,r=ke(a.innerType,e,i),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},Ng=(t,e,n,i)=>{let a=t._zod.def;ke(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},Ug=(t,e,n,i)=>{let a=t._zod.def;ke(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Lg=(t,e,n,i)=>{let a=t._zod.def;ke(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Wg=(t,e,n,i)=>{let a=t._zod.def;ke(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},Bg=(t,e,n,i)=>{let a=t._zod.def,r=a.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?r?a.out:a.in:a.out;ke(s,e,i);let o=e.seen.get(t);o.ref=s},Fg=(t,e,n,i)=>{let a=t._zod.def;ke(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType,n.readOnly=!0},Gj=(t,e,n,i)=>{let a=t._zod.def;ke(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},hu=(t,e,n,i)=>{let a=t._zod.def;ke(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},$j=(t,e,n,i)=>{let a=t._zod.innerType;ke(a,e,i);let r=e.seen.get(t);r.ref=a},jj={string:Sg,number:Og,boolean:xg,bigint:Sj,symbol:Oj,null:Tg,undefined:xj,void:Tj,never:Mg,any:Mj,unknown:Eg,date:Ej,enum:qg,literal:kg,nan:qj,template_literal:kj,file:_j,success:Hj,custom:_g,function:Rj,transform:Hg,map:Ij,set:zj,array:Rg,object:Ig,union:zg,intersection:Dg,tuple:Dj,record:Gg,nullable:$g,nonoptional:Ng,default:Ug,prefault:Lg,catch:Wg,pipe:Bg,readonly:Fg,promise:Gj,optional:hu,lazy:$j};function Vg(t,e){if("_idmap"in t){let i=t,a=Us({...e,processors:jj}),r={};for(let l of i._idmap.entries()){let[u,c]=l;ke(c,a)}let s={},o={registry:i,uri:e?.uri,defs:r};a.external=o;for(let l of i._idmap.entries()){let[u,c]=l;Ls(a,c),s[u]=Ws(a,c)}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let n=Us({...e,processors:jj});return ke(t,n),Ls(n,t),Ws(n,t)}var mG=j("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");qe.init(t,e),t.def=e,t.type=e.type,t.parse=(n,i)=>Yl(t,n,i,{callee:t.parse}),t.safeParse=(n,i)=>ma(t,n,i),t.parseAsync=async(n,i)=>Xl(t,n,i,{callee:t.parseAsync}),t.safeParseAsync=async(n,i)=>fa(t,n,i),t.check=(...n)=>t.clone({...e,checks:[...e.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),t.with=t.check,t.clone=(n,i)=>Xn(t,n,i),t.brand=()=>t,t.register=((n,i)=>(n.add(t,i),t)),t.apply=n=>n(t)});var fG=j("ZodMiniObject",(t,e)=>{bh.init(t,e),mG.init(t,e),Oe(t,"shape",()=>e.shape)});function Jg(t,e){let n={type:"object",shape:t??{},...J(e)};return new fG(n)}function oi(t){return!!t._zod}function Ca(t){let e=Object.values(t);if(e.length===0)return Jg({});let n=e.every(oi),i=e.every(a=>!oi(a));if(n)return Jg(t);if(i)return kd(t);throw new Error("Mixed Zod versions detected in object shape.")}function jt(t,e){return oi(t)?ma(t,e):t.safeParse(e)}async function gu(t,e){return oi(t)?await fa(t,e):await t.safeParseAsync(e)}function St(t){if(!t)return;let e;if(oi(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function wr(t){if(t){if(typeof t=="object"){let e=t,n=t;if(!e._def&&!n._zod){let i=Object.values(t);if(i.length>0&&i.every(a=>typeof a=="object"&&a!==null&&(a._def!==void 0||a._zod!==void 0||typeof a.parse=="function")))return Ca(t)}}if(oi(t)){let n=t._zod?.def;if(n&&(n.type==="object"||n.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function mu(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function Uj(t){return t.description}function Lj(t){if(oi(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function fu(t){if(oi(t)){let r=t._zod?.def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}}let n=t._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}let i=t.value;if(i!==void 0)return i}var Bs={};Td(Bs,{ZodISODate:()=>Bj,ZodISODateTime:()=>Wj,ZodISODuration:()=>Vj,ZodISOTime:()=>Fj,date:()=>Kg,datetime:()=>Zg,duration:()=>Yg,time:()=>Qg});var Wj=j("ZodISODateTime",(t,e)=>{oj.init(t,e),Le.init(t,e)});function Zg(t){return vj(Wj,t)}var Bj=j("ZodISODate",(t,e)=>{lj.init(t,e),Le.init(t,e)});function Kg(t){return Cj(Bj,t)}var Fj=j("ZodISOTime",(t,e)=>{uj.init(t,e),Le.init(t,e)});function Qg(t){return Aj(Fj,t)}var Vj=j("ZodISODuration",(t,e)=>{cj.init(t,e),Le.init(t,e)});function Yg(t){return bj(Vj,t)}var jG=(t,e)=>{Ql.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>nP(t,n)},flatten:{value:n=>eP(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,hr,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,hr,2)}},isEmpty:{get(){return t.issues.length===0}}})};var ei=j("ZodError",jG,{Parent:Error});var Jj=ks(ei),Zj=_s(ei),Kj=Hs(ei),Qj=Rs(ei),Yj=iP(ei),Xj=tP(ei),eS=aP(ei),nS=rP(ei),iS=sP(ei),tS=oP(ei),aS=lP(ei),rS=uP(ei);var sS=new WeakMap;function Fs(t,e,n){let i=Object.getPrototypeOf(t),a=sS.get(i);if(a||(a=new Set,sS.set(i,a)),!a.has(e)){a.add(e);for(let r in n){let s=n[r];Object.defineProperty(i,r,{configurable:!0,enumerable:!1,get(){let o=s.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Fe=j("ZodType",(t,e)=>(qe.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:Ns(t,"input"),output:Ns(t,"output")}}),t.toJSONSchema=Pj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(n,i)=>Jj(t,n,i,{callee:t.parse}),t.safeParse=(n,i)=>Kj(t,n,i),t.parseAsync=async(n,i)=>Zj(t,n,i,{callee:t.parseAsync}),t.safeParseAsync=async(n,i)=>Qj(t,n,i),t.spa=t.safeParseAsync,t.encode=(n,i)=>Yj(t,n,i),t.decode=(n,i)=>Xj(t,n,i),t.encodeAsync=async(n,i)=>eS(t,n,i),t.decodeAsync=async(n,i)=>nS(t,n,i),t.safeEncode=(n,i)=>iS(t,n,i),t.safeDecode=(n,i)=>tS(t,n,i),t.safeEncodeAsync=async(n,i)=>aS(t,n,i),t.safeDecodeAsync=async(n,i)=>rS(t,n,i),Fs(t,"ZodType",{check(...n){let i=this.def;return this.clone(he.mergeDefs(i,{checks:[...i.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,i){return Xn(this,n,i)},brand(){return this},register(n,i){return n.add(this,i),this},refine(n,i){return this.check(g1(n,i))},superRefine(n,i){return this.check(m1(n,i))},overwrite(n){return this.check(Pt(n))},optional(){return Be(this)},exactOptional(){return i1(this)},nullable(){return cS(this)},nullish(){return Be(cS(this))},nonoptional(n){return l1(this,n)},array(){return ge(this)},or(n){return $e([this,n])},and(n){return vu(this,n)},transform(n){return pS(this,wS(n))},default(n){return r1(this,n)},prefault(n){return o1(this,n)},catch(n){return c1(this,n)},pipe(n){return pS(this,n)},readonly(){return h1(this)},describe(n){let i=this.clone();return wa.add(i,{description:n}),i},meta(...n){if(n.length===0)return wa.get(this);let i=this.clone();return wa.add(i,n[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(t,"description",{get(){return wa.get(t)?.description},configurable:!0}),t)),dS=j("_ZodString",(t,e)=>{Ds.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,a,r)=>Sg(t,i,a,r);let n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,Fs(t,"_ZodString",{regex(...i){return this.check(pg(...i))},includes(...i){return this.check(gg(...i))},startsWith(...i){return this.check(mg(...i))},endsWith(...i){return this.check(fg(...i))},min(...i){return this.check(fr(...i))},max(...i){return this.check(pu(...i))},length(...i){return this.check(du(...i))},nonempty(...i){return this.check(fr(1,...i))},lowercase(i){return this.check(dg(i))},uppercase(i){return this.check(hg(i))},trim(){return this.check(vg())},normalize(...i){return this.check(wg(...i))},toLowerCase(){return this.check(Cg())},toUpperCase(){return this.check(Ag())},slugify(){return this.check(bg())}})}),OG=j("ZodString",(t,e)=>{Ds.init(t,e),dS.init(t,e),t.email=n=>t.check(Dh(xG,n)),t.url=n=>t.check(Lh(TG,n)),t.jwt=n=>t.check(ag(LG,n)),t.emoji=n=>t.check(Wh(MG,n)),t.guid=n=>t.check(ou(oS,n)),t.uuid=n=>t.check(Gh(wu,n)),t.uuidv4=n=>t.check($h(wu,n)),t.uuidv6=n=>t.check(Nh(wu,n)),t.uuidv7=n=>t.check(Uh(wu,n)),t.nanoid=n=>t.check(Bh(EG,n)),t.guid=n=>t.check(ou(oS,n)),t.cuid=n=>t.check(Fh(qG,n)),t.cuid2=n=>t.check(Vh(kG,n)),t.ulid=n=>t.check(Jh(_G,n)),t.base64=n=>t.check(ng($G,n)),t.base64url=n=>t.check(ig(NG,n)),t.xid=n=>t.check(Zh(HG,n)),t.ksuid=n=>t.check(Kh(RG,n)),t.ipv4=n=>t.check(Qh(IG,n)),t.ipv6=n=>t.check(Yh(zG,n)),t.cidrv4=n=>t.check(Xh(DG,n)),t.cidrv6=n=>t.check(eg(GG,n)),t.e164=n=>t.check(tg(UG,n)),t.datetime=n=>t.check(Zg(n)),t.date=n=>t.check(Kg(n)),t.time=n=>t.check(Qg(n)),t.duration=n=>t.check(Yg(n))});function P(t){return zh(OG,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),dS.init(t,e)}),xG=j("ZodEmail",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var oS=j("ZodGUID",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var wu=j("ZodUUID",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var TG=j("ZodURL",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var MG=j("ZodEmoji",(t,e)=>{eh.init(t,e),Le.init(t,e)});var EG=j("ZodNanoID",(t,e)=>{nh.init(t,e),Le.init(t,e)});var qG=j("ZodCUID",(t,e)=>{ih.init(t,e),Le.init(t,e)});var kG=j("ZodCUID2",(t,e)=>{th.init(t,e),Le.init(t,e)});var _G=j("ZodULID",(t,e)=>{ah.init(t,e),Le.init(t,e)});var HG=j("ZodXID",(t,e)=>{rh.init(t,e),Le.init(t,e)});var RG=j("ZodKSUID",(t,e)=>{sh.init(t,e),Le.init(t,e)});var IG=j("ZodIPv4",(t,e)=>{oh.init(t,e),Le.init(t,e)});var zG=j("ZodIPv6",(t,e)=>{lh.init(t,e),Le.init(t,e)});var DG=j("ZodCIDRv4",(t,e)=>{uh.init(t,e),Le.init(t,e)});var GG=j("ZodCIDRv6",(t,e)=>{ch.init(t,e),Le.init(t,e)});var $G=j("ZodBase64",(t,e)=>{ph.init(t,e),Le.init(t,e)});var NG=j("ZodBase64URL",(t,e)=>{dh.init(t,e),Le.init(t,e)});var UG=j("ZodE164",(t,e)=>{hh.init(t,e),Le.init(t,e)});var LG=j("ZodJWT",(t,e)=>{gh.init(t,e),Le.init(t,e)});var hS=j("ZodNumber",(t,e)=>{tu.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,a,r)=>Og(t,i,a,r),Fs(t,"ZodNumber",{gt(i,a){return this.check(uu(i,a))},gte(i,a){return this.check($s(i,a))},min(i,a){return this.check($s(i,a))},lt(i,a){return this.check(lu(i,a))},lte(i,a){return this.check(Gs(i,a))},max(i,a){return this.check(Gs(i,a))},int(i){return this.check(lS(i))},safe(i){return this.check(lS(i))},positive(i){return this.check(uu(0,i))},nonnegative(i){return this.check($s(0,i))},negative(i){return this.check(lu(0,i))},nonpositive(i){return this.check(Gs(0,i))},multipleOf(i,a){return this.check(cu(i,a))},step(i,a){return this.check(cu(i,a))},finite(){return this}});let n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function Te(t){return rg(hS,t)}var WG=j("ZodNumberFormat",(t,e)=>{mh.init(t,e),hS.init(t,e)});function lS(t){return sg(WG,t)}var BG=j("ZodBoolean",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>xg(t,n,i,a)});function gn(t){return og(BG,t)}var FG=j("ZodNull",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Tg(t,n,i,a)});function gS(t){return lg(FG,t)}var VG=j("ZodUnknown",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Eg(t,n,i,a)});function We(){return ug(VG)}var JG=j("ZodNever",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Mg(t,n,i,a)});function ZG(t){return cg(JG,t)}var KG=j("ZodArray",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Rg(t,n,i,a),t.element=e.element,Fs(t,"ZodArray",{min(n,i){return this.check(fr(n,i))},nonempty(n){return this.check(fr(1,n))},max(n,i){return this.check(pu(n,i))},length(n,i){return this.check(du(n,i))},unwrap(){return this.element}})});function ge(t,e){return yj(KG,t,e)}var mS=j("ZodObject",(t,e)=>{gj.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Ig(t,n,i,a),he.defineLazy(t,"shape",()=>e.shape),Fs(t,"ZodObject",{keyof(){return $n(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:We()})},loose(){return this.clone({...this._zod.def,catchall:We()})},strict(){return this.clone({...this._zod.def,catchall:ZG()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return he.extend(this,n)},safeExtend(n){return he.safeExtend(this,n)},merge(n){return he.merge(this,n)},pick(n){return he.pick(this,n)},omit(n){return he.omit(this,n)},partial(...n){return he.partial(Cu,this,n[0])},required(...n){return he.required(vS,this,n[0])}})});function D(t,e){let n={type:"object",shape:t??{},...he.normalizeParams(e)};return new mS(n)}function _n(t,e){return new mS({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var fS=j("ZodUnion",(t,e)=>{au.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>zg(t,n,i,a),t.options=e.options});function $e(t,e){return new fS({type:"union",options:t,...he.normalizeParams(e)})}var QG=j("ZodDiscriminatedUnion",(t,e)=>{fS.init(t,e),yh.init(t,e)});function em(t,e,n){return new QG({type:"union",options:e,discriminator:t,...he.normalizeParams(n)})}var YG=j("ZodIntersection",(t,e)=>{Ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Dg(t,n,i,a)});function vu(t,e){return new YG({type:"intersection",left:t,right:e})}var uS=j("ZodRecord",(t,e)=>{jh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Gg(t,n,i,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,n){return!e||!e._zod?new uS({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new uS({type:"record",keyType:t,valueType:e,...he.normalizeParams(n)})}var Xg=j("ZodEnum",(t,e)=>{Sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,a,r)=>qg(t,i,a,r),t.enum=e.entries,t.options=Object.values(e.entries);let n=new Set(Object.keys(e.entries));t.extract=(i,a)=>{let r={};for(let s of i)if(n.has(s))r[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Xg({...e,checks:[],...he.normalizeParams(a),entries:r})},t.exclude=(i,a)=>{let r={...e.entries};for(let s of i)if(n.has(s))delete r[s];else throw new Error(`Key ${s} not found in enum`);return new Xg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function $n(t,e){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Xg({type:"enum",entries:n,...he.normalizeParams(e)})}var XG=j("ZodLiteral",(t,e)=>{Oh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>kg(t,n,i,a),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function W(t,e){return new XG({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var e1=j("ZodTransform",(t,e)=>{xh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Hg(t,n,i,a),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pr(t.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(he.issue(r,n.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),n.issues.push(he.issue(s))}};let a=e.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function wS(t){return new e1({type:"transform",transform:t})}var Cu=j("ZodOptional",(t,e)=>{ru.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>hu(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new Cu({type:"optional",innerType:t})}var n1=j("ZodExactOptional",(t,e)=>{Th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>hu(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function i1(t){return new n1({type:"optional",innerType:t})}var t1=j("ZodNullable",(t,e)=>{Mh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>$g(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function cS(t){return new t1({type:"nullable",innerType:t})}var a1=j("ZodDefault",(t,e)=>{Eh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Ug(t,n,i,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function r1(t,e){return new a1({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var s1=j("ZodPrefault",(t,e)=>{qh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Lg(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function o1(t,e){return new s1({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var vS=j("ZodNonOptional",(t,e)=>{kh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Ng(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function l1(t,e){return new vS({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var u1=j("ZodCatch",(t,e)=>{_h.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Wg(t,n,i,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function c1(t,e){return new u1({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var CS=j("ZodPipe",(t,e)=>{su.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Bg(t,n,i,a),t.in=e.in,t.out=e.out});function pS(t,e){return new CS({type:"pipe",in:t,out:e})}var p1=j("ZodPreprocess",(t,e)=>{CS.init(t,e),mj.init(t,e)}),d1=j("ZodReadonly",(t,e)=>{Hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Fg(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function h1(t){return new d1({type:"readonly",innerType:t})}var AS=j("ZodCustom",(t,e)=>{Rh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,i,a)=>_g(t,n,i,a)});function bS(t,e){return yg(AS,t??(()=>!0),e)}function g1(t,e={}){return Pg(AS,t,e)}function m1(t,e){return jg(t,e)}function nm(t,e){return new p1({type:"pipe",in:wS(t),out:e})}Yn(fj());var tm="2025-11-25",yS="2025-03-26",Cr=[tm,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Ot="io.modelcontextprotocol/related-task",bu="2.0",on=bS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),PS=$e([P(),Te().int()]),jS=P(),Dne=_n({ttl:Te().optional(),pollInterval:Te().optional()}),f1=D({ttl:Te().optional()}),w1=D({taskId:P()}),am=_n({progressToken:PS.optional(),[Ot]:w1.optional()}),ni=D({_meta:am.optional()}),Vs=ni.extend({task:f1.optional()}),SS=t=>Vs.safeParse(t).success,bn=D({method:P(),params:ni.loose().optional()}),li=D({_meta:am.optional()}),ui=D({method:P(),params:li.loose().optional()}),yn=_n({_meta:am.optional()}),yu=$e([P(),Te().int()]),OS=D({jsonrpc:W(bu),id:yu,...bn.shape}).strict(),xt=t=>OS.safeParse(t).success,xS=D({jsonrpc:W(bu),...ui.shape}).strict(),TS=t=>xS.safeParse(t).success,rm=D({jsonrpc:W(bu),id:yu,result:yn}).strict(),at=t=>rm.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));var sm=D({jsonrpc:W(bu),id:yu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var Ar=t=>sm.safeParse(t).success;var om=$e([OS,xS,rm,sm]),Gne=$e([rm,sm]),Pu=yn.strict(),v1=li.extend({requestId:yu.optional(),reason:P().optional()}),ju=ui.extend({method:W("notifications/cancelled"),params:v1}),C1=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:$n(["light","dark"]).optional()}),Js=D({icons:ge(C1).optional()}),vr=D({name:P(),title:P().optional()}),MS=vr.extend({...vr.shape,...Js.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),A1=vu(D({applyDefaults:gn().optional()}),ze(P(),We())),b1=nm(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,vu(D({form:A1.optional(),url:on.optional()}),ze(P(),We()).optional())),y1=_n({list:on.optional(),cancel:on.optional(),requests:_n({sampling:_n({createMessage:on.optional()}).optional(),elicitation:_n({create:on.optional()}).optional()}).optional()}),P1=_n({list:on.optional(),cancel:on.optional(),requests:_n({tools:_n({call:on.optional()}).optional()}).optional()}),j1=D({experimental:ze(P(),on).optional(),sampling:D({context:on.optional(),tools:on.optional()}).optional(),elicitation:b1.optional(),roots:D({listChanged:gn().optional()}).optional(),tasks:y1.optional(),extensions:ze(P(),on).optional()}),S1=ni.extend({protocolVersion:P(),capabilities:j1,clientInfo:MS}),Su=bn.extend({method:W("initialize"),params:S1}),lm=t=>Su.safeParse(t).success,O1=D({experimental:ze(P(),on).optional(),logging:on.optional(),completions:on.optional(),prompts:D({listChanged:gn().optional()}).optional(),resources:D({subscribe:gn().optional(),listChanged:gn().optional()}).optional(),tools:D({listChanged:gn().optional()}).optional(),tasks:P1.optional(),extensions:ze(P(),on).optional()}),x1=yn.extend({protocolVersion:P(),capabilities:O1,serverInfo:MS,instructions:P().optional()}),um=ui.extend({method:W("notifications/initialized"),params:li.optional()});var Ou=bn.extend({method:W("ping"),params:ni.optional()}),T1=D({progress:Te(),total:Be(Te()),message:Be(P())}),M1=D({...li.shape,...T1.shape,progressToken:PS}),xu=ui.extend({method:W("notifications/progress"),params:M1}),E1=ni.extend({cursor:jS.optional()}),Zs=bn.extend({params:E1.optional()}),Ks=yn.extend({nextCursor:jS.optional()}),q1=$n(["working","input_required","completed","failed","cancelled"]),Qs=D({taskId:P(),status:q1,ttl:$e([Te(),gS()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),br=yn.extend({task:Qs}),k1=li.merge(Qs),Ys=ui.extend({method:W("notifications/tasks/status"),params:k1}),Tu=bn.extend({method:W("tasks/get"),params:ni.extend({taskId:P()})}),Mu=yn.merge(Qs),Eu=bn.extend({method:W("tasks/result"),params:ni.extend({taskId:P()})}),$ne=yn.loose(),qu=Zs.extend({method:W("tasks/list")}),ku=Ks.extend({tasks:ge(Qs)}),_u=bn.extend({method:W("tasks/cancel"),params:ni.extend({taskId:P()})}),ES=yn.merge(Qs),qS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),kS=qS.extend({text:P()}),cm=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),_S=qS.extend({blob:cm}),Xs=$n(["user","assistant"]),yr=D({audience:ge(Xs).optional(),priority:Te().min(0).max(1).optional(),lastModified:Bs.datetime({offset:!0}).optional()}),HS=D({...vr.shape,...Js.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:yr.optional(),_meta:Be(_n({}))}),_1=D({...vr.shape,...Js.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:yr.optional(),_meta:Be(_n({}))}),Hu=Zs.extend({method:W("resources/list")}),H1=Ks.extend({resources:ge(HS)}),Ru=Zs.extend({method:W("resources/templates/list")}),R1=Ks.extend({resourceTemplates:ge(_1)}),pm=ni.extend({uri:P()}),I1=pm,Iu=bn.extend({method:W("resources/read"),params:I1}),z1=yn.extend({contents:ge($e([kS,_S]))}),D1=ui.extend({method:W("notifications/resources/list_changed"),params:li.optional()}),G1=pm,$1=bn.extend({method:W("resources/subscribe"),params:G1}),N1=pm,U1=bn.extend({method:W("resources/unsubscribe"),params:N1}),L1=li.extend({uri:P()}),W1=ui.extend({method:W("notifications/resources/updated"),params:L1}),B1=D({name:P(),description:Be(P()),required:Be(gn())}),F1=D({...vr.shape,...Js.shape,description:Be(P()),arguments:Be(ge(B1)),_meta:Be(_n({}))}),zu=Zs.extend({method:W("prompts/list")}),V1=Ks.extend({prompts:ge(F1)}),J1=ni.extend({name:P(),arguments:ze(P(),P()).optional()}),Du=bn.extend({method:W("prompts/get"),params:J1}),dm=D({type:W("text"),text:P(),annotations:yr.optional(),_meta:ze(P(),We()).optional()}),hm=D({type:W("image"),data:cm,mimeType:P(),annotations:yr.optional(),_meta:ze(P(),We()).optional()}),gm=D({type:W("audio"),data:cm,mimeType:P(),annotations:yr.optional(),_meta:ze(P(),We()).optional()}),Z1=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),K1=D({type:W("resource"),resource:$e([kS,_S]),annotations:yr.optional(),_meta:ze(P(),We()).optional()}),Q1=HS.extend({type:W("resource_link")}),mm=$e([dm,hm,gm,Q1,K1]),Y1=D({role:Xs,content:mm}),X1=yn.extend({description:P().optional(),messages:ge(Y1)}),e$=ui.extend({method:W("notifications/prompts/list_changed"),params:li.optional()}),n$=D({title:P().optional(),readOnlyHint:gn().optional(),destructiveHint:gn().optional(),idempotentHint:gn().optional(),openWorldHint:gn().optional()}),i$=D({taskSupport:$n(["required","optional","forbidden"]).optional()}),RS=D({...vr.shape,...Js.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),on).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),on).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:n$.optional(),execution:i$.optional(),_meta:ze(P(),We()).optional()}),Gu=Zs.extend({method:W("tools/list")}),t$=Ks.extend({tools:ge(RS)}),$u=yn.extend({content:ge(mm).default([]),structuredContent:ze(P(),We()).optional(),isError:gn().optional()}),Nne=$u.or(yn.extend({toolResult:We()})),a$=Vs.extend({name:P(),arguments:ze(P(),We()).optional()}),Pr=bn.extend({method:W("tools/call"),params:a$}),r$=ui.extend({method:W("notifications/tools/list_changed"),params:li.optional()}),Une=D({autoRefresh:gn().default(!0),debounceMs:Te().int().nonnegative().default(300)}),eo=$n(["debug","info","notice","warning","error","critical","alert","emergency"]),s$=ni.extend({level:eo}),fm=bn.extend({method:W("logging/setLevel"),params:s$}),o$=li.extend({level:eo,logger:P().optional(),data:We()}),l$=ui.extend({method:W("notifications/message"),params:o$}),u$=D({name:P().optional()}),c$=D({hints:ge(u$).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),p$=D({mode:$n(["auto","required","none"]).optional()}),d$=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(mm).default([]),structuredContent:D({}).loose().optional(),isError:gn().optional(),_meta:ze(P(),We()).optional()}),h$=em("type",[dm,hm,gm]),Au=em("type",[dm,hm,gm,Z1,d$]),g$=D({role:Xs,content:$e([Au,ge(Au)]),_meta:ze(P(),We()).optional()}),m$=Vs.extend({messages:ge(g$),modelPreferences:c$.optional(),systemPrompt:P().optional(),includeContext:$n(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:on.optional(),tools:ge(RS).optional(),toolChoice:p$.optional()}),f$=bn.extend({method:W("sampling/createMessage"),params:m$}),no=yn.extend({model:P(),stopReason:Be($n(["endTurn","stopSequence","maxTokens"]).or(P())),role:Xs,content:h$}),wm=yn.extend({model:P(),stopReason:Be($n(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Xs,content:$e([Au,ge(Au)])}),w$=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:gn().optional()}),v$=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:$n(["email","uri","date","date-time"]).optional(),default:P().optional()}),C$=D({type:$n(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),A$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),b$=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),y$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),P$=$e([A$,b$]),j$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({type:W("string"),enum:ge(P())}),default:ge(P()).optional()}),S$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({anyOf:ge(D({const:P(),title:P()}))}),default:ge(P()).optional()}),O$=$e([j$,S$]),x$=$e([y$,P$,O$]),T$=$e([x$,w$,v$,C$]),M$=Vs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),T$),required:ge(P()).optional()})}),E$=Vs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),q$=$e([M$,E$]),k$=bn.extend({method:W("elicitation/create"),params:q$}),_$=li.extend({elicitationId:P()}),H$=ui.extend({method:W("notifications/elicitation/complete"),params:_$}),jr=yn.extend({action:$n(["accept","decline","cancel"]),content:nm(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),gn(),ge(P())])).optional())}),R$=D({type:W("ref/resource"),uri:P()});var I$=D({type:W("ref/prompt"),name:P()}),z$=ni.extend({ref:$e([I$,R$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Nu=bn.extend({method:W("completion/complete"),params:z$});function IS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function zS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var D$=yn.extend({completion:_n({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(gn())})}),G$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),$$=bn.extend({method:W("roots/list"),params:ni.optional()}),vm=yn.extend({roots:ge(G$)}),N$=ui.extend({method:W("notifications/roots/list_changed"),params:li.optional()}),Lne=$e([Ou,Su,Nu,fm,Du,zu,Hu,Ru,Iu,$1,U1,Pr,Gu,Tu,Eu,qu,_u]),Wne=$e([ju,xu,um,N$,Ys]),Bne=$e([Pu,no,wm,jr,vm,Mu,ku,br]),Fne=$e([Ou,f$,k$,$$,Tu,Eu,qu,_u]),Vne=$e([ju,xu,l$,W1,D1,r$,e$,Ys,H$]),Jne=$e([Pu,x1,D$,X1,V1,H1,R1,z1,$u,t$,Mu,ku,br]),L=class t extends Error{constructor(e,n,i){super(`MCP error ${e}: ${n}`),this.code=e,this.data=i,this.name="McpError"}static fromError(e,n,i){if(e===V.UrlElicitationRequired&&i){let a=i;if(a.elicitations)return new im(a.elicitations,n)}return new t(e,n,i)}},im=class extends L{constructor(e,n=`URL elicitation${e.length>1?"s":""} required`){super(V.UrlElicitationRequired,n,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Tt(t){return t==="completed"||t==="failed"||t==="cancelled"}var GS=Symbol("Let zodToJsonSchema decide on which parser to use");var DS={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},$S=t=>typeof t=="string"?{...DS,name:t}:{...DS,...t};var NS=t=>{let e=$S(t),n=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([i,a])=>[a._def,{def:a._def,path:[...e.basePath,e.definitionPath,i],jsonSchema:void 0}]))}};function Cm(t,e,n,i){i?.errorMessages&&n&&(t.errorMessage={...t.errorMessage,[e]:n})}function me(t,e,n,i,a){t[e]=n,Cm(t,e,i,a)}var Uu=(t,e)=>{let n=0;for(;nY(t.innerType._def,e);function Am(t,e,n){let i=n??e.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((a,r)=>Am(t,e,a))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return U$(t,e)}}var U$=(t,e)=>{let n={type:"integer",format:"unix-time"};if(e.target==="openApi3")return n;for(let i of t.checks)switch(i.kind){case"min":me(n,"minimum",i.value,i.message,e);break;case"max":me(n,"maximum",i.value,i.message,e);break}return n};function FS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function VS(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function JS(t){return{type:"string",enum:Array.from(t.values)}}var L$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function ZS(t,e){let n=[Y(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),Y(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),i=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,a=[];return n.forEach(r=>{if(L$(r))a.push(...r.allOf),r.unevaluatedProperties===void 0&&(i=void 0);else{let s=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:o,...l}=r;s=l}else i=void 0;a.push(s)}}),a.length?{allOf:a,...i}:void 0}function KS(t,e){let n=typeof t.value;return n!=="bigint"&&n!=="number"&&n!=="boolean"&&n!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:n==="bigint"?"integer":n,enum:[t.value]}:{type:n==="bigint"?"integer":n,const:t.value}}var bm,Ci={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(bm===void 0&&(bm=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),bm),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Wu(t,e){let n={type:"string"};if(t.checks)for(let i of t.checks)switch(i.kind){case"min":me(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value,i.message,e);break;case"max":me(n,"maxLength",typeof n.maxLength=="number"?Math.min(n.maxLength,i.value):i.value,i.message,e);break;case"email":switch(e.emailStrategy){case"format:email":Ai(n,"email",i.message,e);break;case"format:idn-email":Ai(n,"idn-email",i.message,e);break;case"pattern:zod":Hn(n,Ci.email,i.message,e);break}break;case"url":Ai(n,"uri",i.message,e);break;case"uuid":Ai(n,"uuid",i.message,e);break;case"regex":Hn(n,i.regex,i.message,e);break;case"cuid":Hn(n,Ci.cuid,i.message,e);break;case"cuid2":Hn(n,Ci.cuid2,i.message,e);break;case"startsWith":Hn(n,RegExp(`^${ym(i.value,e)}`),i.message,e);break;case"endsWith":Hn(n,RegExp(`${ym(i.value,e)}$`),i.message,e);break;case"datetime":Ai(n,"date-time",i.message,e);break;case"date":Ai(n,"date",i.message,e);break;case"time":Ai(n,"time",i.message,e);break;case"duration":Ai(n,"duration",i.message,e);break;case"length":me(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value,i.message,e),me(n,"maxLength",typeof n.maxLength=="number"?Math.min(n.maxLength,i.value):i.value,i.message,e);break;case"includes":{Hn(n,RegExp(ym(i.value,e)),i.message,e);break}case"ip":{i.version!=="v6"&&Ai(n,"ipv4",i.message,e),i.version!=="v4"&&Ai(n,"ipv6",i.message,e);break}case"base64url":Hn(n,Ci.base64url,i.message,e);break;case"jwt":Hn(n,Ci.jwt,i.message,e);break;case"cidr":{i.version!=="v6"&&Hn(n,Ci.ipv4Cidr,i.message,e),i.version!=="v4"&&Hn(n,Ci.ipv6Cidr,i.message,e);break}case"emoji":Hn(n,Ci.emoji(),i.message,e);break;case"ulid":{Hn(n,Ci.ulid,i.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{Ai(n,"binary",i.message,e);break}case"contentEncoding:base64":{me(n,"contentEncoding","base64",i.message,e);break}case"pattern:zod":{Hn(n,Ci.base64,i.message,e);break}}break}case"nanoid":Hn(n,Ci.nanoid,i.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return n}function ym(t,e){return e.patternStrategy==="escape"?B$(t):t}var W$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function B$(t){let e="";for(let n=0;na.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&i.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...n&&i.errorMessages&&{errorMessage:{format:n}}})):me(t,"format",e,n,i)}function Hn(t,e,n,i){t.pattern||t.allOf?.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&i.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:QS(e,i),...n&&i.errorMessages&&{errorMessage:{pattern:n}}})):me(t,"pattern",QS(e,i),n,i)}function QS(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let n={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},i=n.i?t.source.toLowerCase():t.source,a="",r=!1,s=!1,o=!1;for(let l=0;l({...i,[a]:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ve(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let n={type:"object",additionalProperties:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return n;if(t.keyType?._def.typeName===E.ZodString&&t.keyType._def.checks?.length){let{type:i,...a}=Wu(t.keyType._def,e);return{...n,propertyNames:a}}else{if(t.keyType?._def.typeName===E.ZodEnum)return{...n,propertyNames:{enum:t.keyType._def.values}};if(t.keyType?._def.typeName===E.ZodBranded&&t.keyType._def.type._def.typeName===E.ZodString&&t.keyType._def.type._def.checks?.length){let{type:i,...a}=Lu(t.keyType._def,e);return{...n,propertyNames:a}}}return n}function YS(t,e){if(e.mapStrategy==="record")return Bu(t,e);let n=Y(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ve(e),i=Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ve(e);return{type:"array",maxItems:125,items:{type:"array",items:[n,i],minItems:2,maxItems:2}}}function XS(t){let e=t.values,i=Object.keys(t.values).filter(r=>typeof e[e[r]]!="number").map(r=>e[r]),a=Array.from(new Set(i.map(r=>typeof r)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:i}}function eO(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function nO(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var io={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function tO(t,e){if(e.target==="openApi3")return iO(t,e);let n=t.options instanceof Map?Array.from(t.options.values()):t.options;if(n.every(i=>i._def.typeName in io&&(!i._def.checks||!i._def.checks.length))){let i=n.reduce((a,r)=>{let s=io[r._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:i.length>1?i:i[0]}}else if(n.every(i=>i._def.typeName==="ZodLiteral"&&!i.description)){let i=n.reduce((a,r)=>{let s=typeof r._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(r._def.value===null)return[...a,"null"];case"symbol":case"undefined":case"function":default:return a}},[]);if(i.length===n.length){let a=i.filter((r,s,o)=>o.indexOf(r)===s);return{type:a.length>1?a:a[0],enum:n.reduce((r,s)=>r.includes(s._def.value)?r:[...r,s._def.value],[])}}}else if(n.every(i=>i._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((i,a)=>[...i,...a._def.values.filter(r=>!i.includes(r))],[])};return iO(t,e)}var iO=(t,e)=>{let n=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((i,a)=>Y(i._def,{...e,currentPath:[...e.currentPath,"anyOf",`${a}`]})).filter(i=>!!i&&(!e.strictUnions||typeof i=="object"&&Object.keys(i).length>0));return n.length?{anyOf:n}:void 0};function aO(t,e){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length))return e.target==="openApi3"?{type:io[t.innerType._def.typeName],nullable:!0}:{type:[io[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath]});return i&&"$ref"in i?{allOf:[i],nullable:!0}:i&&{...i,nullable:!0}}let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function rO(t,e){let n={type:"number"};if(!t.checks)return n;for(let i of t.checks)switch(i.kind){case"int":n.type="integer",Cm(n,"type",i.message,e);break;case"min":e.target==="jsonSchema7"?i.inclusive?me(n,"minimum",i.value,i.message,e):me(n,"exclusiveMinimum",i.value,i.message,e):(i.inclusive||(n.exclusiveMinimum=!0),me(n,"minimum",i.value,i.message,e));break;case"max":e.target==="jsonSchema7"?i.inclusive?me(n,"maximum",i.value,i.message,e):me(n,"exclusiveMaximum",i.value,i.message,e):(i.inclusive||(n.exclusiveMaximum=!0),me(n,"maximum",i.value,i.message,e));break;case"multipleOf":me(n,"multipleOf",i.value,i.message,e);break}return n}function sO(t,e){let n=e.target==="openAi",i={type:"object",properties:{}},a=[],r=t.shape();for(let o in r){let l=r[o];if(l===void 0||l._def===void 0)continue;let u=V$(l);u&&n&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let c=Y(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});c!==void 0&&(i.properties[o]=c,u||a.push(o))}a.length&&(i.required=a);let s=F$(t,e);return s!==void 0&&(i.additionalProperties=s),i}function F$(t,e){if(t.catchall._def.typeName!=="ZodNever")return Y(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function V$(t){try{return t.isOptional()}catch{return!0}}var oO=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return Y(t.innerType._def,e);let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return n?{anyOf:[{not:Ve(e)},n]}:Ve(e)};var lO=(t,e)=>{if(e.pipeStrategy==="input")return Y(t.in._def,e);if(e.pipeStrategy==="output")return Y(t.out._def,e);let n=Y(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),i=Y(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,i].filter(a=>a!==void 0)}};function uO(t,e){return Y(t.type._def,e)}function cO(t,e){let i={type:"array",uniqueItems:!0,items:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&me(i,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&me(i,"maxItems",t.maxSize.value,t.maxSize.message,e),i}function pO(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((n,i)=>Y(n._def,{...e,currentPath:[...e.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[]),additionalItems:Y(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((n,i)=>Y(n._def,{...e,currentPath:[...e.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[])}}function dO(t){return{not:Ve(t)}}function hO(t){return Ve(t)}var gO=(t,e)=>Y(t.innerType._def,e);var mO=(t,e,n)=>{switch(e){case E.ZodString:return Wu(t,n);case E.ZodNumber:return rO(t,n);case E.ZodObject:return sO(t,n);case E.ZodBigInt:return LS(t,n);case E.ZodBoolean:return WS();case E.ZodDate:return Am(t,n);case E.ZodUndefined:return dO(n);case E.ZodNull:return nO(n);case E.ZodArray:return US(t,n);case E.ZodUnion:case E.ZodDiscriminatedUnion:return tO(t,n);case E.ZodIntersection:return ZS(t,n);case E.ZodTuple:return pO(t,n);case E.ZodRecord:return Bu(t,n);case E.ZodLiteral:return KS(t,n);case E.ZodEnum:return JS(t);case E.ZodNativeEnum:return XS(t);case E.ZodNullable:return aO(t,n);case E.ZodOptional:return oO(t,n);case E.ZodMap:return YS(t,n);case E.ZodSet:return cO(t,n);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return uO(t,n);case E.ZodNaN:case E.ZodNever:return eO(n);case E.ZodEffects:return VS(t,n);case E.ZodAny:return Ve(n);case E.ZodUnknown:return hO(n);case E.ZodDefault:return FS(t,n);case E.ZodBranded:return Lu(t,n);case E.ZodReadonly:return gO(t,n);case E.ZodCatch:return BS(t,n);case E.ZodPipeline:return lO(t,n);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(i=>{})(e)}};function Y(t,e,n=!1){let i=e.seen.get(t);if(e.override){let o=e.override?.(t,e,i,n);if(o!==GS)return o}if(i&&!n){let o=J$(i,e);if(o!==void 0)return o}let a={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,a);let r=mO(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&Z$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var J$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Uu(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[i]===n)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Ve(e)):e.$refStrategy==="seen"?Ve(e):void 0}},Z$=(t,e,n)=>(t.description&&(n.description=t.description,e.markdownDescription&&(n.markdownDescription=t.description)),n);var Pm=(t,e)=>{let n=NS(e),i=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[u,c])=>({...l,[u]:Y(c._def,{...n,currentPath:[...n.basePath,n.definitionPath,u]},!0)??Ve(n)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=Y(t._def,a===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1)??Ve(n),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(r.title=s),n.flags.hasReferencedOpenAiAnyType&&(i||(i={}),i[n.openAiAnyTypeName]||(i[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:n.$refStrategy==="relative"?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));let o=a===void 0?i?{...r,[n.definitionPath]:i}:r:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,a].join("/"),[n.definitionPath]:{...i,[a]:r}};return n.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(n.target==="jsonSchema2019-09"||n.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),n.target==="openAi"&&("anyOf"in o||"oneOf"in o||"allOf"in o||"type"in o&&Array.isArray(o.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),o};function K$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function jm(t,e){return oi(t)?Vg(t,{target:K$(e?.target),io:e?.pipeStrategy??"input"}):Pm(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function Sm(t){let n=St(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=fu(n);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function Om(t,e){let n=jt(t,e);if(!n.success)throw n.error;return n.data}var Q$=6e4,Fu=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(ju,n=>{this._oncancel(n)}),this.setNotificationHandler(xu,n=>{this._onprogress(n)}),this.setRequestHandler(Ou,n=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Tu,async(n,i)=>{let a=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!a)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(Eu,async(n,i)=>{let a=async()=>{let r=n.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(r,i.sessionId);){if(o.type==="response"||o.type==="error"){let l=o.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),o.type==="response")c(l);else{let p=l,d=new L(p.error.code,p.error.message,p.error.data);c(d)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:i.requestId})}}let s=await this._taskStore.getTask(r,i.sessionId);if(!s)throw new L(V.InvalidParams,`Task not found: ${r}`);if(!Tt(s.status))return await this._waitForTaskUpdate(r,i.signal),await a();if(Tt(s.status)){let o=await this._taskStore.getTaskResult(r,i.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[Ot]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(qu,async(n,i)=>{try{let{tasks:a,nextCursor:r}=await this._taskStore.listTasks(n.params?.cursor,i.sessionId);return{tasks:a,nextCursor:r,_meta:{}}}catch(a){throw new L(V.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(_u,async(n,i)=>{try{let a=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!a)throw new L(V.InvalidParams,`Task not found: ${n.params.taskId}`);if(Tt(a.status))throw new L(V.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(n.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(n.params.taskId);let r=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!r)throw new L(V.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof L?a:new L(V.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,n,i,a,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,n),startTime:Date.now(),timeout:n,maxTotalTimeout:i,resetTimeoutOnProgress:r,onTimeout:a})}_resetTimeout(e){let n=this._timeoutInfo.get(e);if(!n)return!1;let i=Date.now()-n.startTime;if(n.maxTotalTimeout&&i>=n.maxTotalTimeout)throw this._timeoutInfo.delete(e),L.fromError(V.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:i});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(e){let n=this._timeoutInfo.get(e);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;let n=this.transport?.onclose;this._transport.onclose=()=>{n?.(),this._onclose()};let i=this.transport?.onerror;this._transport.onerror=r=>{i?.(r),this._onerror(r)};let a=this._transport?.onmessage;this._transport.onmessage=(r,s)=>{a?.(r,s),at(r)||Ar(r)?this._onresponse(r):xt(r)?this._onrequest(r,s):TS(r)?this._onnotification(r):this._onerror(new Error(`Unknown message type: ${JSON.stringify(r)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(let i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();let n=L.fromError(V.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let i of e.values())i(n)}_onerror(e){this.onerror?.(e)}_onnotification(e){let n=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(e)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(e,n){let i=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,r=e.params?._meta?.[Ot]?.taskId;if(i===void 0){let c={jsonrpc:"2.0",id:e.id,error:{code:V.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(c).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let o=SS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo:n?.authInfo,requestId:e.id,requestInfo:n?.requestInfo,taskId:r,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:n?.closeSSEStream,closeStandaloneSSEStream:n?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>i(e,u)).then(async c=>{if(s.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async c=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:V.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:n,...i}=e.params,a=Number(n),r=this._progressHandlers.get(a);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let s=this._responseHandlers.get(a),o=this._timeoutInfo.get(a);if(o&&s&&o.resetTimeoutOnProgress)try{this._resetTimeout(a)}catch(l){this._responseHandlers.delete(a),this._progressHandlers.delete(a),this._cleanupTimeout(a),s(l);return}r(i)}_onresponse(e){let n=Number(e.id),i=this._requestResolvers.get(n);if(i){if(this._requestResolvers.delete(n),at(e))i(e);else{let s=new L(e.error.code,e.error.message,e.error.data);i(s)}return}let a=this._responseHandlers.get(n);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(n),this._cleanupTimeout(n);let r=!1;if(at(e)&&e.result&&typeof e.result=="object"){let s=e.result;if(s.task&&typeof s.task=="object"){let o=s.task;typeof o.taskId=="string"&&(r=!0,this._taskProgressTokens.set(o.taskId,n))}}if(r||this._progressHandlers.delete(n),at(e))a(e);else{let s=L.fromError(e.error.code,e.error.message,e.error.data);a(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,n,i){let{task:a}=i??{};if(!a){try{yield{type:"result",result:await this.request(e,n,i)}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}return}let r;try{let s=await this.request(e,br,i);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new L(V.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},i);if(yield{type:"taskStatus",task:o},Tt(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},n,i)}:o.status==="failed"?yield{type:"error",error:new L(V.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new L(V.InternalError,`Task ${r} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},n,i)};return}let l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),i?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}}request(e,n,i){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=i??{};return new Promise((u,c)=>{let p=b=>{c(b)};if(!this._transport){p(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(b){p(b);return}i?.signal?.throwIfAborted();let d=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:d};i?.onprogress&&(this._progressHandlers.set(d,i.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(h.params={...h.params,task:o}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[Ot]:l}});let g=b=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(b)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(y=>this._onerror(new Error(`Failed to send cancellation: ${y}`)));let A=b instanceof L?b:new L(V.RequestTimeout,String(b));c(A)};this._responseHandlers.set(d,b=>{if(!i?.signal?.aborted){if(b instanceof Error)return c(b);try{let A=jt(n,b.result);A.success?u(A.data):c(A.error)}catch(A){c(A)}}}),i?.signal?.addEventListener("abort",()=>{g(i?.signal?.reason)});let m=i?.timeout??Q$,f=()=>g(L.fromError(V.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(d,m,i?.maxTotalTimeout,f,i?.resetTimeoutOnProgress??!1);let w=l?.taskId;if(w){let b=A=>{let y=this._responseHandlers.get(d);y?y(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,b),this._enqueueTaskMessage(w,{type:"request",message:h,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),c(A)})}else this._transport.send(h,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(b=>{this._cleanupTimeout(d),c(b)})})}async getTask(e,n){return this.request({method:"tasks/get",params:e},Mu,n)}async getTaskResult(e,n,i){return this.request({method:"tasks/result",params:e},n,i)}async listTasks(e,n){return this.request({method:"tasks/list",params:e},ku,n)}async cancelTask(e,n){return this.request({method:"tasks/cancel",params:e},ES,n)}async notification(e,n){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let i=n?.relatedTask?.taskId;if(i){let o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[Ot]:n.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!n?.relatedRequestId&&!n?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let o={...e,jsonrpc:"2.0"};n?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[Ot]:n.relatedTask}}}),this._transport?.send(o,n).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};n?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[Ot]:n.relatedTask}}}),await this._transport.send(s,n)}setRequestHandler(e,n){let i=Sm(e);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(a,r)=>{let s=Om(e,a);return Promise.resolve(n(s,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,n){let i=Sm(e);this._notificationHandlers.set(i,a=>{let r=Om(e,a);return Promise.resolve(n(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let n=this._taskProgressTokens.get(e);n!==void 0&&(this._progressHandlers.delete(n),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,n,i){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let a=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,n,i,a)}async _clearTaskQueue(e,n){if(this._taskMessageQueue){let i=await this._taskMessageQueue.dequeueAll(e,n);for(let a of i)if(a.type==="request"&&xt(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new L(V.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,n){let i=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(e);a?.pollInterval&&(i=a.pollInterval)}catch{}return new Promise((a,r)=>{if(n.aborted){r(new L(V.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,i);n.addEventListener("abort",()=>{clearTimeout(s),r(new L(V.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,n){let i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await i.createTask(a,e.id,{method:e.method,params:e.params},n)},getTask:async a=>{let r=await i.getTask(a,n);if(!r)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(a,r,s)=>{await i.storeTaskResult(a,r,s,n);let o=await i.getTask(a,n);if(o){let l=Ys.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Tt(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>i.getTaskResult(a,n),updateTaskStatus:async(a,r,s)=>{let o=await i.getTask(a,n);if(!o)throw new L(V.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(Tt(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(a,r,s,n);let l=await i.getTask(a,n);if(l){let u=Ys.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Tt(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>i.listTasks(a,n)}}};function fO(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function wO(t,e){let n={...t};for(let i in e){let a=i,r=e[a];if(r===void 0)continue;let s=n[a];fO(s)&&fO(r)?n[a]={...s,...r}:n[a]=r}return n}var lM=Nl(hw(),1),uM=Nl(oM(),1);function eV(){let t=new lM.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,uM.default)(t),t}var xc=class{constructor(e){this._ajv=e??eV()}getValidator(e){let n="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return i=>n(i)?{valid:!0,data:i,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(n.errors)}}};var Tc=class{constructor(e){this._server=e}requestStream(e,n,i){return this._server.requestStream(e,n,i)}createMessageStream(e,n){let i=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!i?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let a=e.messages[e.messages.length-1],r=Array.isArray(a.content)?a.content:[a.content],s=r.some(c=>c.type==="tool_result"),o=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=o?Array.isArray(o.content)?o.content:[o.content]:[],u=l.some(c=>c.type==="tool_use");if(s){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(l.filter(d=>d.type==="tool_use").map(d=>d.id)),p=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==p.size||![...c].every(d=>p.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},no,n)}elicitInputStream(e,n){let i=this._server.getClientCapabilities(),a=e.mode??"form";switch(a){case"url":{if(!i?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!i?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let r=a==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},jr,n)}async getTask(e,n){return this._server.getTask({taskId:e},n)}async getTaskResult(e,n,i){return this._server.getTaskResult({taskId:e},n,i)}async listTasks(e,n){return this._server.listTasks(e?{cursor:e}:void 0,n)}async cancelTask(e,n){return this._server.cancelTask({taskId:e},n)}};function cM(t,e,n){if(!t)throw new Error(`${n} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${n} does not support task creation for tools/call (required for ${e})`);break;default:break}}function pM(t,e,n){if(!t)throw new Error(`${n} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${n} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${n} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var Mc=class extends Fu{constructor(e,n){super(n),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(eo.options.map((i,a)=>[i,a])),this.isMessageIgnored=(i,a)=>{let r=this._loggingLevels.get(a);return r?this.LOG_LEVEL_SEVERITY.get(i)this._oninitialize(i)),this.setNotificationHandler(um,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(fm,async(i,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=i.params,o=eo.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new Tc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=wO(this._capabilities,e)}setRequestHandler(e,n){let a=St(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r;if(oi(a)){let o=a;r=o._zod?.def?.value??o.value}else{let o=a;r=o._def?.value??o.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,u)=>{let c=jt(Pr,l);if(!c.success){let g=c.error instanceof Error?c.error.message:String(c.error);throw new L(V.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:p}=c.data,d=await Promise.resolve(n(l,u));if(p.task){let g=jt(br,d);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new L(V.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let h=jt($u,d);if(!h.success){let g=h.error instanceof Error?h.error.message:String(h.error);throw new L(V.InvalidParams,`Invalid tools/call result: ${g}`)}return h.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,n)}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${e})`);break;case"ping":case"initialize":break}}assertTaskCapability(e){pM(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&cM(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let n=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:Cr.includes(n)?n:tm,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},Pu)}async createMessage(e,n){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages[e.messages.length-1],a=Array.isArray(i.content)?i.content:[i.content],r=a.some(u=>u.type==="tool_result"),s=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=s?Array.isArray(s.content)?s.content:[s.content]:[],l=o.some(u=>u.type==="tool_use");if(r){if(a.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),c=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(u.size!==c.size||![...u].every(p=>c.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},wm,n):this.request({method:"sampling/createMessage",params:e},no,n)}async elicitInput(e,n){switch(e.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");let a=e;return this.request({method:"elicitation/create",params:a},jr,n)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");let a=e.mode==="form"?e:{...e,mode:"form"},r=await this.request({method:"elicitation/create",params:a},jr,n);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new L(V.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof L?s:new L(V.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return r}}}createElicitationCompletionNotifier(e,n){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},n)}async listRoots(e,n){return this.request({method:"roots/list",params:e},vm,n)}async sendLoggingMessage(e,n){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,n))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};var hM=Symbol.for("mcp.completable");function bw(t){return!!t&&typeof t=="object"&&hM in t}function gM(t){return t[hM]?.complete}var dM;(function(t){t.Completable="McpCompletable"})(dM||(dM={}));var nV=/^[A-Za-z0-9._-]{1,128}$/;function iV(t){let e=[];if(t.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(t.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${t.length})`]};if(t.includes(" ")&&e.push("Tool name contains spaces, which may cause parsing issues"),t.includes(",")&&e.push("Tool name contains commas, which may cause parsing issues"),(t.startsWith("-")||t.endsWith("-"))&&e.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(t.startsWith(".")||t.endsWith("."))&&e.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!nV.test(t)){let n=t.split("").filter(i=>!/[A-Za-z0-9._-]/.test(i)).filter((i,a,r)=>r.indexOf(i)===a);return e.push(`Tool name contains invalid characters: ${n.map(i=>`"${i}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function tV(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let n of e)console.warn(` - ${n}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function yw(t){let e=iV(t);return tV(t,e.warnings),e.isValid}var Ec=class{constructor(e){this._mcpServer=e}registerToolTask(e,n,i){let a={taskSupport:"required",...n.execution};if(a.taskSupport==="forbidden")throw new Error(`Cannot register task-based tool '${e}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(e,n.title,n.description,n.inputSchema,n.outputSchema,n.annotations,a,n._meta,i)}};var qc=class{constructor(e,n){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new Mc(e,n)}get experimental(){return this._experimental||(this._experimental={tasks:new Ec(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(zt(Gu)),this.server.assertCanSetRequestHandler(zt(Pr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Gu,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,n])=>{let i={name:e,title:n.title,description:n.description,inputSchema:(()=>{let a=wr(n.inputSchema);return a?jm(a,{strictUnions:!0,pipeStrategy:"input"}):aV})(),annotations:n.annotations,execution:n.execution,_meta:n._meta};if(n.outputSchema){let a=wr(n.outputSchema);a&&(i.outputSchema=jm(a,{strictUnions:!0,pipeStrategy:"output"}))}return i})})),this.server.setRequestHandler(Pr,async(e,n)=>{try{let i=this._registeredTools[e.params.name];if(!i)throw new L(V.InvalidParams,`Tool ${e.params.name} not found`);if(!i.enabled)throw new L(V.InvalidParams,`Tool ${e.params.name} disabled`);let a=!!e.params.task,r=i.execution?.taskSupport,s="createTask"in i.handler;if((r==="required"||r==="optional")&&!s)throw new L(V.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new L(V.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!a&&s)return await this.handleAutomaticTaskPolling(i,e,n);let o=await this.validateToolInput(i,e.params.arguments,e.params.name),l=await this.executeToolHandler(i,o,n);return a||await this.validateToolOutput(i,l,e.params.name),l}catch(i){if(i instanceof L&&i.code===V.UrlElicitationRequired)throw i;return this.createToolError(i instanceof Error?i.message:String(i))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,n,i){if(!e.inputSchema)return;let r=wr(e.inputSchema)??e.inputSchema,s=await gu(r,n);if(!s.success){let o="error"in s?s.error:"Unknown error",l=mu(o);throw new L(V.InvalidParams,`Input validation error: Invalid arguments for tool ${i}: ${l}`)}return s.data}async validateToolOutput(e,n,i){if(!e.outputSchema||!("content"in n)||n.isError)return;if(!n.structuredContent)throw new L(V.InvalidParams,`Output validation error: Tool ${i} has an output schema but no structured content was provided`);let a=wr(e.outputSchema),r=await gu(a,n.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=mu(s);throw new L(V.InvalidParams,`Output validation error: Invalid structured content for tool ${i}: ${o}`)}}async executeToolHandler(e,n,i){let a=e.handler;if("createTask"in a){if(!i.taskStore)throw new Error("No task store provided.");let s={...i,taskStore:i.taskStore};if(e.inputSchema){let o=a;return await Promise.resolve(o.createTask(n,s))}else{let o=a;return await Promise.resolve(o.createTask(s))}}if(e.inputSchema){let s=a;return await Promise.resolve(s(n,i))}else{let s=a;return await Promise.resolve(s(i))}}async handleAutomaticTaskPolling(e,n,i){if(!i.taskStore)throw new Error("No task store provided for task-capable tool.");let a=await this.validateToolInput(e,n.params.arguments,n.params.name),r=e.handler,s={...i,taskStore:i.taskStore},o=a?await Promise.resolve(r.createTask(a,s)):await Promise.resolve(r.createTask(s)),l=o.task.taskId,u=o.task,c=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));let p=await i.taskStore.getTask(l);if(!p)throw new L(V.InternalError,`Task ${l} not found during polling`);u=p}return await i.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(zt(Nu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Nu,async e=>{switch(e.params.ref.type){case"ref/prompt":return IS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return zS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new L(V.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,n){let i=this._registeredPrompts[n.name];if(!i)throw new L(V.InvalidParams,`Prompt ${n.name} not found`);if(!i.enabled)throw new L(V.InvalidParams,`Prompt ${n.name} disabled`);if(!i.argsSchema)return _o;let r=St(i.argsSchema)?.[e.params.argument.name];if(!bw(r))return _o;let s=gM(r);if(!s)return _o;let o=await s(e.params.argument.value,e.params.context);return fM(o)}async handleResourceCompletion(e,n){let i=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===n.uri);if(!i){if(this._registeredResources[n.uri])return _o;throw new L(V.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=i.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return _o;let r=await a(e.params.argument.value,e.params.context);return fM(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(zt(Hu)),this.server.assertCanSetRequestHandler(zt(Ru)),this.server.assertCanSetRequestHandler(zt(Iu)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Hu,async(e,n)=>{let i=Object.entries(this._registeredResources).filter(([r,s])=>s.enabled).map(([r,s])=>({uri:r,name:s.name,...s.metadata})),a=[];for(let r of Object.values(this._registeredResourceTemplates)){if(!r.resourceTemplate.listCallback)continue;let s=await r.resourceTemplate.listCallback(n);for(let o of s.resources)a.push({...r.metadata,...o})}return{resources:[...i,...a]}}),this.server.setRequestHandler(Ru,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([n,i])=>({name:n,uriTemplate:i.resourceTemplate.uriTemplate.toString(),...i.metadata}))})),this.server.setRequestHandler(Iu,async(e,n)=>{let i=new URL(e.params.uri),a=this._registeredResources[i.toString()];if(a){if(!a.enabled)throw new L(V.InvalidParams,`Resource ${i} disabled`);return a.readCallback(i,n)}for(let r of Object.values(this._registeredResourceTemplates)){let s=r.resourceTemplate.uriTemplate.match(i.toString());if(s)return r.readCallback(i,s,n)}throw new L(V.InvalidParams,`Resource ${i} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(zt(zu)),this.server.assertCanSetRequestHandler(zt(Du)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(zu,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,n])=>({name:e,title:n.title,description:n.description,arguments:n.argsSchema?rV(n.argsSchema):void 0}))})),this.server.setRequestHandler(Du,async(e,n)=>{let i=this._registeredPrompts[e.params.name];if(!i)throw new L(V.InvalidParams,`Prompt ${e.params.name} not found`);if(!i.enabled)throw new L(V.InvalidParams,`Prompt ${e.params.name} disabled`);if(i.argsSchema){let a=wr(i.argsSchema),r=await gu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=mu(l);throw new L(V.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=r.data,o=i.callback;return await Promise.resolve(o(s,n))}else{let a=i.callback;return await Promise.resolve(a(n))}}),this._promptHandlersInitialized=!0)}resource(e,n,...i){let a;typeof i[0]=="object"&&(a=i.shift());let r=i[0];if(typeof n=="string"){if(this._registeredResources[n])throw new Error(`Resource ${n} is already registered`);let s=this._createRegisteredResource(e,void 0,n,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let s=this._createRegisteredResourceTemplate(e,void 0,n,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,n,i,a){if(typeof n=="string"){if(this._registeredResources[n])throw new Error(`Resource ${n} is already registered`);let r=this._createRegisteredResource(e,i.title,n,i,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let r=this._createRegisteredResourceTemplate(e,i.title,n,i,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,n,i,a,r){let s={name:e,title:n,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({uri:null}),update:o=>{typeof o.uri<"u"&&o.uri!==i&&(delete this._registeredResources[i],o.uri&&(this._registeredResources[o.uri]=s)),typeof o.name<"u"&&(s.name=o.name),typeof o.title<"u"&&(s.title=o.title),typeof o.metadata<"u"&&(s.metadata=o.metadata),typeof o.callback<"u"&&(s.readCallback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendResourceListChanged()}};return this._registeredResources[i]=s,s}_createRegisteredResourceTemplate(e,n,i,a,r){let s={resourceTemplate:i,title:n,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=i.uriTemplate.variableNames;return Array.isArray(o)&&o.some(u=>!!i.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,n,i,a,r){let s={title:n,description:i,argsSchema:a===void 0?void 0:Ca(a),callback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:o=>{typeof o.name<"u"&&o.name!==e&&(delete this._registeredPrompts[e],o.name&&(this._registeredPrompts[o.name]=s)),typeof o.title<"u"&&(s.title=o.title),typeof o.description<"u"&&(s.description=o.description),typeof o.argsSchema<"u"&&(s.argsSchema=Ca(o.argsSchema)),typeof o.callback<"u"&&(s.callback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,a&&Object.values(a).some(l=>{let u=l instanceof Cu?l._def?.innerType:l;return bw(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,n,i,a,r,s,o,l,u){yw(e);let c={title:n,description:i,inputSchema:mM(a),outputSchema:mM(r),annotations:s,execution:o,_meta:l,handler:u,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&yw(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=c)),typeof p.title<"u"&&(c.title=p.title),typeof p.description<"u"&&(c.description=p.description),typeof p.paramsSchema<"u"&&(c.inputSchema=Ca(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=Ca(p.outputSchema)),typeof p.callback<"u"&&(c.handler=p.callback),typeof p.annotations<"u"&&(c.annotations=p.annotations),typeof p._meta<"u"&&(c._meta=p._meta),typeof p.enabled<"u"&&(c.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let i,a,r,s;if(typeof n[0]=="string"&&(i=n.shift()),n.length>1){let l=n[0];if(Pw(l))a=n.shift(),n.length>1&&typeof n[0]=="object"&&n[0]!==null&&!Pw(n[0])&&(s=n.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=n.shift()}}let o=n[0];return this._createRegisteredTool(e,void 0,i,a,r,s,{taskSupport:"forbidden"},void 0,o)}registerTool(e,n,i){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:a,description:r,inputSchema:s,outputSchema:o,annotations:l,_meta:u}=n;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},u,i)}prompt(e,...n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let i;typeof n[0]=="string"&&(i=n.shift());let a;n.length>1&&(a=n.shift());let r=n[0],s=this._createRegisteredPrompt(e,void 0,i,a,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,n,i){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:a,description:r,argsSchema:s}=n,o=this._createRegisteredPrompt(e,a,r,s,i);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,n){return this.server.sendLoggingMessage(e,n)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var aV={type:"object",properties:{}};function wM(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function vM(t){return"_def"in t||"_zod"in t||wM(t)}function Pw(t){return typeof t!="object"||t===null||vM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(wM)}function mM(t){if(t){if(Pw(t))return Ca(t);if(!vM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function rV(t){let e=St(t);return e?Object.entries(e).map(([n,i])=>{let a=Uj(i),r=Lj(i);return{name:n,description:a,required:!r}}):[]}function zt(t){let n=St(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=fu(n);if(typeof i=="string")return i;throw new Error("Schema method literal must be a string")}function fM(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var _o={completion:{values:[],hasMore:!1}};var Ro=require("http2"),kc=require("http2"),Sw=require("stream"),jM=Nl(require("crypto"),1),qa=class extends Error{constructor(t,e){super(t,e),this.name="RequestError"}},sV=t=>t instanceof qa?t:new qa(t.message,{cause:t}),oV=global.Request,Ho=class extends oV{constructor(t,e){typeof t=="object"&&Br in t&&(t=t[Br]()),typeof e?.body?.getReader<"u"&&(e.duplex??="half"),super(t,e)}},lV=t=>{let e=[],n=t.rawHeaders;for(let i=0;i{let r={method:t,headers:n,signal:a.signal};if(t==="TRACE"){r.method="GET";let s=new Ho(e,r);return Object.defineProperty(s,"method",{get(){return"TRACE"}}),s}if(!(t==="GET"||t==="HEAD"))if("rawBody"in i&&i.rawBody instanceof Buffer)r.body=new ReadableStream({start(s){s.enqueue(i.rawBody),s.close()}});else if(i[AM]){let s;r.body=new ReadableStream({async pull(o){try{s||=Sw.Readable.toWeb(i).getReader();let{done:l,value:u}=await s.read();l?o.close():o.enqueue(u)}catch(l){o.error(l)}}})}else r.body=Sw.Readable.toWeb(i);return new Ho(e,r)},Br=Symbol("getRequestCache"),bM=Symbol("requestCache"),_c=Symbol("incomingKey"),Hc=Symbol("urlKey"),cV=Symbol("headersKey"),Wr=Symbol("abortControllerKey"),pV=Symbol("getAbortController"),Io={get method(){return this[_c].method||"GET"},get url(){return this[Hc]},get headers(){return this[cV]||=lV(this[_c])},[pV](){return this[Br](),this[Wr]},[Br](){return this[Wr]||=new AbortController,this[bM]||=uV(this.method,this[Hc],this.headers,this[_c],this[Wr])}};["body","bodyUsed","cache","credentials","destination","integrity","mode","redirect","referrer","referrerPolicy","signal","keepalive"].forEach(t=>{Object.defineProperty(Io,t,{get(){return this[Br]()[t]}})});["arrayBuffer","blob","clone","formData","json","text"].forEach(t=>{Object.defineProperty(Io,t,{value:function(){return this[Br]()[t]()}})});Object.defineProperty(Io,Symbol.for("nodejs.util.inspect.custom"),{value:function(t,e,n){let i={method:this.method,url:this.url,headers:this.headers,nativeRequest:this[bM]};return`Request (lightweight) ${n(i,{...e,depth:t==null?null:t-1})}`}});Object.setPrototypeOf(Io,Ho.prototype);var dV=(t,e)=>{let n=Object.create(Io);n[_c]=t;let i=t.url||"";if(i[0]!=="/"&&(i.startsWith("http://")||i.startsWith("https://"))){if(t instanceof kc.Http2ServerRequest)throw new qa("Absolute URL for :path is not allowed in HTTP/2");try{let o=new URL(i);n[Hc]=o.href}catch(o){throw new qa("Invalid absolute URL",{cause:o})}return n}let a=(t instanceof kc.Http2ServerRequest?t.authority:t.headers.host)||e;if(!a)throw new qa("Missing host header");let r;if(t instanceof kc.Http2ServerRequest){if(r=t.scheme,!(r==="http"||r==="https"))throw new qa("Unsupported scheme")}else r=t.socket&&t.socket.encrypted?"https":"http";let s=new URL(`${r}://${a}${i}`);if(s.hostname.length!==a.length&&s.hostname!==a.replace(/:\d+$/,""))throw new qa("Invalid host header");return n[Hc]=s.href,n},Ow=Symbol("responseCache"),Lr=Symbol("getResponseCache"),ka=Symbol("cache"),Mw=global.Response,Fr=class yM{#n;#e;[Lr](){return delete this[ka],this[Ow]||=new Mw(this.#n,this.#e)}constructor(e,n){let i;if(this.#n=e,n instanceof yM){let a=n[Ow];if(a){this.#e=a,this[Lr]();return}else this.#e=n.#e,i=new Headers(n.#e.headers)}else this.#e=n;(typeof e=="string"||typeof e?.getReader<"u"||e instanceof Blob||e instanceof Uint8Array)&&(this[ka]=[n?.status||200,e,i||n?.headers])}get headers(){let e=this[ka];return e?(e[2]instanceof Headers||(e[2]=new Headers(e[2]||{"content-type":"text/plain; charset=UTF-8"})),e[2]):this[Lr]().headers}get status(){return this[ka]?.[0]??this[Lr]().status}get ok(){let e=this.status;return e>=200&&e<300}};["body","bodyUsed","redirected","statusText","trailers","type","url"].forEach(t=>{Object.defineProperty(Fr.prototype,t,{get(){return this[Lr]()[t]}})});["arrayBuffer","blob","clone","formData","json","text"].forEach(t=>{Object.defineProperty(Fr.prototype,t,{value:function(){return this[Lr]()[t]()}})});Object.defineProperty(Fr.prototype,Symbol.for("nodejs.util.inspect.custom"),{value:function(t,e,n){let i={status:this.status,headers:this.headers,ok:this.ok,nativeResponse:this[Ow]};return`Response (lightweight) ${n(i,{...e,depth:t==null?null:t-1})}`}});Object.setPrototypeOf(Fr,Mw);Object.setPrototypeOf(Fr.prototype,Mw.prototype);async function hV(t){return Promise.race([t,Promise.resolve().then(()=>Promise.resolve(void 0))])}function PM(t,e,n){let i=o=>{t.cancel(o).catch(()=>{})};return e.on("close",i),e.on("error",i),(n??t.read()).then(s,a),t.closed.finally(()=>{e.off("close",i),e.off("error",i)});function a(o){o&&e.destroy(o)}function r(){t.read().then(s,a)}function s({done:o,value:l}){try{if(o)e.end();else if(!e.write(l))e.once("drain",r);else return t.read().then(s,a)}catch(u){a(u)}}}function gV(t,e){if(t.locked)throw new TypeError("ReadableStream is locked.");return e.destroyed?void 0:PM(t.getReader(),e)}var xw=t=>{let e={};t instanceof Headers||(t=new Headers(t??void 0));let n=[];for(let[i,a]of t)i==="set-cookie"?n.push(a):e[i]=a;return n.length>0&&(e["set-cookie"]=n),e["content-type"]??="text/plain; charset=UTF-8",e},mV="x-hono-already-sent";typeof global.crypto>"u"&&(global.crypto=jM.default);var Ew=Symbol("outgoingEnded"),CM=Symbol("incomingDraining"),fV=500,wV=64*1024*1024,jw=t=>{let e=t;if(t.destroyed||e[CM])return;if(e[CM]=!0,t instanceof Ro.Http2ServerRequest){try{t.stream?.close?.(Ro.constants.NGHTTP2_NO_ERROR)}catch{}return}let n=0,i=()=>{clearTimeout(r),t.off("data",s),t.off("end",i),t.off("error",i)},a=()=>{i();let o=t.socket;o&&!o.destroyed&&o.destroySoon()},r=setTimeout(a,fV);r.unref?.();let s=o=>{n+=o.length,n>wV&&a()};t.on("data",s),t.on("end",i),t.on("error",i),t.resume()},vV=()=>new Response(null,{status:400}),SM=t=>new Response(null,{status:t instanceof Error&&(t.name==="TimeoutError"||t.constructor.name==="TimeoutError")?504:500}),Tw=(t,e)=>{let n=t instanceof Error?t:new Error("unknown error",{cause:t});n.code==="ERR_STREAM_PREMATURE_CLOSE"?console.info("The user aborted a request."):(console.error(t),e.headersSent||e.writeHead(500,{"Content-Type":"text/plain"}),e.end(`Error: ${n.message}`),e.destroy(n))},OM=t=>{"flushHeaders"in t&&t.writable&&t.flushHeaders()},xM=async(t,e)=>{let[n,i,a]=t[ka],r=!1;if(!a)a={"content-type":"text/plain; charset=UTF-8"};else if(a instanceof Headers)r=a.has("content-length"),a=xw(a);else if(Array.isArray(a)){let s=new Headers(a);r=s.has("content-length"),a=xw(s)}else for(let s in a)if(s.length===14&&s.toLowerCase()==="content-length"){r=!0;break}r||(typeof i=="string"?a["Content-Length"]=Buffer.byteLength(i):i instanceof Uint8Array?a["Content-Length"]=i.byteLength:i instanceof Blob&&(a["Content-Length"]=i.size)),e.writeHead(n,a),typeof i=="string"||i instanceof Uint8Array?e.end(i):i instanceof Blob?e.end(new Uint8Array(await i.arrayBuffer())):(OM(e),await gV(i,e)?.catch(s=>Tw(s,e))),e[Ew]?.()},CV=t=>typeof t.then=="function",AV=async(t,e,n={})=>{if(CV(t))if(n.errorHandler)try{t=await t}catch(a){let r=await n.errorHandler(a);if(!r)return;t=r}else t=await t.catch(SM);if(ka in t)return xM(t,e);let i=xw(t.headers);if(t.body){let a=t.body.getReader(),r=[],s=!1,o;if(i["transfer-encoding"]!=="chunked"){let l=2;for(let u=0;u{console.error(p),s=!0});if(!c){if(u===1){await new Promise(p=>setTimeout(p)),l=3;continue}break}if(o=void 0,c.value&&r.push(c.value),c.done){s=!0;break}}s&&!("content-length"in i)&&(i["content-length"]=r.reduce((u,c)=>u+c.length,0))}e.writeHead(t.status,i),r.forEach(l=>{e.write(l)}),s?e.end():(r.length===0&&OM(e),await PM(a,e,o))}else i[mV]||(e.writeHead(t.status,i),e.end());e[Ew]?.()},qw=(t,e={})=>{let n=e.autoCleanupIncoming??!0;return e.overrideGlobalObjects!==!1&&global.Request!==Ho&&(Object.defineProperty(global,"Request",{value:Ho}),Object.defineProperty(global,"Response",{value:Fr})),async(i,a)=>{let r,s;try{s=dV(i,e.hostname);let o=!n||i.method==="GET"||i.method==="HEAD";if(o||(i[AM]=!0,i.on("end",()=>{o=!0}),i instanceof Ro.Http2ServerRequest&&(a[Ew]=()=>{o||setTimeout(()=>{o||setTimeout(()=>{jw(i)})})}),a.on("finish",()=>{o||jw(i)})),a.on("close",()=>{s[Wr]&&(i.errored?s[Wr].abort(i.errored.toString()):a.writableFinished||s[Wr].abort("Client connection prematurely closed.")),o||setTimeout(()=>{o||setTimeout(()=>{jw(i)})})}),r=t(s,{incoming:i,outgoing:a}),ka in r)return xM(r,a)}catch(o){if(r)return Tw(o,a);if(e.errorHandler){if(r=await e.errorHandler(s?o:sV(o)),!r)return}else s?r=SM(o):r=vV()}try{return await AV(r,a,e)}catch(o){return Tw(o,a)}}};var Rc=class{constructor(e={}){this._started=!1,this._hasHandledRequest=!1,this._streamMapping=new Map,this._requestToStreamMapping=new Map,this._requestResponseMap=new Map,this._initialized=!1,this._enableJsonResponse=!1,this._standaloneSseStreamId="_GET_stream",this.sessionIdGenerator=e.sessionIdGenerator,this._enableJsonResponse=e.enableJsonResponse??!1,this._eventStore=e.eventStore,this._onsessioninitialized=e.onsessioninitialized,this._onsessionclosed=e.onsessionclosed,this._allowedHosts=e.allowedHosts,this._allowedOrigins=e.allowedOrigins,this._enableDnsRebindingProtection=e.enableDnsRebindingProtection??!1,this._retryInterval=e.retryInterval}async start(){if(this._started)throw new Error("Transport already started");this._started=!0}createJsonErrorResponse(e,n,i,a){let r={code:n,message:i};return a?.data!==void 0&&(r.data=a.data),new Response(JSON.stringify({jsonrpc:"2.0",error:r,id:null}),{status:e,headers:{"Content-Type":"application/json",...a?.headers}})}validateRequestHeaders(e){if(this._enableDnsRebindingProtection){if(this._allowedHosts&&this._allowedHosts.length>0){let n=e.headers.get("host");if(!n||!this._allowedHosts.includes(n)){let i=`Invalid Host header: ${n}`;return this.onerror?.(new Error(i)),this.createJsonErrorResponse(403,-32e3,i)}}if(this._allowedOrigins&&this._allowedOrigins.length>0){let n=e.headers.get("origin");if(n&&!this._allowedOrigins.includes(n)){let i=`Invalid Origin header: ${n}`;return this.onerror?.(new Error(i)),this.createJsonErrorResponse(403,-32e3,i)}}}}async handleRequest(e,n){if(!this.sessionIdGenerator&&this._hasHandledRequest)throw new Error("Stateless transport cannot be reused across requests. Create a new transport per request.");this._hasHandledRequest=!0;let i=this.validateRequestHeaders(e);if(i)return i;switch(e.method){case"POST":return this.handlePostRequest(e,n);case"GET":return this.handleGetRequest(e);case"DELETE":return this.handleDeleteRequest(e);default:return this.handleUnsupportedRequest()}}async writePrimingEvent(e,n,i,a){if(!this._eventStore||a<"2025-11-25")return;let r=await this._eventStore.storeEvent(i,{}),s=`id: ${r} +data: + +`;this._retryInterval!==void 0&&(s=`id: ${r} +retry: ${this._retryInterval} +data: + +`),e.enqueue(n.encode(s))}async handleGetRequest(e){if(!e.headers.get("accept")?.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept text/event-stream");let i=this.validateSession(e);if(i)return i;let a=this.validateProtocolVersion(e);if(a)return a;if(this._eventStore){let u=e.headers.get("last-event-id");if(u)return this.replayEvents(u)}if(this._streamMapping.get(this._standaloneSseStreamId)!==void 0)return this.onerror?.(new Error("Conflict: Only one SSE stream is allowed per session")),this.createJsonErrorResponse(409,-32e3,"Conflict: Only one SSE stream is allowed per session");let r=new TextEncoder,s,o=new ReadableStream({start:u=>{s=u},cancel:()=>{this._streamMapping.delete(this._standaloneSseStreamId)}}),l={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive"};return this.sessionId!==void 0&&(l["mcp-session-id"]=this.sessionId),this._streamMapping.set(this._standaloneSseStreamId,{controller:s,encoder:r,cleanup:()=>{this._streamMapping.delete(this._standaloneSseStreamId);try{s.close()}catch{}}}),new Response(o,{headers:l})}async replayEvents(e){if(!this._eventStore)return this.onerror?.(new Error("Event store not configured")),this.createJsonErrorResponse(400,-32e3,"Event store not configured");try{let n;if(this._eventStore.getStreamIdForEventId){if(n=await this._eventStore.getStreamIdForEventId(e),!n)return this.onerror?.(new Error("Invalid event ID format")),this.createJsonErrorResponse(400,-32e3,"Invalid event ID format");if(this._streamMapping.get(n)!==void 0)return this.onerror?.(new Error("Conflict: Stream already has an active connection")),this.createJsonErrorResponse(409,-32e3,"Conflict: Stream already has an active connection")}let i={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive"};this.sessionId!==void 0&&(i["mcp-session-id"]=this.sessionId);let a=new TextEncoder,r,s=new ReadableStream({start:l=>{r=l},cancel:()=>{}}),o=await this._eventStore.replayEventsAfter(e,{send:async(l,u)=>{if(!this.writeSSEEvent(r,a,u,l)){this.onerror?.(new Error("Failed replay events"));try{r.close()}catch{}}}});return this._streamMapping.set(o,{controller:r,encoder:a,cleanup:()=>{this._streamMapping.delete(o);try{r.close()}catch{}}}),new Response(s,{headers:i})}catch(n){return this.onerror?.(n),this.createJsonErrorResponse(500,-32e3,"Error replaying events")}}writeSSEEvent(e,n,i,a){try{let r=`event: message +`;return a&&(r+=`id: ${a} +`),r+=`data: ${JSON.stringify(i)} + +`,e.enqueue(n.encode(r)),!0}catch(r){return this.onerror?.(r),!1}}handleUnsupportedRequest(){return this.onerror?.(new Error("Method not allowed.")),new Response(JSON.stringify({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null}),{status:405,headers:{Allow:"GET, POST, DELETE","Content-Type":"application/json"}})}async handlePostRequest(e,n){try{let i=e.headers.get("accept");if(!i?.includes("application/json")||!i.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept both application/json and text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept both application/json and text/event-stream");let a=e.headers.get("content-type");if(!a||!a.includes("application/json"))return this.onerror?.(new Error("Unsupported Media Type: Content-Type must be application/json")),this.createJsonErrorResponse(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let r={headers:Object.fromEntries(e.headers.entries()),url:new URL(e.url)},s;if(n?.parsedBody!==void 0)s=n.parsedBody;else try{s=await e.json()}catch{return this.onerror?.(new Error("Parse error: Invalid JSON")),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON")}let o;try{Array.isArray(s)?o=s.map(w=>om.parse(w)):o=[om.parse(s)]}catch{return this.onerror?.(new Error("Parse error: Invalid JSON-RPC message")),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON-RPC message")}let l=o.some(lm);if(l){if(this._initialized&&this.sessionId!==void 0)return this.onerror?.(new Error("Invalid Request: Server already initialized")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Server already initialized");if(o.length>1)return this.onerror?.(new Error("Invalid Request: Only one initialization request is allowed")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Only one initialization request is allowed");this.sessionId=this.sessionIdGenerator?.(),this._initialized=!0,this.sessionId&&this._onsessioninitialized&&await Promise.resolve(this._onsessioninitialized(this.sessionId))}if(!l){let w=this.validateSession(e);if(w)return w;let b=this.validateProtocolVersion(e);if(b)return b}if(!o.some(xt)){for(let w of o)this.onmessage?.(w,{authInfo:n?.authInfo,requestInfo:r});return new Response(null,{status:202})}let c=crypto.randomUUID(),p=o.find(w=>lm(w)),d=p?p.params.protocolVersion:e.headers.get("mcp-protocol-version")??yS;if(this._enableJsonResponse)return new Promise(w=>{this._streamMapping.set(c,{resolveJson:w,cleanup:()=>{this._streamMapping.delete(c)}});for(let b of o)xt(b)&&this._requestToStreamMapping.set(b.id,c);for(let b of o)this.onmessage?.(b,{authInfo:n?.authInfo,requestInfo:r})});let h=new TextEncoder,g,m=new ReadableStream({start:w=>{g=w},cancel:()=>{this._streamMapping.delete(c)}}),f={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"};this.sessionId!==void 0&&(f["mcp-session-id"]=this.sessionId);for(let w of o)xt(w)&&(this._streamMapping.set(c,{controller:g,encoder:h,cleanup:()=>{this._streamMapping.delete(c);try{g.close()}catch{}}}),this._requestToStreamMapping.set(w.id,c));await this.writePrimingEvent(g,h,c,d);for(let w of o){let b,A;xt(w)&&this._eventStore&&d>="2025-11-25"&&(b=()=>{this.closeSSEStream(w.id)},A=()=>{this.closeStandaloneSSEStream()}),this.onmessage?.(w,{authInfo:n?.authInfo,requestInfo:r,closeSSEStream:b,closeStandaloneSSEStream:A})}return new Response(m,{status:200,headers:f})}catch(i){return this.onerror?.(i),this.createJsonErrorResponse(400,-32700,"Parse error",{data:String(i)})}}async handleDeleteRequest(e){let n=this.validateSession(e);if(n)return n;let i=this.validateProtocolVersion(e);return i||(await Promise.resolve(this._onsessionclosed?.(this.sessionId)),await this.close(),new Response(null,{status:200}))}validateSession(e){if(this.sessionIdGenerator===void 0)return;if(!this._initialized)return this.onerror?.(new Error("Bad Request: Server not initialized")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Server not initialized");let n=e.headers.get("mcp-session-id");if(!n)return this.onerror?.(new Error("Bad Request: Mcp-Session-Id header is required")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Mcp-Session-Id header is required");if(n!==this.sessionId)return this.onerror?.(new Error("Session not found")),this.createJsonErrorResponse(404,-32001,"Session not found")}validateProtocolVersion(e){let n=e.headers.get("mcp-protocol-version");if(n!==null&&!Cr.includes(n))return this.onerror?.(new Error(`Bad Request: Unsupported protocol version: ${n} (supported versions: ${Cr.join(", ")})`)),this.createJsonErrorResponse(400,-32e3,`Bad Request: Unsupported protocol version: ${n} (supported versions: ${Cr.join(", ")})`)}async close(){this._streamMapping.forEach(({cleanup:e})=>{e()}),this._streamMapping.clear(),this._requestResponseMap.clear(),this.onclose?.()}closeSSEStream(e){let n=this._requestToStreamMapping.get(e);if(!n)return;let i=this._streamMapping.get(n);i&&i.cleanup()}closeStandaloneSSEStream(){let e=this._streamMapping.get(this._standaloneSseStreamId);e&&e.cleanup()}async send(e,n){let i=n?.relatedRequestId;if((at(e)||Ar(e))&&(i=e.id),i===void 0){if(at(e)||Ar(e))throw new Error("Cannot send a response on a standalone SSE stream unless resuming a previous client request");let s;this._eventStore&&(s=await this._eventStore.storeEvent(this._standaloneSseStreamId,e));let o=this._streamMapping.get(this._standaloneSseStreamId);if(o===void 0)return;o.controller&&o.encoder&&this.writeSSEEvent(o.controller,o.encoder,e,s);return}let a=this._requestToStreamMapping.get(i);if(!a)throw new Error(`No connection established for request ID: ${String(i)}`);let r=this._streamMapping.get(a);if(!this._enableJsonResponse&&r?.controller&&r?.encoder){let s;this._eventStore&&(s=await this._eventStore.storeEvent(a,e)),this.writeSSEEvent(r.controller,r.encoder,e,s)}if(at(e)||Ar(e)){this._requestResponseMap.set(i,e);let s=Array.from(this._requestToStreamMapping.entries()).filter(([l,u])=>u===a).map(([l])=>l);if(s.every(l=>this._requestResponseMap.has(l))){if(!r)throw new Error(`No connection established for request ID: ${String(i)}`);if(this._enableJsonResponse&&r.resolveJson){let l={"Content-Type":"application/json"};this.sessionId!==void 0&&(l["mcp-session-id"]=this.sessionId);let u=s.map(c=>this._requestResponseMap.get(c));u.length===1?r.resolveJson(new Response(JSON.stringify(u[0]),{status:200,headers:l})):r.resolveJson(new Response(JSON.stringify(u),{status:200,headers:l}))}else r.cleanup();for(let l of s)this._requestResponseMap.delete(l),this._requestToStreamMapping.delete(l)}}}};var Ic=class{constructor(e={}){this._requestContext=new WeakMap,this._webStandardTransport=new Rc(e),this._requestListener=qw(async n=>{let i=this._requestContext.get(n);return this._webStandardTransport.handleRequest(n,{authInfo:i?.authInfo,parsedBody:i?.parsedBody})},{overrideGlobalObjects:!1})}get sessionId(){return this._webStandardTransport.sessionId}set onclose(e){this._webStandardTransport.onclose=e}get onclose(){return this._webStandardTransport.onclose}set onerror(e){this._webStandardTransport.onerror=e}get onerror(){return this._webStandardTransport.onerror}set onmessage(e){this._webStandardTransport.onmessage=e}get onmessage(){return this._webStandardTransport.onmessage}async start(){return this._webStandardTransport.start()}async close(){return this._webStandardTransport.close()}async send(e,n){return this._webStandardTransport.send(e,n)}async handleRequest(e,n,i){let a=e.auth;await qw(async s=>this._webStandardTransport.handleRequest(s,{authInfo:a,parsedBody:i}),{overrideGlobalObjects:!1})(e,n)}closeSSEStream(e){this._webStandardTransport.closeSSEStream(e)}closeStandaloneSSEStream(){this._webStandardTransport.closeStandaloneSSEStream()}};var xy=Nl(kI());function _I(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function zX(t,e){let n={};for(let i of e){let a=i.type??"UNKNOWN";n[a]||(n[a]=[]),n[a].push({id:i.id??"",name:i.name??"",...i.version?{version:i.version}:{},deleted:i.deleted??!1,updated:i.updated??!1})}return{flow:{id:t.id??"",name:t.name,type:_I(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:n}}var HI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:et.string().min(1).describe("The Genesys Cloud Architect flow ID")}},handler:async({flowId:e})=>{try{let n;try{n=await t.getFlow(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found.`}]}}let i=_I(n.type??""),a=n.publishedVersion?.commitVersion??"1",r=[],s=1;for(;;){let l=await t.getArchitectDependencytrackingConsumedresources(n.id,a,i,{pageSize:100,pageNumber:s});if(l.entities&&r.push(...l.entities),!l.nextUri)break;s++}let o=zX(n,r);return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}catch(n){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${n instanceof Error?n.message:String(n)}`}]}}}});var Oy=et.object({CLAUDE_PLUGIN_OPTION_genesys_region:et.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_id:et.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_secret:et.string().min(1)}).parse(process.env),DX={architectApi:new xy.default.ArchitectApi};function GX(){let t=new qc({name:"genesys-cloud-architect",version:"1.0.0"}),e=HI(DX);return t.registerTool("flow_dependencies",e.config,e.handler),t}function $X(t){return new Promise((e,n)=>{let i=[];t.on("data",a=>i.push(a)),t.on("end",()=>{try{e(JSON.parse(Buffer.concat(i).toString()))}catch(a){n(a)}}),t.on("error",n)})}var RI=Number(process.env.PORT)||3e3;(async()=>{let t=xy.default.ApiClient.instance;t.setEnvironment(Oy.CLAUDE_PLUGIN_OPTION_genesys_region),await t.loginClientCredentialsGrant(Oy.CLAUDE_PLUGIN_OPTION_genesys_client_id,Oy.CLAUDE_PLUGIN_OPTION_genesys_client_secret),(0,II.createServer)(async(n,i)=>{if(n.url!=="/mcp"){i.writeHead(404).end();return}if(n.method==="POST"){let a=GX(),r=new Ic({sessionIdGenerator:void 0});await a.connect(r);let s=await $X(n);await r.handleRequest(n,i,s),i.on("close",()=>{r.close(),a.close()});return}i.writeHead(405).end(JSON.stringify({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null}))}).listen(RI,"127.0.0.1",()=>{console.log(`MCP Streamable HTTP Server listening on http://127.0.0.1:${RI}/mcp`)})})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); +/*! Bundled license information: + +mime-db/index.js: + (*! + * mime-db + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015-2022 Douglas Christopher Wilson + * MIT Licensed + *) + +mime-types/index.js: + (*! + * mime-types + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +axios/dist/node/axios.cjs: + (*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors *) + +safe-buffer/index.js: + (*! safe-buffer. MIT License. Feross Aboukhadijeh *) +*/ diff --git a/skills/flow-diagram/SKILL.md b/skills/flow-diagram/SKILL.md new file mode 100644 index 0000000..77e8132 --- /dev/null +++ b/skills/flow-diagram/SKILL.md @@ -0,0 +1,83 @@ +--- +name: flow-diagram +description: This skill should be used when the user asks to create an interactive diagram, flowchart, flow visualization, dependency tree, architecture map, state machine, or pipeline view. Common trigger phrases include "visualize", "diagram", "flowchart", "graph", "map out", "show the flow", "draw the dependencies", "create a diagram", or any request where a visual representation of nodes and connections would communicate better than text. +--- + +# Flow Diagram Skill + +Create interactive flow diagrams as standalone HTML files using React Flow (@xyflow/react). The diagrams are self-contained (no build step, no npm install), use a dark theme, and open directly in a browser. + +## When to Use + +Generate a React Flow diagram when: +- Displaying hierarchical relationships (dependency trees, org charts, call chains) +- Showing data/control flow between components (pipelines, workflows, request paths) +- Visualizing state machines or decision trees +- Mapping architecture (service dependencies, module relationships) +- Any scenario where a graph of connected nodes communicates better than a table or list + +Prefer plain text (ASCII, markdown table) when the graph has fewer than 3 nodes or no edges. For large diagrams (30+ nodes), consider grouping related nodes into composite cards or splitting into multiple diagrams — browser rendering remains smooth up to ~100 nodes, but readability degrades well before that. + +## How to Create a Diagram + +### 1. Start from the template + +Copy `assets/template.html` to the target location. The template contains the tested import map, dark-theme CSS, and React Flow scaffolding. Do not modify the import map URLs or `?external` parameters — they are calibrated to avoid duplicate-React issues. + +### 2. Define custom node types + +Create node components using `createElement` (aliased as `h`). Every node needs `Handle` components for connections. Consult `references/patterns.md` for ready-made node designs: +- **Card with sub-items** — for nodes with child lists (e.g., a flow listing its data actions) +- **Simple labeled node** — for minimal states or pipeline steps +- **Status node** — for nodes with a health/status indicator + +Register node types in a `nodeTypes` object **outside the App component**. + +### 3. Define data, nodes, and edges + +Build the `initialNodes` and `initialEdges` arrays from the data being visualized. + +Each node needs: `id`, `type` (matching a key in `nodeTypes`), `position: { x, y }`, and `data` (props passed to the node component). + +Each edge needs: `id`, `source` (node id), `target` (node id). Optional: `animated`, `label`, `type` (`'smoothstep'` for flowcharts, default bezier for trees). + +### 4. Layout the nodes + +For manual layout strategies (trees, grids, multi-level), see `references/patterns.md` under "Layout Strategies". Use `fitView` on the ReactFlow component to auto-zoom. + +### 5. Add title, legend, and type-specific CSS + +Use the `.diagram-title` and `.legend` overlay classes from the template. Add type badge CSS using the accent color pattern from `references/patterns.md`. + +### 6. Replace template placeholders + +The template has `%%PLACEHOLDER%%` comments marking where to insert content: +- `%%TITLE%%` — page title +- `%%CUSTOM_STYLES%%` — type badge classes and additional CSS +- `%%NODE_TYPES%%` — custom node components and `nodeTypes` object +- `%%DATA%%` — the `initialNodes` and `initialEdges` arrays +- `%%LAYOUT%%` — (already part of data if positions are inline) +- `%%TITLE_OVERLAY%%` — title createElement call +- `%%LEGEND%%` — legend createElement call + +### 7. Open in browser + +The resulting HTML file opens directly in any modern browser. No server needed. + +## Key Constraints + +- **No JSX** — use `createElement` (aliased `h`). No Babel, no build step. +- **No additional CDN dependencies** — the import map in the template is sufficient. +- **`nodeTypes` must be defined outside components** — React Flow remounts nodes if the object identity changes per render. +- **Dark theme only** — the CSS is designed for the `#0f172a` background. Changing to light theme requires restyling all components. + +## Additional Resources + +### Reference Files +- **`references/patterns.md`** — Import map details, createElement syntax, layout strategies (tree/grid/multi-level), edge types, color palette, and ready-made node component patterns + +### Asset Files +- **`assets/template.html`** — Base HTML template with the working import map, dark-theme CSS, and React Flow scaffolding. Copy this as the starting point for every diagram. + +### Example Files +- **`examples/dependency-tree.html`** — Complete working diagram showing a Genesys Cloud Architect flow dependency tree with 3 nodes, custom card nodes with sub-item lists, animated edges, title overlay, and legend. Use as a reference for the expected end result. \ No newline at end of file diff --git a/skills/flow-diagram/assets/template.html b/skills/flow-diagram/assets/template.html new file mode 100644 index 0000000..6e6bbc7 --- /dev/null +++ b/skills/flow-diagram/assets/template.html @@ -0,0 +1,166 @@ + + + + + + %%TITLE%% + + + + + + +
+ + + + \ No newline at end of file diff --git a/skills/flow-diagram/examples/dependency-tree.html b/skills/flow-diagram/examples/dependency-tree.html new file mode 100644 index 0000000..2eb44ce --- /dev/null +++ b/skills/flow-diagram/examples/dependency-tree.html @@ -0,0 +1,310 @@ + + + + + + Flow Dependency Diagram + + + + + + +
+ + + + diff --git a/skills/flow-diagram/references/patterns.md b/skills/flow-diagram/references/patterns.md new file mode 100644 index 0000000..d3ac279 --- /dev/null +++ b/skills/flow-diagram/references/patterns.md @@ -0,0 +1,244 @@ +# React Flow Diagram Patterns + +## Import Map (Critical) + +The import map in the template uses esm.sh to load React and @xyflow/react without a build step. This exact pattern is tested and working — do not modify the URLs or query parameters. + +Key details: +- `?external=react,react-dom` on `@xyflow/react` prevents bundling a separate React copy, which would break hooks +- `"react/": "https://esm.sh/react@18.3.1/"` handles subpath imports like `react/jsx-runtime` +- The CSS is loaded from jsdelivr (not esm.sh) because esm.sh does not serve CSS files + +## createElement Pattern + +Since there is no build step, all components use `createElement` (aliased as `h`) instead of JSX: + +```js +import { createElement as h } from 'react'; + +// JSX equivalent:
Hello
+h('div', { className: 'card' }, h('span', null, 'Hello')) + +// JSX equivalent: +h(Handle, { type: 'target', position: Position.Top }) + +// Conditional rendering +condition ? h('div', null, 'Yes') : null + +// Mapping arrays (spread into parent's children) +h('div', null, ...items.map((item, i) => h('span', { key: i }, item))) +``` + +## Custom Node Types + +Every custom node must be defined as a component and registered in a `nodeTypes` object **outside the App component** (React Flow requirement — defining inside causes remounts): + +```js +function MyNode({ data }) { + return h('div', { className: 'node-card' }, + h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), + h('div', { className: 'node-title' }, data.label), + h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), + ); +} + +// MUST be outside the component +const nodeTypes = { myNode: MyNode }; +``` + +Nodes reference the type by key: `{ id: '1', type: 'myNode', position: { x: 0, y: 0 }, data: { label: 'Hello' } }`. + +## Layout Strategies + +### Manual Tree Layout + +For small trees (< 20 nodes), calculate positions directly: + +```js +const childCount = children.length; +const spacing = 300; +const totalWidth = (childCount - 1) * spacing; +const startX = -totalWidth / 2; + +const nodes = [ + { id: 'root', position: { x: 0, y: 0 }, ... }, + ...children.map((child, i) => ({ + id: child.id, + position: { x: startX + i * spacing, y: 320 }, + ... + })), +]; +``` + +### Multi-Level Tree Layout + +For deeper trees, assign y based on depth and x based on sibling index: + +```js +const LEVEL_HEIGHT = 300; +const SIBLING_SPACING = 280; + +function layoutTree(node, depth = 0, siblingIndex = 0, siblingCount = 1) { + const totalWidth = (siblingCount - 1) * SIBLING_SPACING; + return { + id: node.id, + position: { + x: -totalWidth / 2 + siblingIndex * SIBLING_SPACING, + y: depth * LEVEL_HEIGHT, + }, + ... + }; +} +``` + +### Grid Layout + +For flat collections (no hierarchy): + +```js +const COLS = 4; +const COL_WIDTH = 300; +const ROW_HEIGHT = 200; + +const nodes = items.map((item, i) => ({ + id: item.id, + position: { + x: (i % COLS) * COL_WIDTH, + y: Math.floor(i / COLS) * ROW_HEIGHT, + }, + ... +})); +``` + +## Edge Patterns + +### Basic directed edge + +```js +{ id: 'e1', source: 'a', target: 'b', animated: true, style: { stroke: '#475569', strokeWidth: 2 } } +``` + +### Labeled edge + +```js +{ id: 'e1', source: 'a', target: 'b', label: 'calls', labelStyle: { fill: '#94a3b8', fontSize: 11 }, labelBgStyle: { fill: '#1e293b' } } +``` + +### Edge types + +- `default` — bezier curve (best for trees) +- `smoothstep` — right-angled with rounded corners (best for flowcharts) +- `step` — right-angled sharp corners +- `straight` — direct line + +Set via `type` property: `{ id: 'e1', source: 'a', target: 'b', type: 'smoothstep' }`. + +## Color Palette (Dark Theme) + +| Purpose | Color | Usage | +|---------|-------|-------| +| Background | `#0f172a` | Page/canvas | +| Card bg | `#1e293b` | Node cards | +| Card border | `#334155` | Default border | +| Card border hover | `#475569` | Hover state | +| Primary text | `#f1f5f9` | Titles, names | +| Secondary text | `#cbd5e1` | List items | +| Muted text | `#64748b` | Labels, captions | +| Dim text | `#475569` | Disabled, empty states | +| Edge default | `#475569` | Connection lines | +| Edge animated | `#60a5fa` | Active connections | +| Blue accent | `#3b82f6` / `#60a5fa` | — | +| Purple accent | `#8b5cf6` / `#a78bfa` | — | +| Green accent | `#10b981` / `#34d399` | — | +| Amber accent | `#f59e0b` / `#fbbf24` | — | +| Red accent | `#ef4444` / `#f87171` | — | + +### Type badge CSS pattern + +```css +.type-example { + background: rgba(59, 130, 246, 0.15); + color: #60a5fa; + border: 1px solid rgba(59, 130, 246, 0.3); +} +``` + +Replace the RGB values with any accent color. The pattern is: 15% opacity background, full-brightness text, 30% opacity border. + +## Title and Legend + +### Title overlay + +```js +h('div', { className: 'diagram-title' }, + 'Main Title', + h('div', { className: 'subtitle' }, 'Subtitle text'), +) +``` + +### Legend overlay + +```js +h('div', { className: 'legend' }, + h('div', { className: 'legend-item' }, + h('div', { className: 'legend-dot', style: { background: '#3b82f6' } }), + 'Label', + ), + // ... more items +) +``` + +## Common Node Designs + +### Card with sub-items + +For nodes that have a list of children (e.g., a flow with data actions): + +```js +function CardWithList({ data }) { + return h('div', { className: 'node-card' }, + h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), + h('div', { className: `type-badge ${data.badgeClass}` }, data.badgeLabel), + h('div', { className: 'node-title' }, data.label), + data.items.length > 0 + ? h('div', null, + h('div', { className: 'section-label' }, data.itemsLabel), + ...data.items.map((item, i) => + h('div', { key: i, className: 'list-item' }, item) + ) + ) + : h('div', { className: 'muted' }, `No ${data.itemsLabel.toLowerCase()}`), + h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), + ); +} +``` + +### Simple labeled node + +For minimal nodes (state machine states, simple pipeline steps): + +```js +function SimpleNode({ data }) { + return h('div', { className: 'node-card', style: { textAlign: 'center', minWidth: 120 } }, + h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), + h('div', { className: 'node-title', style: { marginBottom: 0 } }, data.label), + h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), + ); +} +``` + +### Node with status indicator + +```js +function StatusNode({ data }) { + const statusColors = { healthy: '#10b981', warning: '#f59e0b', error: '#ef4444' }; + return h('div', { className: 'node-card' }, + h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), + h('div', { style: { display: 'flex', alignItems: 'center', gap: 8 } }, + h('div', { style: { width: 8, height: 8, borderRadius: '50%', background: statusColors[data.status] || '#475569' } }), + h('div', { className: 'node-title', style: { marginBottom: 0 } }, data.label), + ), + h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), + ); +} +``` \ No newline at end of file