diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 8d15158..643ed24 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,7 +10,7 @@ "name": "genesys-cloud-architect", "source": "./", "description": "Create, test, and debug Genesys Cloud Architect flows", - "version": "2.0.2" + "version": "2.0.3" } ] } diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 3627e77..3a0ff73 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "genesys-cloud-architect", "description": "Create, test, and debug Genesys Cloud Architect flows", - "version": "2.0.2", + "version": "2.0.3", "author": { "name": "Lucas Woodward", "url": "https://makingchatbots.com/" diff --git a/README.md b/README.md index bee3d96..304b4e6 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ This plugin allows you to: * `Architect > Flow Instance > View` * `Architect > Flow Instance > Search` * `Architect > Flow Instance Execution Data > View` + * `Architect > User Prompt > View` ## Usage diff --git a/package.json b/package.json index 6feab91..d58c16f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "genesys-cloud-architect", - "version": "2.0.2", + "version": "2.0.3", "private": true, "packageManager": "pnpm@11.1.3+sha512.c85357fe17ca12dd23dd7071822666dfd7e3cb76fe214e3370b5ea2fb34f2a231185509b63e717f3cd0acb38dd3f8d82bcd5e8172400ae678b70ea4fbed0896d", "author": { diff --git a/servers/genesys-cloud-architect-mcp.js b/servers/genesys-cloud-architect-mcp.js index 9c3292c..8d4f94b 100644 --- a/servers/genesys-cloud-architect-mcp.js +++ b/servers/genesys-cloud-architect-mcp.js @@ -1,80 +1,80 @@ -"use strict";var iz=Object.create;var zh=Object.defineProperty;var tz=Object.getOwnPropertyDescriptor;var az=Object.getOwnPropertyNames;var rz=Object.getPrototypeOf,sz=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},Dh=(t,e)=>{for(var n in e)zh(t,n,{get:e[n],enumerable:!0})},oz=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of az(e))!sz.call(t,a)&&a!==n&&zh(t,a,{get:()=>e[a],enumerable:!(i=tz(e,a))||i.enumerable});return t};var zr=(t,e,n)=>(n=t!=null?iz(rz(t)):{},oz(e||!t||!t.__esModule?zh(n,"default",{value:t,enumerable:!0}):n,t));var Ko=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Vo=class{};Se._CodeOrName=Vo;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Xa=class extends Vo{constructor(e){if(super(),!Se.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}}};Se.Name=Xa;var Ni=class extends Vo{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 Xa&&(n[i.str]=(n[i.str]||0)+1),n),{})}};Se._Code=Ni;Se.nil=new Ni("");function hT(t,...e){let n=[t[0]],i=0;for(;i{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.ValueScope=li.ValueScopeName=li.Scope=li.varKinds=li.UsedValueState=void 0;var oi=Ko(),tw=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Fc;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Fc||(li.UsedValueState=Fc={}));li.varKinds={const:new oi.Name("const"),let:new oi.Name("let"),var:new oi.Name("var")};var Vc=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof oi.Name?e:this.name(e)}name(e){return new oi.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}}};li.Scope=Vc;var Jc=class extends oi.Name{constructor(e,n){super(n),this.prefix=e}setValue(e,{property:n,itemIndex:i}){this.value=e,this.scopePath=(0,oi._)`.${new oi.Name(n)}[${i}]`}};li.ValueScopeName=Jc;var hB=(0,oi._)`\n`,aw=class extends Vc{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?hB:oi.nil}}get(){return this._scope}name(e){return new Jc(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 u=o.get(s);if(u)return u}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),c=l.length;return l[c]=n.ref,a.setValue(n,{property:r,itemIndex:c}),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,oi._)`${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=oi.nil;for(let s in e){let o=e[s];if(!o)continue;let l=i[s]=i[s]||new Map;o.forEach(c=>{if(l.has(c))return;l.set(c,Fc.Started);let u=n(c);if(u){let p=this.opts.es5?li.varKinds.var:li.varKinds.const;r=(0,oi._)`${r}${p} ${c} = ${u};${this.opts._n}`}else if(u=a?.(c))r=(0,oi._)`${r}${u}${this.opts._n}`;else throw new tw(c);l.set(c,Fc.Completed)})}return r}};li.ValueScope=aw});var se=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 ve=Ko(),nt=rw(),ua=Ko();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return ua._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return ua.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return ua.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return ua.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return ua.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return ua.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return ua.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return ua.Name}});var Yc=rw();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Yc.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Yc.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Yc.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Yc.varKinds}});oe.operators={GT:new ve._Code(">"),GTE:new ve._Code(">="),LT:new ve._Code("<"),LTE:new ve._Code("<="),EQ:new ve._Code("==="),NEQ:new ve._Code("!=="),NOT:new ve._Code("!"),OR:new ve._Code("||"),AND:new ve._Code("&&"),ADD:new ve._Code("+")};var Nt=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},sw=class extends Nt{constructor(e,n,i){super(),this.varKind=e,this.name=n,this.rhs=i}render({es5:e,_n:n}){let i=e?nt.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=ds(this.rhs,e,n)),this}get names(){return this.rhs instanceof ve._CodeOrName?this.rhs.names:{}}},Kc=class extends Nt{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 ve.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ds(this.rhs,e,n),this}get names(){let e=this.lhs instanceof ve.Name?{}:{...this.lhs.names};return Qc(e,this.rhs)}},ow=class extends Kc{constructor(e,n,i,a){super(e,i,a),this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},lw=class extends Nt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},uw=class extends Nt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},cw=class extends Nt{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},pw=class extends Nt{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=ds(this.code,e,n),this}get names(){return this.code instanceof ve._CodeOrName?this.code.names:{}}},Zo=class extends Nt{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)||(gB(e,r.names),i.splice(a,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>ir(e,n.names),{})}},Ut=class extends Zo{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},dw=class extends Zo{},ps=class extends Ut{};ps.kind="else";var er=class t extends Ut{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 ps(i):i}if(n)return e===!1?n instanceof t?n:n.nodes:this.nodes.length?this:new t(mT(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=ds(this.condition,e,n),this}get names(){let e=super.names;return Qc(e,this.condition),this.else&&ir(e,this.else.names),e}};er.kind="if";var nr=class extends Ut{};nr.kind="for";var hw=class extends nr{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=ds(this.iteration,e,n),this}get names(){return ir(super.names,this.iteration.names)}},gw=class extends nr{constructor(e,n,i,a){super(),this.varKind=e,this.name=n,this.from=i,this.to=a}render(e){let n=e.es5?nt.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=Qc(super.names,this.from);return Qc(e,this.to)}},Zc=class extends nr{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=ds(this.iterable,e,n),this}get names(){return ir(super.names,this.iterable.names)}},Qo=class extends Ut{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)}};Qo.kind="func";var Yo=class extends Zo{render(e){return"return "+super.render(e)}};Yo.kind="return";var mw=class extends Ut{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&&ir(e,this.catch.names),this.finally&&ir(e,this.finally.names),e}},Xo=class extends Ut{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Xo.kind="catch";var el=class extends Ut{render(e){return"finally"+super.render(e)}};el.kind="finally";var fw=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?` -`:""},this._extScope=e,this._scope=new nt.Scope({parent:e}),this._nodes=[new dw]}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 sw(e,r,i)),r}const(e,n,i){return this._def(nt.varKinds.const,e,n,i)}let(e,n,i){return this._def(nt.varKinds.let,e,n,i)}var(e,n,i){return this._def(nt.varKinds.var,e,n,i)}assign(e,n,i){return this._leafNode(new Kc(e,n,i))}add(e,n){return this._leafNode(new ow(e,oe.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==ve.nil&&this._leafNode(new pw(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,ve.addCodeArg)(n,a));return n.push("}"),new ve._Code(n)}if(e,n,i){if(this._blockNode(new er(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 er(e))}else(){return this._elseNode(new ps)}endIf(){return this._endBlockNode(er,ps)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new hw(e),n)}forRange(e,n,i,a,r=this.opts.es5?nt.varKinds.var:nt.varKinds.let){let s=this._scope.toName(e);return this._for(new gw(r,s,n,i),()=>a(s))}forOf(e,n,i,a=nt.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=n instanceof ve.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,ve._)`${s}.length`,o=>{this.var(r,(0,ve._)`${s}[${o}]`),i(r)})}return this._for(new Zc("of",a,r,n),()=>i(r))}forIn(e,n,i,a=this.opts.es5?nt.varKinds.var:nt.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,ve._)`Object.keys(${n})`,i);let r=this._scope.toName(e);return this._for(new Zc("in",a,r,n),()=>i(r))}endFor(){return this._endBlockNode(nr)}label(e){return this._leafNode(new lw(e))}break(e){return this._leafNode(new uw(e))}return(e){let n=new Yo;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Yo)}try(e,n,i){if(!n&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new mw;if(this._blockNode(a),this.code(e),n){let r=this.name("e");this._currNode=a.catch=new Xo(r),n(r)}return i&&(this._currNode=a.finally=new el,this.code(i)),this._endBlockNode(Xo,el)}throw(e){return this._leafNode(new cw(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=ve.nil,i,a){return this._blockNode(new Qo(e,n,i)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(Qo)}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 er))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=fw;function ir(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function Qc(t,e){return e instanceof ve._CodeOrName?ir(t,e.names):t}function ds(t,e,n){if(t instanceof ve.Name)return i(t);if(!a(t))return t;return new ve._Code(t._items.reduce((r,s)=>(s instanceof ve.Name&&(s=i(s)),s instanceof ve._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 ve._Code&&r._items.some(s=>s instanceof ve.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function gB(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function mT(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,ve._)`!${ww(t)}`}oe.not=mT;var mB=fT(oe.operators.AND);function fB(...t){return t.reduce(mB)}oe.and=fB;var wB=fT(oe.operators.OR);function vB(...t){return t.reduce(wB)}oe.or=vB;function fT(t){return(e,n)=>e===ve.nil?n:n===ve.nil?e:(0,ve._)`${ww(e)} ${t} ${ww(n)}`}function ww(t){return t instanceof ve.Name?t:(0,ve._)`(${t})`}});var be=v(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.checkStrictMode=ue.getErrorPath=ue.Type=ue.useFunc=ue.setEvaluated=ue.evaluatedPropsToName=ue.mergeEvaluated=ue.eachItem=ue.unescapeJsonPointer=ue.escapeJsonPointer=ue.escapeFragment=ue.unescapeFragment=ue.schemaRefOrVal=ue.schemaHasRulesButRef=ue.schemaHasRules=ue.checkUnknownRules=ue.alwaysValidSchema=ue.toHash=void 0;var De=se(),CB=Ko();function AB(t){let e={};for(let n of t)e[n]=!0;return e}ue.toHash=AB;function bB(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(CT(t,e),!AT(e,t.self.RULES.all))}ue.alwaysValidSchema=bB;function CT(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]||yT(t,`unknown keyword: "${r}"`)}ue.checkUnknownRules=CT;function AT(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(e[n])return!0;return!1}ue.schemaHasRules=AT;function xB(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}ue.schemaHasRulesButRef=xB;function yB({topSchemaRef:t,schemaPath:e},n,i,a){if(!a){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,De._)`${n}`}return(0,De._)`${t}${e}${(0,De.getProperty)(i)}`}ue.schemaRefOrVal=yB;function PB(t){return bT(decodeURIComponent(t))}ue.unescapeFragment=PB;function jB(t){return encodeURIComponent(Cw(t))}ue.escapeFragment=jB;function Cw(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ue.escapeJsonPointer=Cw;function bT(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ue.unescapeJsonPointer=bT;function SB(t,e){if(Array.isArray(t))for(let n of t)e(n);else e(t)}ue.eachItem=SB;function wT({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:i}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof De.Name?(r instanceof De.Name?t(a,r,s):e(a,r,s),s):r instanceof De.Name?(e(a,s,r),r):n(r,s);return o===De.Name&&!(l instanceof De.Name)?i(a,l):l}}ue.mergeEvaluated={props:wT({mergeNames:(t,e,n)=>t.if((0,De._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,De._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,De._)`${n} || {}`).code((0,De._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,De._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,De._)`${n} || {}`),Aw(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:xT}),items:wT({mergeNames:(t,e,n)=>t.if((0,De._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,De._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,De._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,De._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function xT(t,e){if(e===!0)return t.var("props",!0);let n=t.var("props",(0,De._)`{}`);return e!==void 0&&Aw(t,n,e),n}ue.evaluatedPropsToName=xT;function Aw(t,e,n){Object.keys(n).forEach(i=>t.assign((0,De._)`${e}${(0,De.getProperty)(i)}`,!0))}ue.setEvaluated=Aw;var vT={};function OB(t,e){return t.scopeValue("func",{ref:e,code:vT[e.code]||(vT[e.code]=new CB._Code(e.code))})}ue.useFunc=OB;var vw;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(vw||(ue.Type=vw={}));function TB(t,e,n){if(t instanceof De.Name){let i=e===vw.Num;return n?i?(0,De._)`"[" + ${t} + "]"`:(0,De._)`"['" + ${t} + "']"`:i?(0,De._)`"/" + ${t}`:(0,De._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,De.getProperty)(t).toString():"/"+Cw(t)}ue.getErrorPath=TB;function yT(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}ue.checkStrictMode=yT});var $t=v(bw=>{"use strict";Object.defineProperty(bw,"__esModule",{value:!0});var zn=se(),kB={data:new zn.Name("data"),valCxt:new zn.Name("valCxt"),instancePath:new zn.Name("instancePath"),parentData:new zn.Name("parentData"),parentDataProperty:new zn.Name("parentDataProperty"),rootData:new zn.Name("rootData"),dynamicAnchors:new zn.Name("dynamicAnchors"),vErrors:new zn.Name("vErrors"),errors:new zn.Name("errors"),this:new zn.Name("this"),self:new zn.Name("self"),scope:new zn.Name("scope"),json:new zn.Name("json"),jsonPos:new zn.Name("jsonPos"),jsonLen:new zn.Name("jsonLen"),jsonPart:new zn.Name("jsonPart")};bw.default=kB});var nl=v(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.extendErrors=Dn.resetErrorsCount=Dn.reportExtraError=Dn.reportError=Dn.keyword$DataError=Dn.keywordError=void 0;var xe=se(),Xc=be(),Jn=$t();Dn.keywordError={message:({keyword:t})=>(0,xe.str)`must pass "${t}" keyword validation`};Dn.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,xe.str)`"${t}" keyword must be ${e} ($data)`:(0,xe.str)`"${t}" keyword is invalid ($data)`};function MB(t,e=Dn.keywordError,n,i){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=ST(t,e,n);i??(s||o)?PT(r,l):jT(a,(0,xe._)`[${l}]`)}Dn.reportError=MB;function EB(t,e=Dn.keywordError,n){let{it:i}=t,{gen:a,compositeRule:r,allErrors:s}=i,o=ST(t,e,n);PT(a,o),r||s||jT(i,Jn.default.vErrors)}Dn.reportExtraError=EB;function qB(t,e){t.assign(Jn.default.errors,e),t.if((0,xe._)`${Jn.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,xe._)`${Jn.default.vErrors}.length`,e),()=>t.assign(Jn.default.vErrors,null)))}Dn.resetErrorsCount=qB;function _B({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,Jn.default.errors,o=>{t.const(s,(0,xe._)`${Jn.default.vErrors}[${o}]`),t.if((0,xe._)`${s}.instancePath === undefined`,()=>t.assign((0,xe._)`${s}.instancePath`,(0,xe.strConcat)(Jn.default.instancePath,r.errorPath))),t.assign((0,xe._)`${s}.schemaPath`,(0,xe.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,xe._)`${s}.schema`,n),t.assign((0,xe._)`${s}.data`,i))})}Dn.extendErrors=_B;function PT(t,e){let n=t.const("err",e);t.if((0,xe._)`${Jn.default.vErrors} === null`,()=>t.assign(Jn.default.vErrors,(0,xe._)`[${n}]`),(0,xe._)`${Jn.default.vErrors}.push(${n})`),t.code((0,xe._)`${Jn.default.errors}++`)}function jT(t,e){let{gen:n,validateName:i,schemaEnv:a}=t;a.$async?n.throw((0,xe._)`new ${t.ValidationError}(${e})`):(n.assign((0,xe._)`${i}.errors`,e),n.return(!1))}var tr={keyword:new xe.Name("keyword"),schemaPath:new xe.Name("schemaPath"),params:new xe.Name("params"),propertyName:new xe.Name("propertyName"),message:new xe.Name("message"),schema:new xe.Name("schema"),parentSchema:new xe.Name("parentSchema")};function ST(t,e,n){let{createErrors:i}=t.it;return i===!1?(0,xe._)`{}`:HB(t,e,n)}function HB(t,e,n={}){let{gen:i,it:a}=t,r=[WB(a,n),RB(t,n)];return IB(t,e,r),i.object(...r)}function WB({errorPath:t},{instancePath:e}){let n=e?(0,xe.str)`${t}${(0,Xc.getErrorPath)(e,Xc.Type.Str)}`:t;return[Jn.default.instancePath,(0,xe.strConcat)(Jn.default.instancePath,n)]}function RB({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:i}){let a=i?e:(0,xe.str)`${e}/${t}`;return n&&(a=(0,xe.str)`${a}${(0,Xc.getErrorPath)(n,Xc.Type.Str)}`),[tr.schemaPath,a]}function IB(t,{params:e,message:n},i){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:c,topSchemaRef:u,schemaPath:p}=o;i.push([tr.keyword,a],[tr.params,typeof e=="function"?e(t):e||(0,xe._)`{}`]),l.messages&&i.push([tr.message,typeof n=="function"?n(t):n]),l.verbose&&i.push([tr.schema,s],[tr.parentSchema,(0,xe._)`${u}${p}`],[Jn.default.data,r]),c&&i.push([tr.propertyName,c])}});var TT=v(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.boolOrEmptySchema=hs.topBoolOrEmptySchema=void 0;var zB=nl(),DB=se(),GB=$t(),NB={message:"boolean schema is false"};function UB(t){let{gen:e,schema:n,validateName:i}=t;n===!1?OT(t,!1):typeof n=="object"&&n.$async===!0?e.return(GB.default.data):(e.assign((0,DB._)`${i}.errors`,null),e.return(!0))}hs.topBoolOrEmptySchema=UB;function $B(t,e){let{gen:n,schema:i}=t;i===!1?(n.var(e,!1),OT(t)):n.var(e,!0)}hs.boolOrEmptySchema=$B;function OT(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,zB.reportError)(a,NB,void 0,e)}});var xw=v(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.getRules=gs.isJSONType=void 0;var BB=["string","number","integer","boolean","null","object","array"],LB=new Set(BB);function FB(t){return typeof t=="string"&&LB.has(t)}gs.isJSONType=FB;function VB(){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:{}}}gs.getRules=VB});var yw=v(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.shouldUseRule=ca.shouldUseGroup=ca.schemaHasRulesForType=void 0;function JB({schema:t,self:e},n){let i=e.RULES.types[n];return i&&i!==!0&&kT(t,i)}ca.schemaHasRulesForType=JB;function kT(t,e){return e.rules.some(n=>MT(t,n))}ca.shouldUseGroup=kT;function MT(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))}ca.shouldUseRule=MT});var il=v(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.reportTypeError=Gn.checkDataTypes=Gn.checkDataType=Gn.coerceAndCheckDataType=Gn.getJSONTypes=Gn.getSchemaTypes=Gn.DataType=void 0;var KB=xw(),ZB=yw(),QB=nl(),ae=se(),ET=be(),ms;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(ms||(Gn.DataType=ms={}));function YB(t){let e=qT(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}Gn.getSchemaTypes=YB;function qT(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(KB.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Gn.getJSONTypes=qT;function XB(t,e){let{gen:n,data:i,opts:a}=t,r=eL(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,ZB.schemaHasRulesForType)(t,e[0]));if(s){let o=jw(e,i,a.strictNumbers,ms.Wrong);n.if(o,()=>{r.length?nL(t,e,r):Sw(t)})}return s}Gn.coerceAndCheckDataType=XB;var _T=new Set(["string","number","integer","boolean","null"]);function eL(t,e){return e?t.filter(n=>_T.has(n)||e==="array"&&n==="array"):[]}function nL(t,e,n){let{gen:i,data:a,opts:r}=t,s=i.let("dataType",(0,ae._)`typeof ${a}`),o=i.let("coerced",(0,ae._)`undefined`);r.coerceTypes==="array"&&i.if((0,ae._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>i.assign(a,(0,ae._)`${a}[0]`).assign(s,(0,ae._)`typeof ${a}`).if(jw(e,a,r.strictNumbers),()=>i.assign(o,a))),i.if((0,ae._)`${o} !== undefined`);for(let c of n)(_T.has(c)||c==="array"&&r.coerceTypes==="array")&&l(c);i.else(),Sw(t),i.endIf(),i.if((0,ae._)`${o} !== undefined`,()=>{i.assign(a,o),iL(t,o)});function l(c){switch(c){case"string":i.elseIf((0,ae._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,ae._)`"" + ${a}`).elseIf((0,ae._)`${a} === null`).assign(o,(0,ae._)`""`);return;case"number":i.elseIf((0,ae._)`${s} == "boolean" || ${a} === null +"use strict";var dz=Object.create;var Nh=Object.defineProperty;var hz=Object.getOwnPropertyDescriptor;var gz=Object.getOwnPropertyNames;var mz=Object.getPrototypeOf,fz=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},Uh=(t,e)=>{for(var n in e)Nh(t,n,{get:e[n],enumerable:!0})},wz=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of gz(e))!fz.call(t,a)&&a!==n&&Nh(t,a,{get:()=>e[a],enumerable:!(i=hz(e,a))||i.enumerable});return t};var $r=(t,e,n)=>(n=t!=null?dz(mz(t)):{},wz(e||!t||!t.__esModule?Nh(n,"default",{value:t,enumerable:!0}):n,t));var Yo=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Qo=class{};Se._CodeOrName=Qo;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ar=class extends Qo{constructor(e){if(super(),!Se.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}}};Se.Name=ar;var $i=class extends Qo{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 ar&&(n[i.str]=(n[i.str]||0)+1),n),{})}};Se._Code=$i;Se.nil=new $i("");function vT(t,...e){let n=[t[0]],i=0;for(;i{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.ValueScope=ui.ValueScopeName=ui.Scope=ui.varKinds=ui.UsedValueState=void 0;var li=Yo(),sw=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Zc;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Zc||(ui.UsedValueState=Zc={}));ui.varKinds={const:new li.Name("const"),let:new li.Name("let"),var:new li.Name("var")};var Qc=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof li.Name?e:this.name(e)}name(e){return new li.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}}};ui.Scope=Qc;var Xc=class extends li.Name{constructor(e,n){super(n),this.prefix=e}setValue(e,{property:n,itemIndex:i}){this.value=e,this.scopePath=(0,li._)`.${new li.Name(n)}[${i}]`}};ui.ValueScopeName=Xc;var yB=(0,li._)`\n`,ow=class extends Qc{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?yB:li.nil}}get(){return this._scope}name(e){return new Xc(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 u=o.get(s);if(u)return u}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),c=l.length;return l[c]=n.ref,a.setValue(n,{property:r,itemIndex:c}),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,li._)`${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=li.nil;for(let s in e){let o=e[s];if(!o)continue;let l=i[s]=i[s]||new Map;o.forEach(c=>{if(l.has(c))return;l.set(c,Zc.Started);let u=n(c);if(u){let p=this.opts.es5?ui.varKinds.var:ui.varKinds.const;r=(0,li._)`${r}${p} ${c} = ${u};${this.opts._n}`}else if(u=a?.(c))r=(0,li._)`${r}${u}${this.opts._n}`;else throw new sw(c);l.set(c,Zc.Completed)})}return r}};ui.ValueScope=ow});var se=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 ve=Yo(),at=lw(),pa=Yo();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return pa._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return pa.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return pa.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return pa.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return pa.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return pa.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return pa.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return pa.Name}});var ip=lw();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return ip.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return ip.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return ip.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return ip.varKinds}});oe.operators={GT:new ve._Code(">"),GTE:new ve._Code(">="),LT:new ve._Code("<"),LTE:new ve._Code("<="),EQ:new ve._Code("==="),NEQ:new ve._Code("!=="),NOT:new ve._Code("!"),OR:new ve._Code("||"),AND:new ve._Code("&&"),ADD:new ve._Code("+")};var Ut=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},uw=class extends Ut{constructor(e,n,i){super(),this.varKind=e,this.name=n,this.rhs=i}render({es5:e,_n:n}){let i=e?at.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=ws(this.rhs,e,n)),this}get names(){return this.rhs instanceof ve._CodeOrName?this.rhs.names:{}}},Yc=class extends Ut{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 ve.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ws(this.rhs,e,n),this}get names(){let e=this.lhs instanceof ve.Name?{}:{...this.lhs.names};return np(e,this.rhs)}},cw=class extends Yc{constructor(e,n,i,a){super(e,i,a),this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},pw=class extends Ut{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},dw=class extends Ut{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},hw=class extends Ut{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},gw=class extends Ut{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=ws(this.code,e,n),this}get names(){return this.code instanceof ve._CodeOrName?this.code.names:{}}},el=class extends Ut{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)||(PB(e,r.names),i.splice(a,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>or(e,n.names),{})}},$t=class extends el{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},mw=class extends el{},fs=class extends $t{};fs.kind="else";var rr=class t extends $t{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 fs(i):i}if(n)return e===!1?n instanceof t?n:n.nodes:this.nodes.length?this:new t(AT(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=ws(this.condition,e,n),this}get names(){let e=super.names;return np(e,this.condition),this.else&&or(e,this.else.names),e}};rr.kind="if";var sr=class extends $t{};sr.kind="for";var fw=class extends sr{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=ws(this.iteration,e,n),this}get names(){return or(super.names,this.iteration.names)}},ww=class extends sr{constructor(e,n,i,a){super(),this.varKind=e,this.name=n,this.from=i,this.to=a}render(e){let n=e.es5?at.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=np(super.names,this.from);return np(e,this.to)}},ep=class extends sr{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=ws(this.iterable,e,n),this}get names(){return or(super.names,this.iterable.names)}},nl=class extends $t{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)}};nl.kind="func";var il=class extends el{render(e){return"return "+super.render(e)}};il.kind="return";var vw=class extends $t{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&&or(e,this.catch.names),this.finally&&or(e,this.finally.names),e}},tl=class extends $t{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};tl.kind="catch";var al=class extends $t{render(e){return"finally"+super.render(e)}};al.kind="finally";var Cw=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?` +`:""},this._extScope=e,this._scope=new at.Scope({parent:e}),this._nodes=[new mw]}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 uw(e,r,i)),r}const(e,n,i){return this._def(at.varKinds.const,e,n,i)}let(e,n,i){return this._def(at.varKinds.let,e,n,i)}var(e,n,i){return this._def(at.varKinds.var,e,n,i)}assign(e,n,i){return this._leafNode(new Yc(e,n,i))}add(e,n){return this._leafNode(new cw(e,oe.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==ve.nil&&this._leafNode(new gw(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,ve.addCodeArg)(n,a));return n.push("}"),new ve._Code(n)}if(e,n,i){if(this._blockNode(new rr(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 rr(e))}else(){return this._elseNode(new fs)}endIf(){return this._endBlockNode(rr,fs)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new fw(e),n)}forRange(e,n,i,a,r=this.opts.es5?at.varKinds.var:at.varKinds.let){let s=this._scope.toName(e);return this._for(new ww(r,s,n,i),()=>a(s))}forOf(e,n,i,a=at.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=n instanceof ve.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,ve._)`${s}.length`,o=>{this.var(r,(0,ve._)`${s}[${o}]`),i(r)})}return this._for(new ep("of",a,r,n),()=>i(r))}forIn(e,n,i,a=this.opts.es5?at.varKinds.var:at.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,ve._)`Object.keys(${n})`,i);let r=this._scope.toName(e);return this._for(new ep("in",a,r,n),()=>i(r))}endFor(){return this._endBlockNode(sr)}label(e){return this._leafNode(new pw(e))}break(e){return this._leafNode(new dw(e))}return(e){let n=new il;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(il)}try(e,n,i){if(!n&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new vw;if(this._blockNode(a),this.code(e),n){let r=this.name("e");this._currNode=a.catch=new tl(r),n(r)}return i&&(this._currNode=a.finally=new al,this.code(i)),this._endBlockNode(tl,al)}throw(e){return this._leafNode(new hw(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=ve.nil,i,a){return this._blockNode(new nl(e,n,i)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(nl)}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 rr))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=Cw;function or(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function np(t,e){return e instanceof ve._CodeOrName?or(t,e.names):t}function ws(t,e,n){if(t instanceof ve.Name)return i(t);if(!a(t))return t;return new ve._Code(t._items.reduce((r,s)=>(s instanceof ve.Name&&(s=i(s)),s instanceof ve._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 ve._Code&&r._items.some(s=>s instanceof ve.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function PB(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function AT(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,ve._)`!${Aw(t)}`}oe.not=AT;var jB=bT(oe.operators.AND);function SB(...t){return t.reduce(jB)}oe.and=SB;var OB=bT(oe.operators.OR);function TB(...t){return t.reduce(OB)}oe.or=TB;function bT(t){return(e,n)=>e===ve.nil?n:n===ve.nil?e:(0,ve._)`${Aw(e)} ${t} ${Aw(n)}`}function Aw(t){return t instanceof ve.Name?t:(0,ve._)`(${t})`}});var be=v(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.checkStrictMode=ue.getErrorPath=ue.Type=ue.useFunc=ue.setEvaluated=ue.evaluatedPropsToName=ue.mergeEvaluated=ue.eachItem=ue.unescapeJsonPointer=ue.escapeJsonPointer=ue.escapeFragment=ue.unescapeFragment=ue.schemaRefOrVal=ue.schemaHasRulesButRef=ue.schemaHasRules=ue.checkUnknownRules=ue.alwaysValidSchema=ue.toHash=void 0;var De=se(),kB=Yo();function MB(t){let e={};for(let n of t)e[n]=!0;return e}ue.toHash=MB;function EB(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(PT(t,e),!jT(e,t.self.RULES.all))}ue.alwaysValidSchema=EB;function PT(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]||TT(t,`unknown keyword: "${r}"`)}ue.checkUnknownRules=PT;function jT(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(e[n])return!0;return!1}ue.schemaHasRules=jT;function qB(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}ue.schemaHasRulesButRef=qB;function _B({topSchemaRef:t,schemaPath:e},n,i,a){if(!a){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,De._)`${n}`}return(0,De._)`${t}${e}${(0,De.getProperty)(i)}`}ue.schemaRefOrVal=_B;function HB(t){return ST(decodeURIComponent(t))}ue.unescapeFragment=HB;function WB(t){return encodeURIComponent(xw(t))}ue.escapeFragment=WB;function xw(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ue.escapeJsonPointer=xw;function ST(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ue.unescapeJsonPointer=ST;function RB(t,e){if(Array.isArray(t))for(let n of t)e(n);else e(t)}ue.eachItem=RB;function xT({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:i}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof De.Name?(r instanceof De.Name?t(a,r,s):e(a,r,s),s):r instanceof De.Name?(e(a,s,r),r):n(r,s);return o===De.Name&&!(l instanceof De.Name)?i(a,l):l}}ue.mergeEvaluated={props:xT({mergeNames:(t,e,n)=>t.if((0,De._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,De._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,De._)`${n} || {}`).code((0,De._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,De._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,De._)`${n} || {}`),yw(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:OT}),items:xT({mergeNames:(t,e,n)=>t.if((0,De._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,De._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,De._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,De._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function OT(t,e){if(e===!0)return t.var("props",!0);let n=t.var("props",(0,De._)`{}`);return e!==void 0&&yw(t,n,e),n}ue.evaluatedPropsToName=OT;function yw(t,e,n){Object.keys(n).forEach(i=>t.assign((0,De._)`${e}${(0,De.getProperty)(i)}`,!0))}ue.setEvaluated=yw;var yT={};function IB(t,e){return t.scopeValue("func",{ref:e,code:yT[e.code]||(yT[e.code]=new kB._Code(e.code))})}ue.useFunc=IB;var bw;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(bw||(ue.Type=bw={}));function zB(t,e,n){if(t instanceof De.Name){let i=e===bw.Num;return n?i?(0,De._)`"[" + ${t} + "]"`:(0,De._)`"['" + ${t} + "']"`:i?(0,De._)`"/" + ${t}`:(0,De._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,De.getProperty)(t).toString():"/"+xw(t)}ue.getErrorPath=zB;function TT(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}ue.checkStrictMode=TT});var Bt=v(Pw=>{"use strict";Object.defineProperty(Pw,"__esModule",{value:!0});var zn=se(),DB={data:new zn.Name("data"),valCxt:new zn.Name("valCxt"),instancePath:new zn.Name("instancePath"),parentData:new zn.Name("parentData"),parentDataProperty:new zn.Name("parentDataProperty"),rootData:new zn.Name("rootData"),dynamicAnchors:new zn.Name("dynamicAnchors"),vErrors:new zn.Name("vErrors"),errors:new zn.Name("errors"),this:new zn.Name("this"),self:new zn.Name("self"),scope:new zn.Name("scope"),json:new zn.Name("json"),jsonPos:new zn.Name("jsonPos"),jsonLen:new zn.Name("jsonLen"),jsonPart:new zn.Name("jsonPart")};Pw.default=DB});var rl=v(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.extendErrors=Dn.resetErrorsCount=Dn.reportExtraError=Dn.reportError=Dn.keyword$DataError=Dn.keywordError=void 0;var xe=se(),tp=be(),Jn=Bt();Dn.keywordError={message:({keyword:t})=>(0,xe.str)`must pass "${t}" keyword validation`};Dn.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,xe.str)`"${t}" keyword must be ${e} ($data)`:(0,xe.str)`"${t}" keyword is invalid ($data)`};function GB(t,e=Dn.keywordError,n,i){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=ET(t,e,n);i??(s||o)?kT(r,l):MT(a,(0,xe._)`[${l}]`)}Dn.reportError=GB;function NB(t,e=Dn.keywordError,n){let{it:i}=t,{gen:a,compositeRule:r,allErrors:s}=i,o=ET(t,e,n);kT(a,o),r||s||MT(i,Jn.default.vErrors)}Dn.reportExtraError=NB;function UB(t,e){t.assign(Jn.default.errors,e),t.if((0,xe._)`${Jn.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,xe._)`${Jn.default.vErrors}.length`,e),()=>t.assign(Jn.default.vErrors,null)))}Dn.resetErrorsCount=UB;function $B({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,Jn.default.errors,o=>{t.const(s,(0,xe._)`${Jn.default.vErrors}[${o}]`),t.if((0,xe._)`${s}.instancePath === undefined`,()=>t.assign((0,xe._)`${s}.instancePath`,(0,xe.strConcat)(Jn.default.instancePath,r.errorPath))),t.assign((0,xe._)`${s}.schemaPath`,(0,xe.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,xe._)`${s}.schema`,n),t.assign((0,xe._)`${s}.data`,i))})}Dn.extendErrors=$B;function kT(t,e){let n=t.const("err",e);t.if((0,xe._)`${Jn.default.vErrors} === null`,()=>t.assign(Jn.default.vErrors,(0,xe._)`[${n}]`),(0,xe._)`${Jn.default.vErrors}.push(${n})`),t.code((0,xe._)`${Jn.default.errors}++`)}function MT(t,e){let{gen:n,validateName:i,schemaEnv:a}=t;a.$async?n.throw((0,xe._)`new ${t.ValidationError}(${e})`):(n.assign((0,xe._)`${i}.errors`,e),n.return(!1))}var lr={keyword:new xe.Name("keyword"),schemaPath:new xe.Name("schemaPath"),params:new xe.Name("params"),propertyName:new xe.Name("propertyName"),message:new xe.Name("message"),schema:new xe.Name("schema"),parentSchema:new xe.Name("parentSchema")};function ET(t,e,n){let{createErrors:i}=t.it;return i===!1?(0,xe._)`{}`:BB(t,e,n)}function BB(t,e,n={}){let{gen:i,it:a}=t,r=[LB(a,n),FB(t,n)];return VB(t,e,r),i.object(...r)}function LB({errorPath:t},{instancePath:e}){let n=e?(0,xe.str)`${t}${(0,tp.getErrorPath)(e,tp.Type.Str)}`:t;return[Jn.default.instancePath,(0,xe.strConcat)(Jn.default.instancePath,n)]}function FB({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:i}){let a=i?e:(0,xe.str)`${e}/${t}`;return n&&(a=(0,xe.str)`${a}${(0,tp.getErrorPath)(n,tp.Type.Str)}`),[lr.schemaPath,a]}function VB(t,{params:e,message:n},i){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:c,topSchemaRef:u,schemaPath:p}=o;i.push([lr.keyword,a],[lr.params,typeof e=="function"?e(t):e||(0,xe._)`{}`]),l.messages&&i.push([lr.message,typeof n=="function"?n(t):n]),l.verbose&&i.push([lr.schema,s],[lr.parentSchema,(0,xe._)`${u}${p}`],[Jn.default.data,r]),c&&i.push([lr.propertyName,c])}});var _T=v(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.boolOrEmptySchema=vs.topBoolOrEmptySchema=void 0;var JB=rl(),KB=se(),ZB=Bt(),QB={message:"boolean schema is false"};function XB(t){let{gen:e,schema:n,validateName:i}=t;n===!1?qT(t,!1):typeof n=="object"&&n.$async===!0?e.return(ZB.default.data):(e.assign((0,KB._)`${i}.errors`,null),e.return(!0))}vs.topBoolOrEmptySchema=XB;function YB(t,e){let{gen:n,schema:i}=t;i===!1?(n.var(e,!1),qT(t)):n.var(e,!0)}vs.boolOrEmptySchema=YB;function qT(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,JB.reportError)(a,QB,void 0,e)}});var jw=v(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.getRules=Cs.isJSONType=void 0;var eL=["string","number","integer","boolean","null","object","array"],nL=new Set(eL);function iL(t){return typeof t=="string"&&nL.has(t)}Cs.isJSONType=iL;function tL(){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:{}}}Cs.getRules=tL});var Sw=v(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.shouldUseRule=da.shouldUseGroup=da.schemaHasRulesForType=void 0;function aL({schema:t,self:e},n){let i=e.RULES.types[n];return i&&i!==!0&&HT(t,i)}da.schemaHasRulesForType=aL;function HT(t,e){return e.rules.some(n=>WT(t,n))}da.shouldUseGroup=HT;function WT(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))}da.shouldUseRule=WT});var sl=v(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.reportTypeError=Gn.checkDataTypes=Gn.checkDataType=Gn.coerceAndCheckDataType=Gn.getJSONTypes=Gn.getSchemaTypes=Gn.DataType=void 0;var rL=jw(),sL=Sw(),oL=rl(),ae=se(),RT=be(),As;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(As||(Gn.DataType=As={}));function lL(t){let e=IT(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}Gn.getSchemaTypes=lL;function IT(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(rL.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Gn.getJSONTypes=IT;function uL(t,e){let{gen:n,data:i,opts:a}=t,r=cL(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,sL.schemaHasRulesForType)(t,e[0]));if(s){let o=Tw(e,i,a.strictNumbers,As.Wrong);n.if(o,()=>{r.length?pL(t,e,r):kw(t)})}return s}Gn.coerceAndCheckDataType=uL;var zT=new Set(["string","number","integer","boolean","null"]);function cL(t,e){return e?t.filter(n=>zT.has(n)||e==="array"&&n==="array"):[]}function pL(t,e,n){let{gen:i,data:a,opts:r}=t,s=i.let("dataType",(0,ae._)`typeof ${a}`),o=i.let("coerced",(0,ae._)`undefined`);r.coerceTypes==="array"&&i.if((0,ae._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>i.assign(a,(0,ae._)`${a}[0]`).assign(s,(0,ae._)`typeof ${a}`).if(Tw(e,a,r.strictNumbers),()=>i.assign(o,a))),i.if((0,ae._)`${o} !== undefined`);for(let c of n)(zT.has(c)||c==="array"&&r.coerceTypes==="array")&&l(c);i.else(),kw(t),i.endIf(),i.if((0,ae._)`${o} !== undefined`,()=>{i.assign(a,o),dL(t,o)});function l(c){switch(c){case"string":i.elseIf((0,ae._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,ae._)`"" + ${a}`).elseIf((0,ae._)`${a} === null`).assign(o,(0,ae._)`""`);return;case"number":i.elseIf((0,ae._)`${s} == "boolean" || ${a} === null || (${s} == "string" && ${a} && ${a} == +${a})`).assign(o,(0,ae._)`+${a}`);return;case"integer":i.elseIf((0,ae._)`${s} === "boolean" || ${a} === null || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(o,(0,ae._)`+${a}`);return;case"boolean":i.elseIf((0,ae._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(o,!1).elseIf((0,ae._)`${a} === "true" || ${a} === 1`).assign(o,!0);return;case"null":i.elseIf((0,ae._)`${a} === "" || ${a} === 0 || ${a} === false`),i.assign(o,null);return;case"array":i.elseIf((0,ae._)`${s} === "string" || ${s} === "number" - || ${s} === "boolean" || ${a} === null`).assign(o,(0,ae._)`[${a}]`)}}}function iL({gen:t,parentData:e,parentDataProperty:n},i){t.if((0,ae._)`${e} !== undefined`,()=>t.assign((0,ae._)`${e}[${n}]`,i))}function Pw(t,e,n,i=ms.Correct){let a=i===ms.Correct?ae.operators.EQ:ae.operators.NEQ,r;switch(t){case"null":return(0,ae._)`${e} ${a} null`;case"array":r=(0,ae._)`Array.isArray(${e})`;break;case"object":r=(0,ae._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,ae._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,ae._)`typeof ${e} ${a} ${t}`}return i===ms.Correct?r:(0,ae.not)(r);function s(o=ae.nil){return(0,ae.and)((0,ae._)`typeof ${e} == "number"`,o,n?(0,ae._)`isFinite(${e})`:ae.nil)}}Gn.checkDataType=Pw;function jw(t,e,n,i){if(t.length===1)return Pw(t[0],e,n,i);let a,r=(0,ET.toHash)(t);if(r.array&&r.object){let s=(0,ae._)`typeof ${e} != "object"`;a=r.null?s:(0,ae._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=ae.nil;r.number&&delete r.integer;for(let s in r)a=(0,ae.and)(a,Pw(s,e,n,i));return a}Gn.checkDataTypes=jw;var tL={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,ae._)`{type: ${t}}`:(0,ae._)`{type: ${e}}`};function Sw(t){let e=aL(t);(0,QB.reportError)(e,tL)}Gn.reportTypeError=Sw;function aL(t){let{gen:e,data:n,schema:i}=t,a=(0,ET.schemaRefOrVal)(t,i,"type");return{gen:e,keyword:"type",data:n,schema:i.type,schemaCode:a,schemaValue:a,parentSchema:i,params:{},it:t}}});var WT=v(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.assignDefaults=void 0;var fs=se(),rL=be();function sL(t,e){let{properties:n,items:i}=t.schema;if(e==="object"&&n)for(let a in n)HT(t,a,n[a].default);else e==="array"&&Array.isArray(i)&&i.forEach((a,r)=>HT(t,r,a.default))}ep.assignDefaults=sL;function HT(t,e,n){let{gen:i,compositeRule:a,data:r,opts:s}=t;if(n===void 0)return;let o=(0,fs._)`${r}${(0,fs.getProperty)(e)}`;if(a){(0,rL.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,fs._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,fs._)`${l} || ${o} === null || ${o} === ""`),i.if(l,(0,fs._)`${o} = ${(0,fs.stringify)(n)}`)}});var Ui=v(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.validateUnion=We.validateArray=We.usePattern=We.callValidateCode=We.schemaProperties=We.allSchemaProperties=We.noPropertyInData=We.propertyInData=We.isOwnProperty=We.hasPropFunc=We.reportMissingProp=We.checkMissingProp=We.checkReportMissingProp=void 0;var Be=se(),Ow=be(),pa=$t(),oL=be();function lL(t,e){let{gen:n,data:i,it:a}=t;n.if(kw(n,i,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Be._)`${e}`},!0),t.error()})}We.checkReportMissingProp=lL;function uL({gen:t,data:e,it:{opts:n}},i,a){return(0,Be.or)(...i.map(r=>(0,Be.and)(kw(t,e,r,n.ownProperties),(0,Be._)`${a} = ${r}`)))}We.checkMissingProp=uL;function cL(t,e){t.setParams({missingProperty:e},!0),t.error()}We.reportMissingProp=cL;function RT(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Be._)`Object.prototype.hasOwnProperty`})}We.hasPropFunc=RT;function Tw(t,e,n){return(0,Be._)`${RT(t)}.call(${e}, ${n})`}We.isOwnProperty=Tw;function pL(t,e,n,i){let a=(0,Be._)`${e}${(0,Be.getProperty)(n)} !== undefined`;return i?(0,Be._)`${a} && ${Tw(t,e,n)}`:a}We.propertyInData=pL;function kw(t,e,n,i){let a=(0,Be._)`${e}${(0,Be.getProperty)(n)} === undefined`;return i?(0,Be.or)(a,(0,Be.not)(Tw(t,e,n))):a}We.noPropertyInData=kw;function IT(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}We.allSchemaProperties=IT;function dL(t,e){return IT(e).filter(n=>!(0,Ow.alwaysValidSchema)(t,e[n]))}We.schemaProperties=dL;function hL({schemaCode:t,data:e,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:r},it:s},o,l,c){let u=c?(0,Be._)`${t}, ${e}, ${i}${a}`:e,p=[[pa.default.instancePath,(0,Be.strConcat)(pa.default.instancePath,r)],[pa.default.parentData,s.parentData],[pa.default.parentDataProperty,s.parentDataProperty],[pa.default.rootData,pa.default.rootData]];s.opts.dynamicRef&&p.push([pa.default.dynamicAnchors,pa.default.dynamicAnchors]);let h=(0,Be._)`${u}, ${n.object(...p)}`;return l!==Be.nil?(0,Be._)`${o}.call(${l}, ${h})`:(0,Be._)`${o}(${h})`}We.callValidateCode=hL;var gL=(0,Be._)`new RegExp`;function mL({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,Be._)`${a.code==="new RegExp"?gL:(0,oL.useFunc)(t,a)}(${n}, ${i})`})}We.usePattern=mL;function fL(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,Be._)`${n}.length`);e.forRange("i",0,l,c=>{t.subschema({keyword:i,dataProp:c,dataPropType:Ow.Type.Num},r),e.if((0,Be.not)(r),o)})}}We.validateArray=fL;function wL(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,Ow.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>n.forEach((l,c)=>{let u=t.subschema({keyword:i,schemaProp:c,compositeRule:!0},o);e.assign(s,(0,Be._)`${s} || ${o}`),t.mergeValidEvaluated(u,o)||e.if((0,Be.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}We.validateUnion=wL});var GT=v(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.validateKeywordUsage=At.validSchemaType=At.funcKeywordCode=At.macroKeywordCode=void 0;var Kn=se(),ar=$t(),vL=Ui(),CL=nl();function AL(t,e){let{gen:n,keyword:i,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=DT(n,i,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let c=n.name("valid");t.subschema({schema:o,schemaPath:Kn.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},c),t.pass(c,()=>t.error(!0))}At.macroKeywordCode=AL;function bL(t,e){var n;let{gen:i,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;yL(l,e);let c=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,u=DT(i,a,c),p=i.let("valid");t.block$data(p,h),t.ok((n=e.valid)!==null&&n!==void 0?n:p);function h(){if(e.errors===!1)m(),e.modifying&&zT(t),w(()=>t.error());else{let f=e.async?g():d();e.modifying&&zT(t),w(()=>xL(t,f))}}function g(){let f=i.let("ruleErrs",null);return i.try(()=>m((0,Kn._)`await `),A=>i.assign(p,!1).if((0,Kn._)`${A} instanceof ${l.ValidationError}`,()=>i.assign(f,(0,Kn._)`${A}.errors`),()=>i.throw(A))),f}function d(){let f=(0,Kn._)`${u}.errors`;return i.assign(f,null),m(Kn.nil),f}function m(f=e.async?(0,Kn._)`await `:Kn.nil){let A=l.opts.passContext?ar.default.this:ar.default.self,b=!("compile"in e&&!o||e.schema===!1);i.assign(p,(0,Kn._)`${f}${(0,vL.callValidateCode)(t,u,A,b)}`,e.modifying)}function w(f){var A;i.if((0,Kn.not)((A=e.valid)!==null&&A!==void 0?A:p),f)}}At.funcKeywordCode=bL;function zT(t){let{gen:e,data:n,it:i}=t;e.if(i.parentData,()=>e.assign(n,(0,Kn._)`${i.parentData}[${i.parentDataProperty}]`))}function xL(t,e){let{gen:n}=t;n.if((0,Kn._)`Array.isArray(${e})`,()=>{n.assign(ar.default.vErrors,(0,Kn._)`${ar.default.vErrors} === null ? ${e} : ${ar.default.vErrors}.concat(${e})`).assign(ar.default.errors,(0,Kn._)`${ar.default.vErrors}.length`),(0,CL.extendErrors)(t)},()=>t.error())}function yL({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function DT(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,Kn.stringify)(n)})}function PL(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")}At.validSchemaType=PL;function jL({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)}}At.validateKeywordUsage=jL});var UT=v(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.extendSubschemaMode=da.extendSubschemaData=da.getSubschema=void 0;var bt=se(),NT=be();function SL(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,bt._)`${t.schemaPath}${(0,bt.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[n],schemaPath:(0,bt._)`${t.schemaPath}${(0,bt.getProperty)(e)}${(0,bt.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,NT.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')}da.getSubschema=SL;function OL(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:c,dataPathArr:u,opts:p}=e,h=o.let("data",(0,bt._)`${e.data}${(0,bt.getProperty)(n)}`,!0);l(h),t.errorPath=(0,bt.str)`${c}${(0,NT.getErrorPath)(n,i,p.jsPropertySyntax)}`,t.parentDataProperty=(0,bt._)`${n}`,t.dataPathArr=[...u,t.parentDataProperty]}if(a!==void 0){let c=a instanceof bt.Name?a:o.let("data",a,!0);l(c),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(c){t.data=c,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,c]}}da.extendSubschemaData=OL;function TL(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}da.extendSubschemaMode=TL});var Mw=v((Ple,$T)=>{"use strict";$T.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 LT=v((jle,BT)=>{"use strict";var ha=BT.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(){};np(e,i,a,t,"",t)};ha.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ha.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ha.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ha.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 np(t,e,n,i,a,r,s,o,l,c){if(i&&typeof i=="object"&&!Array.isArray(i)){e(i,a,r,s,o,l,c);for(var u in i){var p=i[u];if(Array.isArray(p)){if(u in ha.arrayKeywords)for(var h=0;h{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.getSchemaRefs=ui.resolveUrl=ui.normalizeId=ui._getFullPath=ui.getFullPath=ui.inlineRef=void 0;var ML=be(),EL=Mw(),qL=LT(),_L=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function HL(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Ew(t):e?FT(t)<=e:!1}ui.inlineRef=HL;var WL=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ew(t){for(let e in t){if(WL.has(e))return!0;let n=t[e];if(Array.isArray(n)&&n.some(Ew)||typeof n=="object"&&Ew(n))return!0}return!1}function FT(t){let e=0;for(let n in t){if(n==="$ref")return 1/0;if(e++,!_L.has(n)&&(typeof t[n]=="object"&&(0,ML.eachItem)(t[n],i=>e+=FT(i)),e===1/0))return 1/0}return e}function VT(t,e="",n){n!==!1&&(e=ws(e));let i=t.parse(e);return JT(t,i)}ui.getFullPath=VT;function JT(t,e){return t.serialize(e).split("#")[0]+"#"}ui._getFullPath=JT;var RL=/#\/?$/;function ws(t){return t?t.replace(RL,""):""}ui.normalizeId=ws;function IL(t,e,n){return n=ws(n),t.resolve(e,n)}ui.resolveUrl=IL;var zL=/^[a-z_][-a-z0-9._]*$/i;function DL(t,e){if(typeof t=="boolean")return{};let{schemaId:n,uriResolver:i}=this.opts,a=ws(t[n]||e),r={"":a},s=VT(i,a,!1),o={},l=new Set;return qL(t,{allKeys:!0},(p,h,g,d)=>{if(d===void 0)return;let m=s+h,w=r[d];typeof p[n]=="string"&&(w=f.call(this,p[n])),A.call(this,p.$anchor),A.call(this,p.$dynamicAnchor),r[h]=w;function f(b){let x=this.opts.uriResolver.resolve;if(b=ws(w?x(w,b):b),l.has(b))throw u(b);l.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?c(p,S.schema,b):b!==ws(m)&&(b[0]==="#"?(c(p,o[b],b),o[b]=p):this.refs[b]=m),b}function A(b){if(typeof b=="string"){if(!zL.test(b))throw new Error(`invalid anchor "${b}"`);f.call(this,`#${b}`)}}}),o;function c(p,h,g){if(h!==void 0&&!EL(p,h))throw u(g)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}ui.getSchemaRefs=DL});var sl=v(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.getData=ga.KeywordCxt=ga.validateFunctionCode=void 0;var XT=TT(),KT=il(),_w=yw(),ip=il(),GL=WT(),rl=GT(),qw=UT(),F=se(),ne=$t(),NL=tl(),Bt=be(),al=nl();function UL(t){if(i0(t)&&(t0(t),n0(t))){LL(t);return}e0(t,()=>(0,XT.topBoolOrEmptySchema)(t))}ga.validateFunctionCode=UL;function e0({gen:t,validateName:e,schema:n,schemaEnv:i,opts:a},r){a.code.es5?t.func(e,(0,F._)`${ne.default.data}, ${ne.default.valCxt}`,i.$async,()=>{t.code((0,F._)`"use strict"; ${ZT(n,a)}`),BL(t,a),t.code(r)}):t.func(e,(0,F._)`${ne.default.data}, ${$L(a)}`,i.$async,()=>t.code(ZT(n,a)).code(r))}function $L(t){return(0,F._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${t.dynamicRef?(0,F._)`, ${ne.default.dynamicAnchors}={}`:F.nil}}={}`}function BL(t,e){t.if(ne.default.valCxt,()=>{t.var(ne.default.instancePath,(0,F._)`${ne.default.valCxt}.${ne.default.instancePath}`),t.var(ne.default.parentData,(0,F._)`${ne.default.valCxt}.${ne.default.parentData}`),t.var(ne.default.parentDataProperty,(0,F._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),t.var(ne.default.rootData,(0,F._)`${ne.default.valCxt}.${ne.default.rootData}`),e.dynamicRef&&t.var(ne.default.dynamicAnchors,(0,F._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{t.var(ne.default.instancePath,(0,F._)`""`),t.var(ne.default.parentData,(0,F._)`undefined`),t.var(ne.default.parentDataProperty,(0,F._)`undefined`),t.var(ne.default.rootData,ne.default.data),e.dynamicRef&&t.var(ne.default.dynamicAnchors,(0,F._)`{}`)})}function LL(t){let{schema:e,opts:n,gen:i}=t;e0(t,()=>{n.$comment&&e.$comment&&r0(t),ZL(t),i.let(ne.default.vErrors,null),i.let(ne.default.errors,0),n.unevaluated&&FL(t),a0(t),XL(t)})}function FL(t){let{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,F._)`${n}.evaluated`),e.if((0,F._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,F._)`${t.evaluated}.props`,(0,F._)`undefined`)),e.if((0,F._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,F._)`${t.evaluated}.items`,(0,F._)`undefined`))}function ZT(t,e){let n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,F._)`/*# sourceURL=${n} */`:F.nil}function VL(t,e){if(i0(t)&&(t0(t),n0(t))){JL(t,e);return}(0,XT.boolOrEmptySchema)(t,e)}function n0({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 i0(t){return typeof t.schema!="boolean"}function JL(t,e){let{schema:n,gen:i,opts:a}=t;a.$comment&&n.$comment&&r0(t),QL(t),YL(t);let r=i.const("_errs",ne.default.errors);a0(t,r),i.var(e,(0,F._)`${r} === ${ne.default.errors}`)}function t0(t){(0,Bt.checkUnknownRules)(t),KL(t)}function a0(t,e){if(t.opts.jtd)return QT(t,[],!1,e);let n=(0,KT.getSchemaTypes)(t.schema),i=(0,KT.coerceAndCheckDataType)(t,n);QT(t,n,!i,e)}function KL(t){let{schema:e,errSchemaPath:n,opts:i,self:a}=t;e.$ref&&i.ignoreKeywordsWithRef&&(0,Bt.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function ZL(t){let{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Bt.checkStrictMode)(t,"default is ignored in the schema root")}function QL(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,NL.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function YL(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function r0({gen:t,schemaEnv:e,schema:n,errSchemaPath:i,opts:a}){let r=n.$comment;if(a.$comment===!0)t.code((0,F._)`${ne.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,F.str)`${i}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,F._)`${ne.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function XL(t){let{gen:e,schemaEnv:n,validateName:i,ValidationError:a,opts:r}=t;n.$async?e.if((0,F._)`${ne.default.errors} === 0`,()=>e.return(ne.default.data),()=>e.throw((0,F._)`new ${a}(${ne.default.vErrors})`)):(e.assign((0,F._)`${i}.errors`,ne.default.vErrors),r.unevaluated&&e4(t),e.return((0,F._)`${ne.default.errors} === 0`))}function e4({gen:t,evaluated:e,props:n,items:i}){n instanceof F.Name&&t.assign((0,F._)`${e}.props`,n),i instanceof F.Name&&t.assign((0,F._)`${e}.items`,i)}function QT(t,e,n,i){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:c}=t,{RULES:u}=c;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,Bt.schemaHasRulesButRef)(r,u))){a.block(()=>o0(t,"$ref",u.all.$ref.definition));return}l.jtd||n4(t,e),a.block(()=>{for(let h of u.rules)p(h);p(u.post)});function p(h){(0,_w.shouldUseGroup)(r,h)&&(h.type?(a.if((0,ip.checkDataType)(h.type,s,l.strictNumbers)),YT(t,h),e.length===1&&e[0]===h.type&&n&&(a.else(),(0,ip.reportTypeError)(t)),a.endIf()):YT(t,h),o||a.if((0,F._)`${ne.default.errors} === ${i||0}`))}}function YT(t,e){let{gen:n,schema:i,opts:{useDefaults:a}}=t;a&&(0,GL.assignDefaults)(t,e.type),n.block(()=>{for(let r of e.rules)(0,_w.shouldUseRule)(i,r)&&o0(t,r.keyword,r.definition,e.type)})}function n4(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(i4(t,e),t.opts.allowUnionTypes||t4(t,e),a4(t,t.dataTypes))}function i4(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{s0(t.dataTypes,n)||Hw(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),s4(t,e)}}function t4(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Hw(t,"use allowUnionTypes to allow union type keyword")}function a4(t,e){let n=t.self.RULES.all;for(let i in n){let a=n[i];if(typeof a=="object"&&(0,_w.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>r4(e,s))&&Hw(t,`missing type "${r.join(",")}" for keyword "${i}"`)}}}function r4(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function s0(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function s4(t,e){let n=[];for(let i of t.dataTypes)s0(e,i)?n.push(i):e.includes("integer")&&i==="number"&&n.push("integer");t.dataTypes=n}function Hw(t,e){let n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,Bt.checkStrictMode)(t,e,t.opts.strictTypes)}var tp=class{constructor(e,n,i){if((0,rl.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,Bt.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",l0(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,rl.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",ne.default.errors))}result(e,n,i){this.failResult((0,F.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,F.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,F._)`${n} !== undefined && (${(0,F.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?al.reportExtraError:al.reportError)(this,this.def.error,n)}$dataError(){(0,al.reportError)(this,this.def.$dataError||al.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,al.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=F.nil){this.gen.block(()=>{this.check$data(e,i),n()})}check$data(e=F.nil,n=F.nil){if(!this.$data)return;let{gen:i,schemaCode:a,schemaType:r,def:s}=this;i.if((0,F.or)((0,F._)`${a} === undefined`,n)),e!==F.nil&&i.assign(e,!0),(r.length||s.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),e!==F.nil&&i.assign(e,!1)),i.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:i,def:a,it:r}=this;return(0,F.or)(s(),o());function s(){if(i.length){if(!(n instanceof F.Name))throw new Error("ajv implementation error");let l=Array.isArray(i)?i:[i];return(0,F._)`${(0,ip.checkDataTypes)(l,n,r.opts.strictNumbers,ip.DataType.Wrong)}`}return F.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,F._)`!${l}(${n})`}return F.nil}}subschema(e,n){let i=(0,qw.getSubschema)(this.it,e);(0,qw.extendSubschemaData)(i,this.it,e),(0,qw.extendSubschemaMode)(i,e);let a={...this.it,...i,items:void 0,props:void 0};return VL(a,n),a}mergeEvaluated(e,n){let{it:i,gen:a}=this;i.opts.unevaluated&&(i.props!==!0&&e.props!==void 0&&(i.props=Bt.mergeEvaluated.props(a,e.props,i.props,n)),i.items!==!0&&e.items!==void 0&&(i.items=Bt.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,F.Name)),!0}};ga.KeywordCxt=tp;function o0(t,e,n,i){let a=new tp(t,n,e);"code"in n?n.code(a,i):a.$data&&n.validate?(0,rl.funcKeywordCode)(a,n):"macro"in n?(0,rl.macroKeywordCode)(a,n):(n.compile||n.validate)&&(0,rl.funcKeywordCode)(a,n)}var o4=/^\/(?:[^~]|~0|~1)*$/,l4=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function l0(t,{dataLevel:e,dataNames:n,dataPathArr:i}){let a,r;if(t==="")return ne.default.rootData;if(t[0]==="/"){if(!o4.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ne.default.rootData}else{let c=l4.exec(t);if(!c)throw new Error(`Invalid JSON-pointer: ${t}`);let u=+c[1];if(a=c[2],a==="#"){if(u>=e)throw new Error(l("property/index",u));return i[e-u]}if(u>e)throw new Error(l("data",u));if(r=n[e-u],!a)return r}let s=r,o=a.split("/");for(let c of o)c&&(r=(0,F._)`${r}${(0,F.getProperty)((0,Bt.unescapeJsonPointer)(c))}`,s=(0,F._)`${s} && ${r}`);return s;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${e}`}}ga.getData=l0});var ap=v(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});var Ww=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Rw.default=Ww});var ol=v(Dw=>{"use strict";Object.defineProperty(Dw,"__esModule",{value:!0});var Iw=tl(),zw=class extends Error{constructor(e,n,i,a){super(a||`can't resolve reference ${i} from id ${n}`),this.missingRef=(0,Iw.resolveUrl)(e,n,i),this.missingSchema=(0,Iw.normalizeId)((0,Iw.getFullPath)(e,this.missingRef))}};Dw.default=zw});var sp=v($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.resolveSchema=$i.getCompilingSchema=$i.resolveRef=$i.compileSchema=$i.SchemaEnv=void 0;var it=se(),u4=ap(),rr=$t(),tt=tl(),u0=be(),c4=sl(),vs=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,tt.normalizeId)(i?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=i?.$async,this.refs={}}};$i.SchemaEnv=vs;function Nw(t){let e=c0.call(this,t);if(e)return e;let n=(0,tt.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:i,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new it.CodeGen(this.scope,{es5:i,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:u4.default,code:(0,it._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let c={gen:s,allErrors:this.opts.allErrors,data:rr.default.data,parentData:rr.default.parentData,parentDataProperty:rr.default.parentDataProperty,dataNames:[rr.default.data],dataPathArr:[it.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,it.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:it.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,it._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(t),(0,c4.validateFunctionCode)(c),s.optimize(this.opts.code.optimize);let p=s.toString();u=`${s.scopeRefs(rr.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,t));let g=new Function(`${rr.default.self}`,`${rr.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:g}),g.errors=null,g.schema=t.schema,g.schemaEnv=t,t.$async&&(g.$async=!0),this.opts.code.source===!0&&(g.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:d,items:m}=c;g.evaluated={props:d instanceof it.Name?void 0:d,items:m instanceof it.Name?void 0:m,dynamicProps:d instanceof it.Name,dynamicItems:m instanceof it.Name},g.source&&(g.source.evaluated=(0,it.stringify)(g.evaluated))}return t.validate=g,t}catch(p){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(t)}}$i.compileSchema=Nw;function p4(t,e,n){var i;n=(0,tt.resolveUrl)(this.opts.uriResolver,e,n);let a=t.refs[n];if(a)return a;let r=g4.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 vs({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[n]=d4.call(this,r)}$i.resolveRef=p4;function d4(t){return(0,tt.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Nw.call(this,t)}function c0(t){for(let e of this._compilations)if(h4(e,t))return e}$i.getCompilingSchema=c0;function h4(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function g4(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||rp.call(this,t,e)}function rp(t,e){let n=this.opts.uriResolver.parse(e),i=(0,tt._getFullPath)(this.opts.uriResolver,n),a=(0,tt.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===a)return Gw.call(this,n,t);let r=(0,tt.normalizeId)(i),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=rp.call(this,t,s);return typeof o?.schema!="object"?void 0:Gw.call(this,n,o)}if(typeof s?.schema=="object"){if(s.validate||Nw.call(this,s),r===(0,tt.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,c=o[l];return c&&(a=(0,tt.resolveUrl)(this.opts.uriResolver,a,c)),new vs({schema:o,schemaId:l,root:t,baseId:a})}return Gw.call(this,n,s)}}$i.resolveSchema=rp;var m4=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Gw(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,u0.unescapeFragment)(o)];if(l===void 0)return;n=l;let c=typeof n=="object"&&n[this.opts.schemaId];!m4.has(o)&&c&&(e=(0,tt.resolveUrl)(this.opts.uriResolver,e,c))}let r;if(typeof n!="boolean"&&n.$ref&&!(0,u0.schemaHasRulesButRef)(n,this.RULES)){let o=(0,tt.resolveUrl)(this.opts.uriResolver,e,n.$ref);r=rp.call(this,i,o)}let{schemaId:s}=this.opts;if(r=r||new vs({schema:n,schemaId:s,root:i,baseId:e}),r.schema!==r.root.schema)return r}});var p0=v((Ele,f4)=>{f4.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 Vw=v((qle,v0)=>{"use strict";var w4=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),$w=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),v4=RegExp.prototype.test.bind(/^\d*$/u),sr=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Bw=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),h0=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),Lw=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),C4=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),ci=new Array(256);{let t="0123456789ABCDEF";for(let e=0;e<256;e++)ci[e]="%"+t[e>>4]+t[e&15]}function Nn(t){return t<2048?ci[192|t>>6]+ci[128|t&63]:t<65536?ci[224|t>>12]+ci[128|t>>6&63]+ci[128|t&63]:ci[240|t>>18]+ci[128|t>>12&63]+ci[128|t>>6&63]+ci[128|t&63]}function A4(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 b4=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),x4=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),y4=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),P4=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function j4(t){if(t.length===0)return!1;for(let e=0;en&&(n=a,e=i)):(i=-1,a=0);if(n<2)return t.join(":");let r=t.slice(0,e).join(":"),s=t.slice(e+n).join(":");return r+"::"+s}function S4(t){let e=t.indexOf("::");if(e!==-1&&t.indexOf("::",e+1)!==-1)return;let n=e===-1?t.split(":"):t.slice(0,e).split(":"),i=e===-1?[]:t.slice(e+2).split(":");e!==-1&&(n.length===1&&n[0]===""&&(n.length=0),i.length===1&&i[0]===""&&(i.length=0));let a=n.concat(i),r=0;for(let o=0;o=8)return;let s=a.slice(0,n.length);for(let o=r;o<8;o++)s.push("0");for(let o=n.length;ok4[i])}function m0(t,e=!1){if(t.indexOf("%")===-1)return t;let n="";for(let i=0;i57343)e+=Nn(a);else if(a<=56319&&n+1=56320&&r<=57343?(e+=Nn(65536+(a-55296<<10)+(r-56320)),n++):e+=Nn(65533)}else e+=Nn(65533)}}return e}function _4(t,e=!1){let n="",i=e&&t[0]!=="/";for(let a=0;a57343)n+=Nn(s);else if(s<=56319&&a+1=56320&&o<=57343?(n+=Nn(65536+(s-55296<<10)+(o-56320)),a++):n+=Nn(65533)}else n+=Nn(65533)}}return n}function Fw(t,e){let n="";for(let i=0;i57343)n+=Nn(r);else if(r<=56319&&i+1=56320&&s<=57343?(n+=Nn(65536+(r-55296<<10)+(s-56320)),i++):n+=Nn(65533)}else n+=Nn(65533)}}return n}function f0(t){return Fw(t,C4)}function H4(t){return Fw(t,Lw)}function W4(t){return Fw(t,Lw)}function w0(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===42||t===43||t===45||t===46||t===47||t===64||t===95}function R4(t){let e="";for(let n=0;n57343)e+=Nn(a);else if(a<=56319&&n+1=56320&&r<=57343?(e+=Nn(65536+(a-55296<<10)+(r-56320)),n++):e+=Nn(65533)}else e+=Nn(65533)}}return e}function I4(t){let e="";for(let n=0;n{"use strict";var{isUUID:D4}=Vw(),G4=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,N4=["http","https","ws","wss","urn","urn:uuid"];function U4(t){return N4.indexOf(t)!==-1}function Jw(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 C0(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function A0(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 $4(t){return t.secure=Jw(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function B4(t){if((t.port===(Jw(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=t.resourceName.indexOf("?"),n=e===-1?t.resourceName:t.resourceName.slice(0,e);t.path=n&&n!=="/"?n:void 0,t.query=e===-1?void 0:t.resourceName.slice(e+1),t.resourceName=void 0}return t.fragment=void 0,t}function L4(t,e){if(!t.path)return t.error="URN can not be parsed",t;let n=t.path.match(G4);if(n&&n[0]===t.path){let i=e.scheme||t.scheme||"urn";t.nid=n[1].toLowerCase(),t.nss=n[2];let a=`${i}:${e.nid||t.nid}`,r=Kw(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function F4(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=Kw(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 V4(t,e){let n=t;return n.uuid=n.nss,n.nss=void 0,!e.tolerant&&(!n.uuid||!D4(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function J4(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var b0={scheme:"http",domainHost:!0,parse:C0,serialize:A0},K4={scheme:"https",domainHost:b0.domainHost,parse:C0,serialize:A0},op={scheme:"ws",domainHost:!0,parse:$4,serialize:B4},Z4={scheme:"wss",domainHost:op.domainHost,parse:op.parse,serialize:op.serialize},Q4={scheme:"urn",parse:L4,serialize:F4,skipNormalize:!0},Y4={scheme:"urn:uuid",parse:V4,serialize:J4,skipNormalize:!0},lp={http:b0,https:K4,ws:op,wss:Z4,urn:Q4,"urn:uuid":Y4};Object.setPrototypeOf(lp,null);function Kw(t){return t&&(lp[t]||lp[t.toLowerCase()])||void 0}x0.exports={wsIsSecure:Jw,SCHEMES:lp,isValidSchemeName:U4,getSchemeHandler:Kw}});var R0=v((Hle,pp)=>{"use strict";var{normalizeIPv6:T0,removeDotSegments:ul,recomposeAuthority:X4,normalizePercentEncoding:Zw,normalizePathEncoding:eF,serializePathEncoding:P0,normalizeQueryFragmentEncoding:j0,encodeQuery:nF,encodeFragment:iF,reescapeHostDelimiters:tF,isIPv4:k0,nonSimpleDomain:aF}=Vw(),{SCHEMES:M0,getSchemeHandler:Qw}=y0(),E0=/^[A-Za-z][A-Za-z0-9+.-]*$/u,q0="URI scheme is malformed.";function S0(t){let e=unescape(String(t));if(!E0.test(e))throw new TypeError(q0);return e}function rF(t,e){return typeof t=="string"?t=hF(t,e):typeof t=="object"&&(t=cp(or(t,e),e)),t}function sF(t,e,n){let i=n?Object.assign({scheme:"null"},n):{scheme:"null"},{parsed:a,malformedAuthorityOrPort:r,malformedPercentEncoding:s,malformedSchemeSpecific:o,malformedHost:l,malformedScheme:c}=up(t,i),{parsed:u,malformedAuthorityOrPort:p,malformedPercentEncoding:h,malformedSchemeSpecific:g,malformedHost:d,malformedScheme:m}=up(e,i);if(r||p||s||h||o||g||l||d||c||m)throw new Error(a.error||u.error||"URI is malformed.");let w=_0(a,u,i,!0),f=Qw(n&&n.scheme||w.scheme),A=w.host,b=A!==void 0&&A!==""&&(k0(A)||T0(A).isIPV6);H0(w,n||{},f,b);let x=A&&A.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(A);if(w.error&&!x)throw new Error(w.error);return i.skipEscape=!0,or(w,i)}function _0(t,e,n,i){let a={};return i||(t=cp(or(t,n),n),e=cp(or(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=ul(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=ul(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=ul(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=ul(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 oF(t,e,n){let i=O0(t,n),a=O0(e,n);return i!==void 0&&a!==void 0&&i===a}function or(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=[];n.scheme&&(n.scheme=S0(n.scheme));let r=Qw(i.scheme||n.scheme);r&&r.serialize&&r.serialize(n,i);let s=n.userinfo!==void 0||n.host!==void 0||n.port!==void 0,o=!i.skipEscape&&n.scheme===void 0&&!s;n.path!==void 0&&(i.skipEscape?n.path=Zw(n.path):n.path=P0(n.path,o)),i.reference!=="suffix"&&n.scheme&&(n.scheme=S0(n.scheme),a.push(n.scheme,":"));let l=X4(n);if(l!==void 0&&(i.reference!=="suffix"&&a.push("//"),a.push(l),n.path&&n.path[0]!=="/"&&a.push("/")),n.path!==void 0){let c=n.path;!i.absolutePath&&(!r||!r.absolutePath)&&(c=ul(c)),o&&(c=P0(c,!0)),l===void 0&&c[0]==="/"&&c[1]==="/"&&(c="/%2F"+c.slice(2)),a.push(c)}return n.query!==void 0&&a.push("?",nF(n.query)),n.fragment!==void 0&&a.push("#",iF(n.fragment)),a.join("")}var lF=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,uF=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,cF=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function pF(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 ll(t){if(t===void 0)return!1;let e=t.indexOf("%");for(;e!==-1;){if(e+2>=t.length||!/^[\da-f]{2}$/iu.test(t.slice(e+1,e+3)))return!0;e=t.indexOf("%",e+3)}return!1}function Yw(t){return t[0]==="["&&t[t.length-1]==="]"}function dF(t){let e=t[4];return ll(t[3])||e!==void 0&&!Yw(e)&&ll(e)||ll(t[6])||ll(t[7])||ll(t[8])}function H0(t,e,n,i){if(!e.unicodeSupport&&(!n||!n.unicodeSupport)&&t.host&&!Yw(t.host)&&(e.domainHost||n&&n.domainHost)&&i===!1&&aF(t.host))try{t.host=new URL("http://"+t.host).hostname}catch(a){return t.error=t.error||"Host's domain name can not be converted to ASCII: "+a,!0}return!1}function up(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,s=!1,o=!1,l=!1,c=!1,u=!1;n.reference==="suffix"&&(n.scheme?t=n.scheme+":"+t:t="//"+t);let p=t.match(uF);p!==null&&p[1].indexOf("\\")!==-1&&(i.error="URI authority must not contain a literal backslash.",a=!0);let h=t.match(cF);if(h!==null){let d=h[1],m=d.replace(/[\t\n\r]/g,"");m.length>=2&&(m.slice(0,2)!=="//"?(i.error=i.error||"URI authority must not contain a literal backslash.",a=!0):d.length!==m.length&&(i.error=i.error||"URI authority introducer must not contain whitespace.",a=!0))}let g=t.match(lF);if(g){if(i.scheme=g[1],i.userinfo=g[3],i.host=g[4],i.port=parseInt(g[5],10),i.path=g[6]||"",i.query=g[7],i.fragment=g[8],i.scheme!==void 0){let w=unescape(i.scheme);E0.test(w)?i.scheme=w.toLowerCase():(i.error=i.error||q0,c=!0)}r=dF(g),r&&(i.error=i.error||"URI contains malformed percent-encoding."),isNaN(i.port)&&(i.port=g[5]);let d=pF(i,g);if(d!==void 0&&(i.error=i.error||d,a=!0),i.host)if(k0(i.host)===!1){let f=Yw(i.host),A=i.host.indexOf("[")!==-1||i.host.indexOf("]")!==-1,b=T0(i.host);u=b.isIPV6||b.isIPVFuture===!0,l=A&&(!f||b.error===!0),i.host=u?b.host:b.host.toLowerCase(),l&&(i.error=i.error||"URI host is malformed.",a=!0)}else u=!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 m=Qw(n.scheme||i.scheme);if(l||(o=H0(i,n,m,u)),t.indexOf("%")!==-1&&i.host!==void 0&&!l){let w=u?i.host:Zw(i.host,!0);u||(w=Zw(w.toLowerCase())),i.host=tF(w,u)}(!m||m&&!m.skipNormalize)&&(i.path&&(i.path=eF(i.path)),i.query&&(i.query=j0(i.query)),i.fragment&&(i.fragment=j0(i.fragment))),m&&m.parse&&(m.parse(i,n),m===M0.urn&&i.nid===void 0&&(s=!0))}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:a,malformedPercentEncoding:r,malformedSchemeSpecific:s,malformedHost:o,malformedScheme:c}}function cp(t,e){return up(t,e).parsed}function hF(t,e){return W0(t,e).normalized}function W0(t,e){let{parsed:n,malformedAuthorityOrPort:i,malformedPercentEncoding:a,malformedSchemeSpecific:r,malformedHost:s,malformedScheme:o}=up(t,e);return{normalized:i||a||r||s||o?t:or(n,e),malformedAuthorityOrPort:i,malformedPercentEncoding:a,malformedSchemeSpecific:r,malformedHost:s,malformedScheme:o}}function O0(t,e){if(typeof t!="string"&&typeof t!="object")return;let n;try{n=typeof t=="string"?t:or(t,e)}catch{return}let{normalized:i,malformedAuthorityOrPort:a,malformedPercentEncoding:r,malformedSchemeSpecific:s,malformedHost:o,malformedScheme:l}=W0(n,e);return a||r||s||o||l?void 0:i}var Xw={SCHEMES:M0,normalize:rF,resolve:sF,resolveComponent:_0,equal:oF,serialize:or,parse:cp};pp.exports=Xw;pp.exports.default=Xw;pp.exports.fastUri=Xw});var z0=v(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});var I0=R0();I0.code='require("ajv/dist/runtime/uri").default';ev.default=I0});var F0=v(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CodeGen=qn.Name=qn.nil=qn.stringify=qn.str=qn._=qn.KeywordCxt=void 0;var gF=sl();Object.defineProperty(qn,"KeywordCxt",{enumerable:!0,get:function(){return gF.KeywordCxt}});var Cs=se();Object.defineProperty(qn,"_",{enumerable:!0,get:function(){return Cs._}});Object.defineProperty(qn,"str",{enumerable:!0,get:function(){return Cs.str}});Object.defineProperty(qn,"stringify",{enumerable:!0,get:function(){return Cs.stringify}});Object.defineProperty(qn,"nil",{enumerable:!0,get:function(){return Cs.nil}});Object.defineProperty(qn,"Name",{enumerable:!0,get:function(){return Cs.Name}});Object.defineProperty(qn,"CodeGen",{enumerable:!0,get:function(){return Cs.CodeGen}});var mF=ap(),$0=ol(),fF=xw(),cl=sp(),wF=se(),pl=tl(),dp=il(),iv=be(),D0=p0(),vF=z0(),B0=(t,e)=>new RegExp(t,e);B0.code="new RegExp";var CF=["removeAdditional","useDefaults","coerceTypes"],AF=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),bF={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."},xF={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},G0=200;function yF(t){var e,n,i,a,r,s,o,l,c,u,p,h,g,d,m,w,f,A,b,x,S,T,M,V,N;let _=t.strict,W=(e=t.code)===null||e===void 0?void 0:e.optimize,le=W===!0||W===void 0?1:W||0,Pe=(i=(n=t.code)===null||n===void 0?void 0:n.regExp)!==null&&i!==void 0?i:B0,Te=(a=t.uriResolver)!==null&&a!==void 0?a:vF.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:_)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:_)!==null&&l!==void 0?l:!0,strictTypes:(u=(c=t.strictTypes)!==null&&c!==void 0?c:_)!==null&&u!==void 0?u:"log",strictTuples:(h=(p=t.strictTuples)!==null&&p!==void 0?p:_)!==null&&h!==void 0?h:"log",strictRequired:(d=(g=t.strictRequired)!==null&&g!==void 0?g:_)!==null&&d!==void 0?d:!1,code:t.code?{...t.code,optimize:le,regExp:Pe}:{optimize:le,regExp:Pe},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:G0,loopEnum:(w=t.loopEnum)!==null&&w!==void 0?w:G0,meta:(f=t.meta)!==null&&f!==void 0?f:!0,messages:(A=t.messages)!==null&&A!==void 0?A:!0,inlineRefs:(b=t.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(x=t.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(S=t.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(T=t.validateSchema)!==null&&T!==void 0?T:!0,validateFormats:(M=t.validateFormats)!==null&&M!==void 0?M:!0,unicodeRegExp:(V=t.unicodeRegExp)!==null&&V!==void 0?V:!0,int32range:(N=t.int32range)!==null&&N!==void 0?N:!0,uriResolver:Te}}var dl=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,...yF(e)};let{es5:n,lines:i}=this.opts.code;this.scope=new wF.ValueScope({scope:{},prefixes:AF,es5:n,lines:i}),this.logger=kF(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,fF.getRules)(),N0.call(this,bF,e,"NOT SUPPORTED"),N0.call(this,xF,e,"DEPRECATED","warn"),this._metaOpts=OF.call(this),e.formats&&jF.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&SF.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),PF.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:i}=this.opts,a=D0;i==="id"&&(a={...D0},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(u,p){await r.call(this,u.$schema);let h=this._addSchema(u,p);return h.validate||s.call(this,h)}async function r(u){u&&!this.getSchema(u)&&await a.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof $0.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,u)}}function o({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function l(u){let p=await c.call(this,u);this.refs[u]||await r.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,n)}async function c(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=i(u))}finally{delete this._loading[u]}}}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,pl.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=U0.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:i}=this.opts,a=new cl.SchemaEnv({schema:{},schemaId:i});if(n=cl.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=U0.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,pl.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(EF.call(this,i,n),!n)return(0,iv.eachItem)(i,r=>nv.call(this,r)),this;_F.call(this,n);let a={...n,type:(0,dp.getJSONTypes)(n.type),schemaType:(0,dp.getJSONTypes)(n.schemaType)};return(0,iv.eachItem)(i,a.type.length===0?r=>nv.call(this,r,a):r=>a.type.forEach(s=>nv.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:c}=l.definition,u=s[o];c&&u&&(s[o]=L0(u))}}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,pl.normalizeId)(s||i);let c=pl.getSchemaRefs.call(this,e,i);return l=new cl.SchemaEnv({schema:e,schemaId:o,meta:n,baseId:i,localRefs:c}),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):cl.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{cl.compileSchema.call(this,e)}finally{this.opts=n}}};dl.ValidationError=mF.default;dl.MissingRefError=$0.default;qn.default=dl;function N0(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 U0(t){return t=(0,pl.normalizeId)(t),this.schemas[t]||this.refs[t]}function PF(){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 jF(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function SF(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 OF(){let t={...this.opts};for(let e of CF)delete t[e];return t}var TF={log(){},warn(){},error(){}};function kF(t){if(t===!1)return TF;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 MF=/^[a-z_$][a-z0-9_$:-]*$/i;function EF(t,e){let{RULES:n}=this;if((0,iv.eachItem)(t,i=>{if(n.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!MF.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 nv(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,dp.getJSONTypes)(e.type),schemaType:(0,dp.getJSONTypes)(e.schemaType)}};e.before?qF.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 qF(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 _F(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=L0(e)),t.validateSchema=this.compile(e,!0))}var HF={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function L0(t){return{anyOf:[t,HF]}}});var V0=v(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});var WF={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};tv.default=WF});var Q0=v(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.callRef=lr.getValidate=void 0;var RF=ol(),J0=Ui(),pi=se(),As=$t(),K0=sp(),hp=be(),IF={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:c}=r;if((n==="#"||n==="#/")&&a===c.baseId)return p();let u=K0.resolveRef.call(l,c,a,n);if(u===void 0)throw new RF.default(i.opts.uriResolver,a,n);if(u instanceof K0.SchemaEnv)return h(u);return g(u);function p(){if(r===c)return gp(t,s,r,r.$async);let d=e.scopeValue("root",{ref:c});return gp(t,(0,pi._)`${d}.validate`,c,c.$async)}function h(d){let m=Z0(t,d);gp(t,m,d,d.$async)}function g(d){let m=e.scopeValue("schema",o.code.source===!0?{ref:d,code:(0,pi.stringify)(d)}:{ref:d}),w=e.name("valid"),f=t.subschema({schema:d,dataTypes:[],schemaPath:pi.nil,topSchemaRef:m,errSchemaPath:n},w);t.mergeEvaluated(f),t.ok(w)}}};function Z0(t,e){let{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,pi._)`${n.scopeValue("wrapper",{ref:e})}.validate`}lr.getValidate=Z0;function gp(t,e,n,i){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,c=l.passContext?As.default.this:pi.nil;i?u():p();function u(){if(!o.$async)throw new Error("async schema referenced by sync schema");let d=a.let("valid");a.try(()=>{a.code((0,pi._)`await ${(0,J0.callValidateCode)(t,e,c)}`),g(e),s||a.assign(d,!0)},m=>{a.if((0,pi._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),h(m),s||a.assign(d,!1)}),t.ok(d)}function p(){t.result((0,J0.callValidateCode)(t,e,c),()=>g(e),()=>h(e))}function h(d){let m=(0,pi._)`${d}.errors`;a.assign(As.default.vErrors,(0,pi._)`${As.default.vErrors} === null ? ${m} : ${As.default.vErrors}.concat(${m})`),a.assign(As.default.errors,(0,pi._)`${As.default.vErrors}.length`)}function g(d){var m;if(!r.opts.unevaluated)return;let w=(m=n?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(w&&!w.dynamicProps)w.props!==void 0&&(r.props=hp.mergeEvaluated.props(a,w.props,r.props));else{let f=a.var("props",(0,pi._)`${d}.evaluated.props`);r.props=hp.mergeEvaluated.props(a,f,r.props,pi.Name)}if(r.items!==!0)if(w&&!w.dynamicItems)w.items!==void 0&&(r.items=hp.mergeEvaluated.items(a,w.items,r.items));else{let f=a.var("items",(0,pi._)`${d}.evaluated.items`);r.items=hp.mergeEvaluated.items(a,f,r.items,pi.Name)}}}lr.callRef=gp;lr.default=IF});var Y0=v(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var zF=V0(),DF=Q0(),GF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",zF.default,DF.default];av.default=GF});var X0=v(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});var mp=se(),ma=mp.operators,fp={maximum:{okStr:"<=",ok:ma.LTE,fail:ma.GT},minimum:{okStr:">=",ok:ma.GTE,fail:ma.LT},exclusiveMaximum:{okStr:"<",ok:ma.LT,fail:ma.GTE},exclusiveMinimum:{okStr:">",ok:ma.GT,fail:ma.LTE}},NF={message:({keyword:t,schemaCode:e})=>(0,mp.str)`must be ${fp[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,mp._)`{comparison: ${fp[t].okStr}, limit: ${e}}`},UF={keyword:Object.keys(fp),type:"number",schemaType:"number",$data:!0,error:NF,code(t){let{keyword:e,data:n,schemaCode:i}=t;t.fail$data((0,mp._)`${n} ${fp[e].fail} ${i} || isNaN(${n})`)}};rv.default=UF});var ek=v(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});var hl=se(),$F={message:({schemaCode:t})=>(0,hl.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,hl._)`{multipleOf: ${t}}`},BF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:$F,code(t){let{gen:e,data:n,schemaCode:i,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,hl._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,hl._)`${s} !== parseInt(${s})`;t.fail$data((0,hl._)`(${i} === 0 || (${s} = ${n}/${i}, ${o}))`)}};sv.default=BF});var ik=v(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});function nk(t){let e=t.length,n=0,i=0,a;for(;i=55296&&a<=56319&&i{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});var ur=se(),LF=be(),FF=ik(),VF={message({keyword:t,schemaCode:e}){let n=t==="maxLength"?"more":"fewer";return(0,ur.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>(0,ur._)`{limit: ${t}}`},JF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:VF,code(t){let{keyword:e,data:n,schemaCode:i,it:a}=t,r=e==="maxLength"?ur.operators.GT:ur.operators.LT,s=a.opts.unicode===!1?(0,ur._)`${n}.length`:(0,ur._)`${(0,LF.useFunc)(t.gen,FF.default)}(${n})`;t.fail$data((0,ur._)`${s} ${r} ${i}`)}};lv.default=JF});var ak=v(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});var KF=Ui(),ZF=be(),bs=se(),QF={message:({schemaCode:t})=>(0,bs.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,bs._)`{pattern: ${t}}`},YF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:QF,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,c=l.code==="new RegExp"?(0,bs._)`new RegExp`:(0,ZF.useFunc)(e,l),u=e.let("valid");e.try(()=>e.assign(u,(0,bs._)`${c}(${r}, ${o}).test(${n})`),()=>e.assign(u,!1)),t.fail$data((0,bs._)`!${u}`)}else{let l=(0,KF.usePattern)(t,a);t.fail$data((0,bs._)`!${l}.test(${n})`)}}};uv.default=YF});var rk=v(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});var gl=se(),XF={message({keyword:t,schemaCode:e}){let n=t==="maxProperties"?"more":"fewer";return(0,gl.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,gl._)`{limit: ${t}}`},e5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:XF,code(t){let{keyword:e,data:n,schemaCode:i}=t,a=e==="maxProperties"?gl.operators.GT:gl.operators.LT;t.fail$data((0,gl._)`Object.keys(${n}).length ${a} ${i}`)}};cv.default=e5});var sk=v(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});var ml=Ui(),fl=se(),n5=be(),i5={message:({params:{missingProperty:t}})=>(0,fl.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,fl._)`{missingProperty: ${t}}`},t5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:i5,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?c():u(),o.strictRequired){let g=t.parentSchema.properties,{definedProperties:d}=t.it;for(let m of n)if(g?.[m]===void 0&&!d.has(m)){let w=s.schemaEnv.baseId+s.errSchemaPath,f=`required property "${m}" is not defined at "${w}" (strictRequired)`;(0,n5.checkStrictMode)(s,f,s.opts.strictRequired)}}function c(){if(l||r)t.block$data(fl.nil,p);else for(let g of n)(0,ml.checkReportMissingProp)(t,g)}function u(){let g=e.let("missing");if(l||r){let d=e.let("valid",!0);t.block$data(d,()=>h(g,d)),t.ok(d)}else e.if((0,ml.checkMissingProp)(t,n,g)),(0,ml.reportMissingProp)(t,g),e.else()}function p(){e.forOf("prop",i,g=>{t.setParams({missingProperty:g}),e.if((0,ml.noPropertyInData)(e,a,g,o.ownProperties),()=>t.error())})}function h(g,d){t.setParams({missingProperty:g}),e.forOf(g,i,()=>{e.assign(d,(0,ml.propertyInData)(e,a,g,o.ownProperties)),e.if((0,fl.not)(d),()=>{t.error(),e.break()})},fl.nil)}}};pv.default=t5});var ok=v(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});var wl=se(),a5={message({keyword:t,schemaCode:e}){let n=t==="maxItems"?"more":"fewer";return(0,wl.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,wl._)`{limit: ${t}}`},r5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:a5,code(t){let{keyword:e,data:n,schemaCode:i}=t,a=e==="maxItems"?wl.operators.GT:wl.operators.LT;t.fail$data((0,wl._)`${n}.length ${a} ${i}`)}};dv.default=r5});var wp=v(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});var lk=Mw();lk.code='require("ajv/dist/runtime/equal").default';hv.default=lk});var uk=v(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var gv=il(),_n=se(),s5=be(),o5=wp(),l5={message:({params:{i:t,j:e}})=>(0,_n.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,_n._)`{i: ${t}, j: ${e}}`},u5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:l5,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"),c=r.items?(0,gv.getSchemaTypes)(r.items):[];t.block$data(l,u,(0,_n._)`${s} === false`),t.ok(l);function u(){let d=e.let("i",(0,_n._)`${n}.length`),m=e.let("j");t.setParams({i:d,j:m}),e.assign(l,!0),e.if((0,_n._)`${d} > 1`,()=>(p()?h:g)(d,m))}function p(){return c.length>0&&!c.some(d=>d==="object"||d==="array")}function h(d,m){let w=e.name("item"),f=(0,gv.checkDataTypes)(c,w,o.opts.strictNumbers,gv.DataType.Wrong),A=e.const("indices",(0,_n._)`{}`);e.for((0,_n._)`;${d}--;`,()=>{e.let(w,(0,_n._)`${n}[${d}]`),e.if(f,(0,_n._)`continue`),c.length>1&&e.if((0,_n._)`typeof ${w} == "string"`,(0,_n._)`${w} += "_"`),e.if((0,_n._)`typeof ${A}[${w}] == "number"`,()=>{e.assign(m,(0,_n._)`${A}[${w}]`),t.error(),e.assign(l,!1).break()}).code((0,_n._)`${A}[${w}] = ${d}`)})}function g(d,m){let w=(0,s5.useFunc)(e,o5.default),f=e.name("outer");e.label(f).for((0,_n._)`;${d}--;`,()=>e.for((0,_n._)`${m} = ${d}; ${m}--;`,()=>e.if((0,_n._)`${w}(${n}[${d}], ${n}[${m}])`,()=>{t.error(),e.assign(l,!1).break(f)})))}}};mv.default=u5});var ck=v(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});var fv=se(),c5=be(),p5=wp(),d5={message:"must be equal to constant",params:({schemaCode:t})=>(0,fv._)`{allowedValue: ${t}}`},h5={keyword:"const",$data:!0,error:d5,code(t){let{gen:e,data:n,$data:i,schemaCode:a,schema:r}=t;i||r&&typeof r=="object"?t.fail$data((0,fv._)`!${(0,c5.useFunc)(e,p5.default)}(${n}, ${a})`):t.fail((0,fv._)`${r} !== ${n}`)}};wv.default=h5});var pk=v(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var vl=se(),g5=be(),m5=wp(),f5={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,vl._)`{allowedValues: ${t}}`},w5={keyword:"enum",schemaType:"array",$data:!0,error:f5,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,c=()=>l??(l=(0,g5.useFunc)(e,m5.default)),u;if(o||i)u=e.let("valid"),t.block$data(u,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let g=e.const("vSchema",r);u=(0,vl.or)(...a.map((d,m)=>h(g,m)))}t.pass(u);function p(){e.assign(u,!1),e.forOf("v",r,g=>e.if((0,vl._)`${c()}(${n}, ${g})`,()=>e.assign(u,!0).break()))}function h(g,d){let m=a[d];return typeof m=="object"&&m!==null?(0,vl._)`${c()}(${n}, ${g}[${d}])`:(0,vl._)`${n} === ${m}`}}};vv.default=w5});var dk=v(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});var v5=X0(),C5=ek(),A5=tk(),b5=ak(),x5=rk(),y5=sk(),P5=ok(),j5=uk(),S5=ck(),O5=pk(),T5=[v5.default,C5.default,A5.default,b5.default,x5.default,y5.default,P5.default,j5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},S5.default,O5.default];Cv.default=T5});var bv=v(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.validateAdditionalItems=void 0;var cr=se(),Av=be(),k5={message:({params:{len:t}})=>(0,cr.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,cr._)`{limit: ${t}}`},M5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:k5,code(t){let{parentSchema:e,it:n}=t,{items:i}=e;if(!Array.isArray(i)){(0,Av.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}hk(t,i)}};function hk(t,e){let{gen:n,schema:i,data:a,keyword:r,it:s}=t;s.items=!0;let o=n.const("len",(0,cr._)`${a}.length`);if(i===!1)t.setParams({len:e.length}),t.pass((0,cr._)`${o} <= ${e.length}`);else if(typeof i=="object"&&!(0,Av.alwaysValidSchema)(s,i)){let c=n.var("valid",(0,cr._)`${o} <= ${e.length}`);n.if((0,cr.not)(c),()=>l(c)),t.ok(c)}function l(c){n.forRange("i",e.length,o,u=>{t.subschema({keyword:r,dataProp:u,dataPropType:Av.Type.Num},c),s.allErrors||n.if((0,cr.not)(c),()=>n.break())})}}Cl.validateAdditionalItems=hk;Cl.default=M5});var xv=v(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.validateTuple=void 0;var gk=se(),vp=be(),E5=Ui(),q5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:n}=t;if(Array.isArray(e))return mk(t,"additionalItems",e);n.items=!0,!(0,vp.alwaysValidSchema)(n,e)&&t.ok((0,E5.validateArray)(t))}};function mk(t,e,n=t.schema){let{gen:i,parentSchema:a,data:r,keyword:s,it:o}=t;u(a),o.opts.unevaluated&&n.length&&o.items!==!0&&(o.items=vp.mergeEvaluated.items(i,n.length,o.items));let l=i.name("valid"),c=i.const("len",(0,gk._)`${r}.length`);n.forEach((p,h)=>{(0,vp.alwaysValidSchema)(o,p)||(i.if((0,gk._)`${c} > ${h}`,()=>t.subschema({keyword:s,schemaProp:h,dataProp:h},l)),t.ok(l))});function u(p){let{opts:h,errSchemaPath:g}=o,d=n.length,m=d===p.minItems&&(d===p.maxItems||p[e]===!1);if(h.strictTuples&&!m){let w=`"${s}" is ${d}-tuple, but minItems or maxItems/${e} are not specified or different at path "${g}"`;(0,vp.checkStrictMode)(o,w,h.strictTuples)}}}Al.validateTuple=mk;Al.default=q5});var fk=v(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});var _5=xv(),H5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,_5.validateTuple)(t,"items")};yv.default=H5});var vk=v(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});var wk=se(),W5=be(),R5=Ui(),I5=bv(),z5={message:({params:{len:t}})=>(0,wk.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,wk._)`{limit: ${t}}`},D5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:z5,code(t){let{schema:e,parentSchema:n,it:i}=t,{prefixItems:a}=n;i.items=!0,!(0,W5.alwaysValidSchema)(i,e)&&(a?(0,I5.validateAdditionalItems)(t,a):t.ok((0,R5.validateArray)(t)))}};Pv.default=D5});var Ck=v(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});var Bi=se(),Cp=be(),G5={message:({params:{min:t,max:e}})=>e===void 0?(0,Bi.str)`must contain at least ${t} valid item(s)`:(0,Bi.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Bi._)`{minContains: ${t}}`:(0,Bi._)`{minContains: ${t}, maxContains: ${e}}`},N5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:G5,code(t){let{gen:e,schema:n,parentSchema:i,data:a,it:r}=t,s,o,{minContains:l,maxContains:c}=i;r.opts.next?(s=l===void 0?1:l,o=c):s=1;let u=e.const("len",(0,Bi._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,Cp.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,Cp.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Cp.alwaysValidSchema)(r,n)){let m=(0,Bi._)`${u} >= ${s}`;o!==void 0&&(m=(0,Bi._)`${m} && ${u} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?g(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,Bi._)`${a}.length > 0`,h)):(e.let(p,!1),h()),t.result(p,()=>t.reset());function h(){let m=e.name("_valid"),w=e.let("count",0);g(m,()=>e.if(m,()=>d(w)))}function g(m,w){e.forRange("i",0,u,f=>{t.subschema({keyword:"contains",dataProp:f,dataPropType:Cp.Type.Num,compositeRule:!0},m),w()})}function d(m){e.code((0,Bi._)`${m}++`),o===void 0?e.if((0,Bi._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,Bi._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,Bi._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};jv.default=N5});var xk=v(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.validateSchemaDeps=xt.validatePropertyDeps=xt.error=void 0;var Sv=se(),U5=be(),bl=Ui();xt.error={message:({params:{property:t,depsCount:e,deps:n}})=>{let i=e===1?"property":"properties";return(0,Sv.str)`must have ${i} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:i}})=>(0,Sv._)`{property: ${t}, + || ${s} === "boolean" || ${a} === null`).assign(o,(0,ae._)`[${a}]`)}}}function dL({gen:t,parentData:e,parentDataProperty:n},i){t.if((0,ae._)`${e} !== undefined`,()=>t.assign((0,ae._)`${e}[${n}]`,i))}function Ow(t,e,n,i=As.Correct){let a=i===As.Correct?ae.operators.EQ:ae.operators.NEQ,r;switch(t){case"null":return(0,ae._)`${e} ${a} null`;case"array":r=(0,ae._)`Array.isArray(${e})`;break;case"object":r=(0,ae._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,ae._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,ae._)`typeof ${e} ${a} ${t}`}return i===As.Correct?r:(0,ae.not)(r);function s(o=ae.nil){return(0,ae.and)((0,ae._)`typeof ${e} == "number"`,o,n?(0,ae._)`isFinite(${e})`:ae.nil)}}Gn.checkDataType=Ow;function Tw(t,e,n,i){if(t.length===1)return Ow(t[0],e,n,i);let a,r=(0,RT.toHash)(t);if(r.array&&r.object){let s=(0,ae._)`typeof ${e} != "object"`;a=r.null?s:(0,ae._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=ae.nil;r.number&&delete r.integer;for(let s in r)a=(0,ae.and)(a,Ow(s,e,n,i));return a}Gn.checkDataTypes=Tw;var hL={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,ae._)`{type: ${t}}`:(0,ae._)`{type: ${e}}`};function kw(t){let e=gL(t);(0,oL.reportError)(e,hL)}Gn.reportTypeError=kw;function gL(t){let{gen:e,data:n,schema:i}=t,a=(0,RT.schemaRefOrVal)(t,i,"type");return{gen:e,keyword:"type",data:n,schema:i.type,schemaCode:a,schemaValue:a,parentSchema:i,params:{},it:t}}});var GT=v(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.assignDefaults=void 0;var bs=se(),mL=be();function fL(t,e){let{properties:n,items:i}=t.schema;if(e==="object"&&n)for(let a in n)DT(t,a,n[a].default);else e==="array"&&Array.isArray(i)&&i.forEach((a,r)=>DT(t,r,a.default))}ap.assignDefaults=fL;function DT(t,e,n){let{gen:i,compositeRule:a,data:r,opts:s}=t;if(n===void 0)return;let o=(0,bs._)`${r}${(0,bs.getProperty)(e)}`;if(a){(0,mL.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,bs._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,bs._)`${l} || ${o} === null || ${o} === ""`),i.if(l,(0,bs._)`${o} = ${(0,bs.stringify)(n)}`)}});var Bi=v(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.validateUnion=We.validateArray=We.usePattern=We.callValidateCode=We.schemaProperties=We.allSchemaProperties=We.noPropertyInData=We.propertyInData=We.isOwnProperty=We.hasPropFunc=We.reportMissingProp=We.checkMissingProp=We.checkReportMissingProp=void 0;var Be=se(),Mw=be(),ha=Bt(),wL=be();function vL(t,e){let{gen:n,data:i,it:a}=t;n.if(qw(n,i,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Be._)`${e}`},!0),t.error()})}We.checkReportMissingProp=vL;function CL({gen:t,data:e,it:{opts:n}},i,a){return(0,Be.or)(...i.map(r=>(0,Be.and)(qw(t,e,r,n.ownProperties),(0,Be._)`${a} = ${r}`)))}We.checkMissingProp=CL;function AL(t,e){t.setParams({missingProperty:e},!0),t.error()}We.reportMissingProp=AL;function NT(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Be._)`Object.prototype.hasOwnProperty`})}We.hasPropFunc=NT;function Ew(t,e,n){return(0,Be._)`${NT(t)}.call(${e}, ${n})`}We.isOwnProperty=Ew;function bL(t,e,n,i){let a=(0,Be._)`${e}${(0,Be.getProperty)(n)} !== undefined`;return i?(0,Be._)`${a} && ${Ew(t,e,n)}`:a}We.propertyInData=bL;function qw(t,e,n,i){let a=(0,Be._)`${e}${(0,Be.getProperty)(n)} === undefined`;return i?(0,Be.or)(a,(0,Be.not)(Ew(t,e,n))):a}We.noPropertyInData=qw;function UT(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}We.allSchemaProperties=UT;function xL(t,e){return UT(e).filter(n=>!(0,Mw.alwaysValidSchema)(t,e[n]))}We.schemaProperties=xL;function yL({schemaCode:t,data:e,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:r},it:s},o,l,c){let u=c?(0,Be._)`${t}, ${e}, ${i}${a}`:e,p=[[ha.default.instancePath,(0,Be.strConcat)(ha.default.instancePath,r)],[ha.default.parentData,s.parentData],[ha.default.parentDataProperty,s.parentDataProperty],[ha.default.rootData,ha.default.rootData]];s.opts.dynamicRef&&p.push([ha.default.dynamicAnchors,ha.default.dynamicAnchors]);let h=(0,Be._)`${u}, ${n.object(...p)}`;return l!==Be.nil?(0,Be._)`${o}.call(${l}, ${h})`:(0,Be._)`${o}(${h})`}We.callValidateCode=yL;var PL=(0,Be._)`new RegExp`;function jL({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,Be._)`${a.code==="new RegExp"?PL:(0,wL.useFunc)(t,a)}(${n}, ${i})`})}We.usePattern=jL;function SL(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,Be._)`${n}.length`);e.forRange("i",0,l,c=>{t.subschema({keyword:i,dataProp:c,dataPropType:Mw.Type.Num},r),e.if((0,Be.not)(r),o)})}}We.validateArray=SL;function OL(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,Mw.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>n.forEach((l,c)=>{let u=t.subschema({keyword:i,schemaProp:c,compositeRule:!0},o);e.assign(s,(0,Be._)`${s} || ${o}`),t.mergeValidEvaluated(u,o)||e.if((0,Be.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}We.validateUnion=OL});var LT=v(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.validateKeywordUsage=bt.validSchemaType=bt.funcKeywordCode=bt.macroKeywordCode=void 0;var Kn=se(),ur=Bt(),TL=Bi(),kL=rl();function ML(t,e){let{gen:n,keyword:i,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=BT(n,i,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let c=n.name("valid");t.subschema({schema:o,schemaPath:Kn.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},c),t.pass(c,()=>t.error(!0))}bt.macroKeywordCode=ML;function EL(t,e){var n;let{gen:i,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;_L(l,e);let c=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,u=BT(i,a,c),p=i.let("valid");t.block$data(p,h),t.ok((n=e.valid)!==null&&n!==void 0?n:p);function h(){if(e.errors===!1)m(),e.modifying&&$T(t),w(()=>t.error());else{let f=e.async?g():d();e.modifying&&$T(t),w(()=>qL(t,f))}}function g(){let f=i.let("ruleErrs",null);return i.try(()=>m((0,Kn._)`await `),A=>i.assign(p,!1).if((0,Kn._)`${A} instanceof ${l.ValidationError}`,()=>i.assign(f,(0,Kn._)`${A}.errors`),()=>i.throw(A))),f}function d(){let f=(0,Kn._)`${u}.errors`;return i.assign(f,null),m(Kn.nil),f}function m(f=e.async?(0,Kn._)`await `:Kn.nil){let A=l.opts.passContext?ur.default.this:ur.default.self,b=!("compile"in e&&!o||e.schema===!1);i.assign(p,(0,Kn._)`${f}${(0,TL.callValidateCode)(t,u,A,b)}`,e.modifying)}function w(f){var A;i.if((0,Kn.not)((A=e.valid)!==null&&A!==void 0?A:p),f)}}bt.funcKeywordCode=EL;function $T(t){let{gen:e,data:n,it:i}=t;e.if(i.parentData,()=>e.assign(n,(0,Kn._)`${i.parentData}[${i.parentDataProperty}]`))}function qL(t,e){let{gen:n}=t;n.if((0,Kn._)`Array.isArray(${e})`,()=>{n.assign(ur.default.vErrors,(0,Kn._)`${ur.default.vErrors} === null ? ${e} : ${ur.default.vErrors}.concat(${e})`).assign(ur.default.errors,(0,Kn._)`${ur.default.vErrors}.length`),(0,kL.extendErrors)(t)},()=>t.error())}function _L({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function BT(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,Kn.stringify)(n)})}function HL(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")}bt.validSchemaType=HL;function WL({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)}}bt.validateKeywordUsage=WL});var VT=v(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.extendSubschemaMode=ga.extendSubschemaData=ga.getSubschema=void 0;var xt=se(),FT=be();function RL(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,xt._)`${t.schemaPath}${(0,xt.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[n],schemaPath:(0,xt._)`${t.schemaPath}${(0,xt.getProperty)(e)}${(0,xt.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,FT.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')}ga.getSubschema=RL;function IL(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:c,dataPathArr:u,opts:p}=e,h=o.let("data",(0,xt._)`${e.data}${(0,xt.getProperty)(n)}`,!0);l(h),t.errorPath=(0,xt.str)`${c}${(0,FT.getErrorPath)(n,i,p.jsPropertySyntax)}`,t.parentDataProperty=(0,xt._)`${n}`,t.dataPathArr=[...u,t.parentDataProperty]}if(a!==void 0){let c=a instanceof xt.Name?a:o.let("data",a,!0);l(c),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(c){t.data=c,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,c]}}ga.extendSubschemaData=IL;function zL(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}ga.extendSubschemaMode=zL});var _w=v((Nle,JT)=>{"use strict";JT.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 ZT=v((Ule,KT)=>{"use strict";var ma=KT.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(){};rp(e,i,a,t,"",t)};ma.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ma.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ma.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ma.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 rp(t,e,n,i,a,r,s,o,l,c){if(i&&typeof i=="object"&&!Array.isArray(i)){e(i,a,r,s,o,l,c);for(var u in i){var p=i[u];if(Array.isArray(p)){if(u in ma.arrayKeywords)for(var h=0;h{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.getSchemaRefs=ci.resolveUrl=ci.normalizeId=ci._getFullPath=ci.getFullPath=ci.inlineRef=void 0;var GL=be(),NL=_w(),UL=ZT(),$L=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function BL(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Hw(t):e?QT(t)<=e:!1}ci.inlineRef=BL;var LL=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hw(t){for(let e in t){if(LL.has(e))return!0;let n=t[e];if(Array.isArray(n)&&n.some(Hw)||typeof n=="object"&&Hw(n))return!0}return!1}function QT(t){let e=0;for(let n in t){if(n==="$ref")return 1/0;if(e++,!$L.has(n)&&(typeof t[n]=="object"&&(0,GL.eachItem)(t[n],i=>e+=QT(i)),e===1/0))return 1/0}return e}function XT(t,e="",n){n!==!1&&(e=xs(e));let i=t.parse(e);return YT(t,i)}ci.getFullPath=XT;function YT(t,e){return t.serialize(e).split("#")[0]+"#"}ci._getFullPath=YT;var FL=/#\/?$/;function xs(t){return t?t.replace(FL,""):""}ci.normalizeId=xs;function VL(t,e,n){return n=xs(n),t.resolve(e,n)}ci.resolveUrl=VL;var JL=/^[a-z_][-a-z0-9._]*$/i;function KL(t,e){if(typeof t=="boolean")return{};let{schemaId:n,uriResolver:i}=this.opts,a=xs(t[n]||e),r={"":a},s=XT(i,a,!1),o={},l=new Set;return UL(t,{allKeys:!0},(p,h,g,d)=>{if(d===void 0)return;let m=s+h,w=r[d];typeof p[n]=="string"&&(w=f.call(this,p[n])),A.call(this,p.$anchor),A.call(this,p.$dynamicAnchor),r[h]=w;function f(b){let x=this.opts.uriResolver.resolve;if(b=xs(w?x(w,b):b),l.has(b))throw u(b);l.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?c(p,S.schema,b):b!==xs(m)&&(b[0]==="#"?(c(p,o[b],b),o[b]=p):this.refs[b]=m),b}function A(b){if(typeof b=="string"){if(!JL.test(b))throw new Error(`invalid anchor "${b}"`);f.call(this,`#${b}`)}}}),o;function c(p,h,g){if(h!==void 0&&!NL(p,h))throw u(g)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}ci.getSchemaRefs=KL});var cl=v(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.getData=fa.KeywordCxt=fa.validateFunctionCode=void 0;var a0=_T(),e0=sl(),Rw=Sw(),sp=sl(),ZL=GT(),ul=LT(),Ww=VT(),F=se(),ie=Bt(),QL=ol(),Lt=be(),ll=rl();function XL(t){if(o0(t)&&(l0(t),s0(t))){n4(t);return}r0(t,()=>(0,a0.topBoolOrEmptySchema)(t))}fa.validateFunctionCode=XL;function r0({gen:t,validateName:e,schema:n,schemaEnv:i,opts:a},r){a.code.es5?t.func(e,(0,F._)`${ie.default.data}, ${ie.default.valCxt}`,i.$async,()=>{t.code((0,F._)`"use strict"; ${n0(n,a)}`),e4(t,a),t.code(r)}):t.func(e,(0,F._)`${ie.default.data}, ${YL(a)}`,i.$async,()=>t.code(n0(n,a)).code(r))}function YL(t){return(0,F._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${t.dynamicRef?(0,F._)`, ${ie.default.dynamicAnchors}={}`:F.nil}}={}`}function e4(t,e){t.if(ie.default.valCxt,()=>{t.var(ie.default.instancePath,(0,F._)`${ie.default.valCxt}.${ie.default.instancePath}`),t.var(ie.default.parentData,(0,F._)`${ie.default.valCxt}.${ie.default.parentData}`),t.var(ie.default.parentDataProperty,(0,F._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),t.var(ie.default.rootData,(0,F._)`${ie.default.valCxt}.${ie.default.rootData}`),e.dynamicRef&&t.var(ie.default.dynamicAnchors,(0,F._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{t.var(ie.default.instancePath,(0,F._)`""`),t.var(ie.default.parentData,(0,F._)`undefined`),t.var(ie.default.parentDataProperty,(0,F._)`undefined`),t.var(ie.default.rootData,ie.default.data),e.dynamicRef&&t.var(ie.default.dynamicAnchors,(0,F._)`{}`)})}function n4(t){let{schema:e,opts:n,gen:i}=t;r0(t,()=>{n.$comment&&e.$comment&&c0(t),s4(t),i.let(ie.default.vErrors,null),i.let(ie.default.errors,0),n.unevaluated&&i4(t),u0(t),u4(t)})}function i4(t){let{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,F._)`${n}.evaluated`),e.if((0,F._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,F._)`${t.evaluated}.props`,(0,F._)`undefined`)),e.if((0,F._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,F._)`${t.evaluated}.items`,(0,F._)`undefined`))}function n0(t,e){let n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,F._)`/*# sourceURL=${n} */`:F.nil}function t4(t,e){if(o0(t)&&(l0(t),s0(t))){a4(t,e);return}(0,a0.boolOrEmptySchema)(t,e)}function s0({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 o0(t){return typeof t.schema!="boolean"}function a4(t,e){let{schema:n,gen:i,opts:a}=t;a.$comment&&n.$comment&&c0(t),o4(t),l4(t);let r=i.const("_errs",ie.default.errors);u0(t,r),i.var(e,(0,F._)`${r} === ${ie.default.errors}`)}function l0(t){(0,Lt.checkUnknownRules)(t),r4(t)}function u0(t,e){if(t.opts.jtd)return i0(t,[],!1,e);let n=(0,e0.getSchemaTypes)(t.schema),i=(0,e0.coerceAndCheckDataType)(t,n);i0(t,n,!i,e)}function r4(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 s4(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 o4(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,QL.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function l4(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function c0({gen:t,schemaEnv:e,schema:n,errSchemaPath:i,opts:a}){let r=n.$comment;if(a.$comment===!0)t.code((0,F._)`${ie.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,F.str)`${i}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,F._)`${ie.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function u4(t){let{gen:e,schemaEnv:n,validateName:i,ValidationError:a,opts:r}=t;n.$async?e.if((0,F._)`${ie.default.errors} === 0`,()=>e.return(ie.default.data),()=>e.throw((0,F._)`new ${a}(${ie.default.vErrors})`)):(e.assign((0,F._)`${i}.errors`,ie.default.vErrors),r.unevaluated&&c4(t),e.return((0,F._)`${ie.default.errors} === 0`))}function c4({gen:t,evaluated:e,props:n,items:i}){n instanceof F.Name&&t.assign((0,F._)`${e}.props`,n),i instanceof F.Name&&t.assign((0,F._)`${e}.items`,i)}function i0(t,e,n,i){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:c}=t,{RULES:u}=c;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,Lt.schemaHasRulesButRef)(r,u))){a.block(()=>d0(t,"$ref",u.all.$ref.definition));return}l.jtd||p4(t,e),a.block(()=>{for(let h of u.rules)p(h);p(u.post)});function p(h){(0,Rw.shouldUseGroup)(r,h)&&(h.type?(a.if((0,sp.checkDataType)(h.type,s,l.strictNumbers)),t0(t,h),e.length===1&&e[0]===h.type&&n&&(a.else(),(0,sp.reportTypeError)(t)),a.endIf()):t0(t,h),o||a.if((0,F._)`${ie.default.errors} === ${i||0}`))}}function t0(t,e){let{gen:n,schema:i,opts:{useDefaults:a}}=t;a&&(0,ZL.assignDefaults)(t,e.type),n.block(()=>{for(let r of e.rules)(0,Rw.shouldUseRule)(i,r)&&d0(t,r.keyword,r.definition,e.type)})}function p4(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(d4(t,e),t.opts.allowUnionTypes||h4(t,e),g4(t,t.dataTypes))}function d4(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{p0(t.dataTypes,n)||Iw(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),f4(t,e)}}function h4(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Iw(t,"use allowUnionTypes to allow union type keyword")}function g4(t,e){let n=t.self.RULES.all;for(let i in n){let a=n[i];if(typeof a=="object"&&(0,Rw.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>m4(e,s))&&Iw(t,`missing type "${r.join(",")}" for keyword "${i}"`)}}}function m4(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function p0(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function f4(t,e){let n=[];for(let i of t.dataTypes)p0(e,i)?n.push(i):e.includes("integer")&&i==="number"&&n.push("integer");t.dataTypes=n}function Iw(t,e){let n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,Lt.checkStrictMode)(t,e,t.opts.strictTypes)}var op=class{constructor(e,n,i){if((0,ul.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",h0(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,ul.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",ie.default.errors))}result(e,n,i){this.failResult((0,F.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,F.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,F._)`${n} !== undefined && (${(0,F.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?ll.reportExtraError:ll.reportError)(this,this.def.error,n)}$dataError(){(0,ll.reportError)(this,this.def.$dataError||ll.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ll.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=F.nil){this.gen.block(()=>{this.check$data(e,i),n()})}check$data(e=F.nil,n=F.nil){if(!this.$data)return;let{gen:i,schemaCode:a,schemaType:r,def:s}=this;i.if((0,F.or)((0,F._)`${a} === undefined`,n)),e!==F.nil&&i.assign(e,!0),(r.length||s.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),e!==F.nil&&i.assign(e,!1)),i.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:i,def:a,it:r}=this;return(0,F.or)(s(),o());function s(){if(i.length){if(!(n instanceof F.Name))throw new Error("ajv implementation error");let l=Array.isArray(i)?i:[i];return(0,F._)`${(0,sp.checkDataTypes)(l,n,r.opts.strictNumbers,sp.DataType.Wrong)}`}return F.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,F._)`!${l}(${n})`}return F.nil}}subschema(e,n){let i=(0,Ww.getSubschema)(this.it,e);(0,Ww.extendSubschemaData)(i,this.it,e),(0,Ww.extendSubschemaMode)(i,e);let a={...this.it,...i,items:void 0,props:void 0};return t4(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,F.Name)),!0}};fa.KeywordCxt=op;function d0(t,e,n,i){let a=new op(t,n,e);"code"in n?n.code(a,i):a.$data&&n.validate?(0,ul.funcKeywordCode)(a,n):"macro"in n?(0,ul.macroKeywordCode)(a,n):(n.compile||n.validate)&&(0,ul.funcKeywordCode)(a,n)}var w4=/^\/(?:[^~]|~0|~1)*$/,v4=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h0(t,{dataLevel:e,dataNames:n,dataPathArr:i}){let a,r;if(t==="")return ie.default.rootData;if(t[0]==="/"){if(!w4.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ie.default.rootData}else{let c=v4.exec(t);if(!c)throw new Error(`Invalid JSON-pointer: ${t}`);let u=+c[1];if(a=c[2],a==="#"){if(u>=e)throw new Error(l("property/index",u));return i[e-u]}if(u>e)throw new Error(l("data",u));if(r=n[e-u],!a)return r}let s=r,o=a.split("/");for(let c of o)c&&(r=(0,F._)`${r}${(0,F.getProperty)((0,Lt.unescapeJsonPointer)(c))}`,s=(0,F._)`${s} && ${r}`);return s;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${e}`}}fa.getData=h0});var lp=v(Dw=>{"use strict";Object.defineProperty(Dw,"__esModule",{value:!0});var zw=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Dw.default=zw});var pl=v(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0});var Gw=ol(),Nw=class extends Error{constructor(e,n,i,a){super(a||`can't resolve reference ${i} from id ${n}`),this.missingRef=(0,Gw.resolveUrl)(e,n,i),this.missingSchema=(0,Gw.normalizeId)((0,Gw.getFullPath)(e,this.missingRef))}};Uw.default=Nw});var cp=v(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.resolveSchema=Li.getCompilingSchema=Li.resolveRef=Li.compileSchema=Li.SchemaEnv=void 0;var rt=se(),C4=lp(),cr=Bt(),st=ol(),g0=be(),A4=cl(),ys=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,st.normalizeId)(i?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=i?.$async,this.refs={}}};Li.SchemaEnv=ys;function Bw(t){let e=m0.call(this,t);if(e)return e;let n=(0,st.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:i,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new rt.CodeGen(this.scope,{es5:i,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:C4.default,code:(0,rt._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let c={gen:s,allErrors:this.opts.allErrors,data:cr.default.data,parentData:cr.default.parentData,parentDataProperty:cr.default.parentDataProperty,dataNames:[cr.default.data],dataPathArr:[rt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,rt.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:rt.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,rt._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(t),(0,A4.validateFunctionCode)(c),s.optimize(this.opts.code.optimize);let p=s.toString();u=`${s.scopeRefs(cr.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,t));let g=new Function(`${cr.default.self}`,`${cr.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:g}),g.errors=null,g.schema=t.schema,g.schemaEnv=t,t.$async&&(g.$async=!0),this.opts.code.source===!0&&(g.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:d,items:m}=c;g.evaluated={props:d instanceof rt.Name?void 0:d,items:m instanceof rt.Name?void 0:m,dynamicProps:d instanceof rt.Name,dynamicItems:m instanceof rt.Name},g.source&&(g.source.evaluated=(0,rt.stringify)(g.evaluated))}return t.validate=g,t}catch(p){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(t)}}Li.compileSchema=Bw;function b4(t,e,n){var i;n=(0,st.resolveUrl)(this.opts.uriResolver,e,n);let a=t.refs[n];if(a)return a;let r=P4.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 ys({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[n]=x4.call(this,r)}Li.resolveRef=b4;function x4(t){return(0,st.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Bw.call(this,t)}function m0(t){for(let e of this._compilations)if(y4(e,t))return e}Li.getCompilingSchema=m0;function y4(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function P4(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||up.call(this,t,e)}function up(t,e){let n=this.opts.uriResolver.parse(e),i=(0,st._getFullPath)(this.opts.uriResolver,n),a=(0,st.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===a)return $w.call(this,n,t);let r=(0,st.normalizeId)(i),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=up.call(this,t,s);return typeof o?.schema!="object"?void 0:$w.call(this,n,o)}if(typeof s?.schema=="object"){if(s.validate||Bw.call(this,s),r===(0,st.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,c=o[l];return c&&(a=(0,st.resolveUrl)(this.opts.uriResolver,a,c)),new ys({schema:o,schemaId:l,root:t,baseId:a})}return $w.call(this,n,s)}}Li.resolveSchema=up;var j4=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $w(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,g0.unescapeFragment)(o)];if(l===void 0)return;n=l;let c=typeof n=="object"&&n[this.opts.schemaId];!j4.has(o)&&c&&(e=(0,st.resolveUrl)(this.opts.uriResolver,e,c))}let r;if(typeof n!="boolean"&&n.$ref&&!(0,g0.schemaHasRulesButRef)(n,this.RULES)){let o=(0,st.resolveUrl)(this.opts.uriResolver,e,n.$ref);r=up.call(this,i,o)}let{schemaId:s}=this.opts;if(r=r||new ys({schema:n,schemaId:s,root:i,baseId:e}),r.schema!==r.root.schema)return r}});var f0=v((Jle,S4)=>{S4.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 Zw=v((Kle,y0)=>{"use strict";var O4=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Fw=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),T4=RegExp.prototype.test.bind(/^\d*$/u),pr=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Vw=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),v0=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),Jw=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),k4=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),pi=new Array(256);{let t="0123456789ABCDEF";for(let e=0;e<256;e++)pi[e]="%"+t[e>>4]+t[e&15]}function Nn(t){return t<2048?pi[192|t>>6]+pi[128|t&63]:t<65536?pi[224|t>>12]+pi[128|t>>6&63]+pi[128|t&63]:pi[240|t>>18]+pi[128|t>>12&63]+pi[128|t>>6&63]+pi[128|t&63]}function M4(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 E4=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),q4=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),_4=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),H4=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function W4(t){if(t.length===0)return!1;for(let e=0;en&&(n=a,e=i)):(i=-1,a=0);if(n<2)return t.join(":");let r=t.slice(0,e).join(":"),s=t.slice(e+n).join(":");return r+"::"+s}function R4(t){let e=t.indexOf("::");if(e!==-1&&t.indexOf("::",e+1)!==-1)return;let n=e===-1?t.split(":"):t.slice(0,e).split(":"),i=e===-1?[]:t.slice(e+2).split(":");e!==-1&&(n.length===1&&n[0]===""&&(n.length=0),i.length===1&&i[0]===""&&(i.length=0));let a=n.concat(i),r=0;for(let o=0;o=8)return;let s=a.slice(0,n.length);for(let o=r;o<8;o++)s.push("0");for(let o=n.length;oD4[i])}function A0(t,e=!1){if(t.indexOf("%")===-1)return t;let n="";for(let i=0;i57343)e+=Nn(a);else if(a<=56319&&n+1=56320&&r<=57343?(e+=Nn(65536+(a-55296<<10)+(r-56320)),n++):e+=Nn(65533)}else e+=Nn(65533)}}return e}function $4(t,e=!1){let n="",i=e&&t[0]!=="/";for(let a=0;a57343)n+=Nn(s);else if(s<=56319&&a+1=56320&&o<=57343?(n+=Nn(65536+(s-55296<<10)+(o-56320)),a++):n+=Nn(65533)}else n+=Nn(65533)}}return n}function Kw(t,e){let n="";for(let i=0;i57343)n+=Nn(r);else if(r<=56319&&i+1=56320&&s<=57343?(n+=Nn(65536+(r-55296<<10)+(s-56320)),i++):n+=Nn(65533)}else n+=Nn(65533)}}return n}function b0(t){return Kw(t,k4)}function B4(t){return Kw(t,Jw)}function L4(t){return Kw(t,Jw)}function x0(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===42||t===43||t===45||t===46||t===47||t===64||t===95}function F4(t){let e="";for(let n=0;n57343)e+=Nn(a);else if(a<=56319&&n+1=56320&&r<=57343?(e+=Nn(65536+(a-55296<<10)+(r-56320)),n++):e+=Nn(65533)}else e+=Nn(65533)}}return e}function V4(t){let e="";for(let n=0;n{"use strict";var{isUUID:K4}=Zw(),Z4=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,Q4=["http","https","ws","wss","urn","urn:uuid"];function X4(t){return Q4.indexOf(t)!==-1}function Qw(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 P0(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function j0(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 Y4(t){return t.secure=Qw(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function eF(t){if((t.port===(Qw(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=t.resourceName.indexOf("?"),n=e===-1?t.resourceName:t.resourceName.slice(0,e);t.path=n&&n!=="/"?n:void 0,t.query=e===-1?void 0:t.resourceName.slice(e+1),t.resourceName=void 0}return t.fragment=void 0,t}function nF(t,e){if(!t.path)return t.error="URN can not be parsed",t;let n=t.path.match(Z4);if(n&&n[0]===t.path){let i=e.scheme||t.scheme||"urn";t.nid=n[1].toLowerCase(),t.nss=n[2];let a=`${i}:${e.nid||t.nid}`,r=Xw(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function iF(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=Xw(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 tF(t,e){let n=t;return n.uuid=n.nss,n.nss=void 0,!e.tolerant&&(!n.uuid||!K4(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function aF(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var S0={scheme:"http",domainHost:!0,parse:P0,serialize:j0},rF={scheme:"https",domainHost:S0.domainHost,parse:P0,serialize:j0},pp={scheme:"ws",domainHost:!0,parse:Y4,serialize:eF},sF={scheme:"wss",domainHost:pp.domainHost,parse:pp.parse,serialize:pp.serialize},oF={scheme:"urn",parse:nF,serialize:iF,skipNormalize:!0},lF={scheme:"urn:uuid",parse:tF,serialize:aF,skipNormalize:!0},dp={http:S0,https:rF,ws:pp,wss:sF,urn:oF,"urn:uuid":lF};Object.setPrototypeOf(dp,null);function Xw(t){return t&&(dp[t]||dp[t.toLowerCase()])||void 0}O0.exports={wsIsSecure:Qw,SCHEMES:dp,isValidSchemeName:X4,getSchemeHandler:Xw}});var N0=v((Qle,mp)=>{"use strict";var{normalizeIPv6:_0,removeDotSegments:hl,recomposeAuthority:uF,normalizePercentEncoding:Yw,normalizePathEncoding:cF,serializePathEncoding:k0,normalizeQueryFragmentEncoding:M0,encodeQuery:pF,encodeFragment:dF,reescapeHostDelimiters:hF,isIPv4:H0,nonSimpleDomain:gF}=Zw(),{SCHEMES:W0,getSchemeHandler:ev}=T0(),R0=/^[A-Za-z][A-Za-z0-9+.-]*$/u,I0="URI scheme is malformed.";function E0(t){let e=unescape(String(t));if(!R0.test(e))throw new TypeError(I0);return e}function mF(t,e){return typeof t=="string"?t=yF(t,e):typeof t=="object"&&(t=gp(dr(t,e),e)),t}function fF(t,e,n){let i=n?Object.assign({scheme:"null"},n):{scheme:"null"},{parsed:a,malformedAuthorityOrPort:r,malformedPercentEncoding:s,malformedSchemeSpecific:o,malformedHost:l,malformedScheme:c}=hp(t,i),{parsed:u,malformedAuthorityOrPort:p,malformedPercentEncoding:h,malformedSchemeSpecific:g,malformedHost:d,malformedScheme:m}=hp(e,i);if(r||p||s||h||o||g||l||d||c||m)throw new Error(a.error||u.error||"URI is malformed.");let w=z0(a,u,i,!0),f=ev(n&&n.scheme||w.scheme),A=w.host,b=A!==void 0&&A!==""&&(H0(A)||_0(A).isIPV6);D0(w,n||{},f,b);let x=A&&A.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(A);if(w.error&&!x)throw new Error(w.error);return i.skipEscape=!0,dr(w,i)}function z0(t,e,n,i){let a={};return i||(t=gp(dr(t,n),n),e=gp(dr(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=hl(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=hl(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=hl(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=hl(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 wF(t,e,n){let i=q0(t,n),a=q0(e,n);return i!==void 0&&a!==void 0&&i===a}function dr(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=[];n.scheme&&(n.scheme=E0(n.scheme));let r=ev(i.scheme||n.scheme);r&&r.serialize&&r.serialize(n,i);let s=n.userinfo!==void 0||n.host!==void 0||n.port!==void 0,o=!i.skipEscape&&n.scheme===void 0&&!s;n.path!==void 0&&(i.skipEscape?n.path=Yw(n.path):n.path=k0(n.path,o)),i.reference!=="suffix"&&n.scheme&&(n.scheme=E0(n.scheme),a.push(n.scheme,":"));let l=uF(n);if(l!==void 0&&(i.reference!=="suffix"&&a.push("//"),a.push(l),n.path&&n.path[0]!=="/"&&a.push("/")),n.path!==void 0){let c=n.path;!i.absolutePath&&(!r||!r.absolutePath)&&(c=hl(c)),o&&(c=k0(c,!0)),l===void 0&&c[0]==="/"&&c[1]==="/"&&(c="/%2F"+c.slice(2)),a.push(c)}return n.query!==void 0&&a.push("?",pF(n.query)),n.fragment!==void 0&&a.push("#",dF(n.fragment)),a.join("")}var vF=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,CF=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,AF=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function bF(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 dl(t){if(t===void 0)return!1;let e=t.indexOf("%");for(;e!==-1;){if(e+2>=t.length||!/^[\da-f]{2}$/iu.test(t.slice(e+1,e+3)))return!0;e=t.indexOf("%",e+3)}return!1}function nv(t){return t[0]==="["&&t[t.length-1]==="]"}function xF(t){let e=t[4];return dl(t[3])||e!==void 0&&!nv(e)&&dl(e)||dl(t[6])||dl(t[7])||dl(t[8])}function D0(t,e,n,i){if(!e.unicodeSupport&&(!n||!n.unicodeSupport)&&t.host&&!nv(t.host)&&(e.domainHost||n&&n.domainHost)&&i===!1&&gF(t.host))try{t.host=new URL("http://"+t.host).hostname}catch(a){return t.error=t.error||"Host's domain name can not be converted to ASCII: "+a,!0}return!1}function hp(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,s=!1,o=!1,l=!1,c=!1,u=!1;n.reference==="suffix"&&(n.scheme?t=n.scheme+":"+t:t="//"+t);let p=t.match(CF);p!==null&&p[1].indexOf("\\")!==-1&&(i.error="URI authority must not contain a literal backslash.",a=!0);let h=t.match(AF);if(h!==null){let d=h[1],m=d.replace(/[\t\n\r]/g,"");m.length>=2&&(m.slice(0,2)!=="//"?(i.error=i.error||"URI authority must not contain a literal backslash.",a=!0):d.length!==m.length&&(i.error=i.error||"URI authority introducer must not contain whitespace.",a=!0))}let g=t.match(vF);if(g){if(i.scheme=g[1],i.userinfo=g[3],i.host=g[4],i.port=parseInt(g[5],10),i.path=g[6]||"",i.query=g[7],i.fragment=g[8],i.scheme!==void 0){let w=unescape(i.scheme);R0.test(w)?i.scheme=w.toLowerCase():(i.error=i.error||I0,c=!0)}r=xF(g),r&&(i.error=i.error||"URI contains malformed percent-encoding."),isNaN(i.port)&&(i.port=g[5]);let d=bF(i,g);if(d!==void 0&&(i.error=i.error||d,a=!0),i.host)if(H0(i.host)===!1){let f=nv(i.host),A=i.host.indexOf("[")!==-1||i.host.indexOf("]")!==-1,b=_0(i.host);u=b.isIPV6||b.isIPVFuture===!0,l=A&&(!f||b.error===!0),i.host=u?b.host:b.host.toLowerCase(),l&&(i.error=i.error||"URI host is malformed.",a=!0)}else u=!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 m=ev(n.scheme||i.scheme);if(l||(o=D0(i,n,m,u)),t.indexOf("%")!==-1&&i.host!==void 0&&!l){let w=u?i.host:Yw(i.host,!0);u||(w=Yw(w.toLowerCase())),i.host=hF(w,u)}(!m||m&&!m.skipNormalize)&&(i.path&&(i.path=cF(i.path)),i.query&&(i.query=M0(i.query)),i.fragment&&(i.fragment=M0(i.fragment))),m&&m.parse&&(m.parse(i,n),m===W0.urn&&i.nid===void 0&&(s=!0))}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:a,malformedPercentEncoding:r,malformedSchemeSpecific:s,malformedHost:o,malformedScheme:c}}function gp(t,e){return hp(t,e).parsed}function yF(t,e){return G0(t,e).normalized}function G0(t,e){let{parsed:n,malformedAuthorityOrPort:i,malformedPercentEncoding:a,malformedSchemeSpecific:r,malformedHost:s,malformedScheme:o}=hp(t,e);return{normalized:i||a||r||s||o?t:dr(n,e),malformedAuthorityOrPort:i,malformedPercentEncoding:a,malformedSchemeSpecific:r,malformedHost:s,malformedScheme:o}}function q0(t,e){if(typeof t!="string"&&typeof t!="object")return;let n;try{n=typeof t=="string"?t:dr(t,e)}catch{return}let{normalized:i,malformedAuthorityOrPort:a,malformedPercentEncoding:r,malformedSchemeSpecific:s,malformedHost:o,malformedScheme:l}=G0(n,e);return a||r||s||o||l?void 0:i}var iv={SCHEMES:W0,normalize:mF,resolve:fF,resolveComponent:z0,equal:wF,serialize:dr,parse:gp};mp.exports=iv;mp.exports.default=iv;mp.exports.fastUri=iv});var $0=v(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});var U0=N0();U0.code='require("ajv/dist/runtime/uri").default';tv.default=U0});var Q0=v(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CodeGen=qn.Name=qn.nil=qn.stringify=qn.str=qn._=qn.KeywordCxt=void 0;var PF=cl();Object.defineProperty(qn,"KeywordCxt",{enumerable:!0,get:function(){return PF.KeywordCxt}});var Ps=se();Object.defineProperty(qn,"_",{enumerable:!0,get:function(){return Ps._}});Object.defineProperty(qn,"str",{enumerable:!0,get:function(){return Ps.str}});Object.defineProperty(qn,"stringify",{enumerable:!0,get:function(){return Ps.stringify}});Object.defineProperty(qn,"nil",{enumerable:!0,get:function(){return Ps.nil}});Object.defineProperty(qn,"Name",{enumerable:!0,get:function(){return Ps.Name}});Object.defineProperty(qn,"CodeGen",{enumerable:!0,get:function(){return Ps.CodeGen}});var jF=lp(),J0=pl(),SF=jw(),gl=cp(),OF=se(),ml=ol(),fp=sl(),rv=be(),B0=f0(),TF=$0(),K0=(t,e)=>new RegExp(t,e);K0.code="new RegExp";var kF=["removeAdditional","useDefaults","coerceTypes"],MF=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),EF={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."},qF={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},L0=200;function _F(t){var e,n,i,a,r,s,o,l,c,u,p,h,g,d,m,w,f,A,b,x,S,T,M,V,N;let _=t.strict,W=(e=t.code)===null||e===void 0?void 0:e.optimize,le=W===!0||W===void 0?1:W||0,Pe=(i=(n=t.code)===null||n===void 0?void 0:n.regExp)!==null&&i!==void 0?i:K0,Te=(a=t.uriResolver)!==null&&a!==void 0?a:TF.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:_)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:_)!==null&&l!==void 0?l:!0,strictTypes:(u=(c=t.strictTypes)!==null&&c!==void 0?c:_)!==null&&u!==void 0?u:"log",strictTuples:(h=(p=t.strictTuples)!==null&&p!==void 0?p:_)!==null&&h!==void 0?h:"log",strictRequired:(d=(g=t.strictRequired)!==null&&g!==void 0?g:_)!==null&&d!==void 0?d:!1,code:t.code?{...t.code,optimize:le,regExp:Pe}:{optimize:le,regExp:Pe},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:L0,loopEnum:(w=t.loopEnum)!==null&&w!==void 0?w:L0,meta:(f=t.meta)!==null&&f!==void 0?f:!0,messages:(A=t.messages)!==null&&A!==void 0?A:!0,inlineRefs:(b=t.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(x=t.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(S=t.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(T=t.validateSchema)!==null&&T!==void 0?T:!0,validateFormats:(M=t.validateFormats)!==null&&M!==void 0?M:!0,unicodeRegExp:(V=t.unicodeRegExp)!==null&&V!==void 0?V:!0,int32range:(N=t.int32range)!==null&&N!==void 0?N:!0,uriResolver:Te}}var fl=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,..._F(e)};let{es5:n,lines:i}=this.opts.code;this.scope=new OF.ValueScope({scope:{},prefixes:MF,es5:n,lines:i}),this.logger=DF(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,SF.getRules)(),F0.call(this,EF,e,"NOT SUPPORTED"),F0.call(this,qF,e,"DEPRECATED","warn"),this._metaOpts=IF.call(this),e.formats&&WF.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&RF.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),HF.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:i}=this.opts,a=B0;i==="id"&&(a={...B0},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(u,p){await r.call(this,u.$schema);let h=this._addSchema(u,p);return h.validate||s.call(this,h)}async function r(u){u&&!this.getSchema(u)&&await a.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof J0.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,u)}}function o({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function l(u){let p=await c.call(this,u);this.refs[u]||await r.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,n)}async function c(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=i(u))}finally{delete this._loading[u]}}}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,ml.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=V0.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:i}=this.opts,a=new gl.SchemaEnv({schema:{},schemaId:i});if(n=gl.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=V0.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,ml.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(NF.call(this,i,n),!n)return(0,rv.eachItem)(i,r=>av.call(this,r)),this;$F.call(this,n);let a={...n,type:(0,fp.getJSONTypes)(n.type),schemaType:(0,fp.getJSONTypes)(n.schemaType)};return(0,rv.eachItem)(i,a.type.length===0?r=>av.call(this,r,a):r=>a.type.forEach(s=>av.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:c}=l.definition,u=s[o];c&&u&&(s[o]=Z0(u))}}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,ml.normalizeId)(s||i);let c=ml.getSchemaRefs.call(this,e,i);return l=new gl.SchemaEnv({schema:e,schemaId:o,meta:n,baseId:i,localRefs:c}),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):gl.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{gl.compileSchema.call(this,e)}finally{this.opts=n}}};fl.ValidationError=jF.default;fl.MissingRefError=J0.default;qn.default=fl;function F0(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 V0(t){return t=(0,ml.normalizeId)(t),this.schemas[t]||this.refs[t]}function HF(){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 WF(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function RF(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 IF(){let t={...this.opts};for(let e of kF)delete t[e];return t}var zF={log(){},warn(){},error(){}};function DF(t){if(t===!1)return zF;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 GF=/^[a-z_$][a-z0-9_$:-]*$/i;function NF(t,e){let{RULES:n}=this;if((0,rv.eachItem)(t,i=>{if(n.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!GF.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 av(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,fp.getJSONTypes)(e.type),schemaType:(0,fp.getJSONTypes)(e.schemaType)}};e.before?UF.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 UF(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 $F(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Z0(e)),t.validateSchema=this.compile(e,!0))}var BF={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Z0(t){return{anyOf:[t,BF]}}});var X0=v(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});var LF={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};sv.default=LF});var ik=v(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.callRef=hr.getValidate=void 0;var FF=pl(),Y0=Bi(),di=se(),js=Bt(),ek=cp(),wp=be(),VF={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:c}=r;if((n==="#"||n==="#/")&&a===c.baseId)return p();let u=ek.resolveRef.call(l,c,a,n);if(u===void 0)throw new FF.default(i.opts.uriResolver,a,n);if(u instanceof ek.SchemaEnv)return h(u);return g(u);function p(){if(r===c)return vp(t,s,r,r.$async);let d=e.scopeValue("root",{ref:c});return vp(t,(0,di._)`${d}.validate`,c,c.$async)}function h(d){let m=nk(t,d);vp(t,m,d,d.$async)}function g(d){let m=e.scopeValue("schema",o.code.source===!0?{ref:d,code:(0,di.stringify)(d)}:{ref:d}),w=e.name("valid"),f=t.subschema({schema:d,dataTypes:[],schemaPath:di.nil,topSchemaRef:m,errSchemaPath:n},w);t.mergeEvaluated(f),t.ok(w)}}};function nk(t,e){let{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,di._)`${n.scopeValue("wrapper",{ref:e})}.validate`}hr.getValidate=nk;function vp(t,e,n,i){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,c=l.passContext?js.default.this:di.nil;i?u():p();function u(){if(!o.$async)throw new Error("async schema referenced by sync schema");let d=a.let("valid");a.try(()=>{a.code((0,di._)`await ${(0,Y0.callValidateCode)(t,e,c)}`),g(e),s||a.assign(d,!0)},m=>{a.if((0,di._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),h(m),s||a.assign(d,!1)}),t.ok(d)}function p(){t.result((0,Y0.callValidateCode)(t,e,c),()=>g(e),()=>h(e))}function h(d){let m=(0,di._)`${d}.errors`;a.assign(js.default.vErrors,(0,di._)`${js.default.vErrors} === null ? ${m} : ${js.default.vErrors}.concat(${m})`),a.assign(js.default.errors,(0,di._)`${js.default.vErrors}.length`)}function g(d){var m;if(!r.opts.unevaluated)return;let w=(m=n?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(w&&!w.dynamicProps)w.props!==void 0&&(r.props=wp.mergeEvaluated.props(a,w.props,r.props));else{let f=a.var("props",(0,di._)`${d}.evaluated.props`);r.props=wp.mergeEvaluated.props(a,f,r.props,di.Name)}if(r.items!==!0)if(w&&!w.dynamicItems)w.items!==void 0&&(r.items=wp.mergeEvaluated.items(a,w.items,r.items));else{let f=a.var("items",(0,di._)`${d}.evaluated.items`);r.items=wp.mergeEvaluated.items(a,f,r.items,di.Name)}}}hr.callRef=vp;hr.default=VF});var tk=v(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});var JF=X0(),KF=ik(),ZF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",JF.default,KF.default];ov.default=ZF});var ak=v(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});var Cp=se(),wa=Cp.operators,Ap={maximum:{okStr:"<=",ok:wa.LTE,fail:wa.GT},minimum:{okStr:">=",ok:wa.GTE,fail:wa.LT},exclusiveMaximum:{okStr:"<",ok:wa.LT,fail:wa.GTE},exclusiveMinimum:{okStr:">",ok:wa.GT,fail:wa.LTE}},QF={message:({keyword:t,schemaCode:e})=>(0,Cp.str)`must be ${Ap[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Cp._)`{comparison: ${Ap[t].okStr}, limit: ${e}}`},XF={keyword:Object.keys(Ap),type:"number",schemaType:"number",$data:!0,error:QF,code(t){let{keyword:e,data:n,schemaCode:i}=t;t.fail$data((0,Cp._)`${n} ${Ap[e].fail} ${i} || isNaN(${n})`)}};lv.default=XF});var rk=v(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});var wl=se(),YF={message:({schemaCode:t})=>(0,wl.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,wl._)`{multipleOf: ${t}}`},e5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:YF,code(t){let{gen:e,data:n,schemaCode:i,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,wl._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,wl._)`${s} !== parseInt(${s})`;t.fail$data((0,wl._)`(${i} === 0 || (${s} = ${n}/${i}, ${o}))`)}};uv.default=e5});var ok=v(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});function sk(t){let e=t.length,n=0,i=0,a;for(;i=55296&&a<=56319&&i{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});var gr=se(),n5=be(),i5=ok(),t5={message({keyword:t,schemaCode:e}){let n=t==="maxLength"?"more":"fewer";return(0,gr.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>(0,gr._)`{limit: ${t}}`},a5={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:t5,code(t){let{keyword:e,data:n,schemaCode:i,it:a}=t,r=e==="maxLength"?gr.operators.GT:gr.operators.LT,s=a.opts.unicode===!1?(0,gr._)`${n}.length`:(0,gr._)`${(0,n5.useFunc)(t.gen,i5.default)}(${n})`;t.fail$data((0,gr._)`${s} ${r} ${i}`)}};pv.default=a5});var uk=v(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});var r5=Bi(),s5=be(),Ss=se(),o5={message:({schemaCode:t})=>(0,Ss.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Ss._)`{pattern: ${t}}`},l5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:o5,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,c=l.code==="new RegExp"?(0,Ss._)`new RegExp`:(0,s5.useFunc)(e,l),u=e.let("valid");e.try(()=>e.assign(u,(0,Ss._)`${c}(${r}, ${o}).test(${n})`),()=>e.assign(u,!1)),t.fail$data((0,Ss._)`!${u}`)}else{let l=(0,r5.usePattern)(t,a);t.fail$data((0,Ss._)`!${l}.test(${n})`)}}};dv.default=l5});var ck=v(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});var vl=se(),u5={message({keyword:t,schemaCode:e}){let n=t==="maxProperties"?"more":"fewer";return(0,vl.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,vl._)`{limit: ${t}}`},c5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:u5,code(t){let{keyword:e,data:n,schemaCode:i}=t,a=e==="maxProperties"?vl.operators.GT:vl.operators.LT;t.fail$data((0,vl._)`Object.keys(${n}).length ${a} ${i}`)}};hv.default=c5});var pk=v(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var Cl=Bi(),Al=se(),p5=be(),d5={message:({params:{missingProperty:t}})=>(0,Al.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Al._)`{missingProperty: ${t}}`},h5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:d5,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?c():u(),o.strictRequired){let g=t.parentSchema.properties,{definedProperties:d}=t.it;for(let m of n)if(g?.[m]===void 0&&!d.has(m)){let w=s.schemaEnv.baseId+s.errSchemaPath,f=`required property "${m}" is not defined at "${w}" (strictRequired)`;(0,p5.checkStrictMode)(s,f,s.opts.strictRequired)}}function c(){if(l||r)t.block$data(Al.nil,p);else for(let g of n)(0,Cl.checkReportMissingProp)(t,g)}function u(){let g=e.let("missing");if(l||r){let d=e.let("valid",!0);t.block$data(d,()=>h(g,d)),t.ok(d)}else e.if((0,Cl.checkMissingProp)(t,n,g)),(0,Cl.reportMissingProp)(t,g),e.else()}function p(){e.forOf("prop",i,g=>{t.setParams({missingProperty:g}),e.if((0,Cl.noPropertyInData)(e,a,g,o.ownProperties),()=>t.error())})}function h(g,d){t.setParams({missingProperty:g}),e.forOf(g,i,()=>{e.assign(d,(0,Cl.propertyInData)(e,a,g,o.ownProperties)),e.if((0,Al.not)(d),()=>{t.error(),e.break()})},Al.nil)}}};gv.default=h5});var dk=v(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var bl=se(),g5={message({keyword:t,schemaCode:e}){let n=t==="maxItems"?"more":"fewer";return(0,bl.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,bl._)`{limit: ${t}}`},m5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:g5,code(t){let{keyword:e,data:n,schemaCode:i}=t,a=e==="maxItems"?bl.operators.GT:bl.operators.LT;t.fail$data((0,bl._)`${n}.length ${a} ${i}`)}};mv.default=m5});var bp=v(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var hk=_w();hk.code='require("ajv/dist/runtime/equal").default';fv.default=hk});var gk=v(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var wv=sl(),_n=se(),f5=be(),w5=bp(),v5={message:({params:{i:t,j:e}})=>(0,_n.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,_n._)`{i: ${t}, j: ${e}}`},C5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:v5,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"),c=r.items?(0,wv.getSchemaTypes)(r.items):[];t.block$data(l,u,(0,_n._)`${s} === false`),t.ok(l);function u(){let d=e.let("i",(0,_n._)`${n}.length`),m=e.let("j");t.setParams({i:d,j:m}),e.assign(l,!0),e.if((0,_n._)`${d} > 1`,()=>(p()?h:g)(d,m))}function p(){return c.length>0&&!c.some(d=>d==="object"||d==="array")}function h(d,m){let w=e.name("item"),f=(0,wv.checkDataTypes)(c,w,o.opts.strictNumbers,wv.DataType.Wrong),A=e.const("indices",(0,_n._)`{}`);e.for((0,_n._)`;${d}--;`,()=>{e.let(w,(0,_n._)`${n}[${d}]`),e.if(f,(0,_n._)`continue`),c.length>1&&e.if((0,_n._)`typeof ${w} == "string"`,(0,_n._)`${w} += "_"`),e.if((0,_n._)`typeof ${A}[${w}] == "number"`,()=>{e.assign(m,(0,_n._)`${A}[${w}]`),t.error(),e.assign(l,!1).break()}).code((0,_n._)`${A}[${w}] = ${d}`)})}function g(d,m){let w=(0,f5.useFunc)(e,w5.default),f=e.name("outer");e.label(f).for((0,_n._)`;${d}--;`,()=>e.for((0,_n._)`${m} = ${d}; ${m}--;`,()=>e.if((0,_n._)`${w}(${n}[${d}], ${n}[${m}])`,()=>{t.error(),e.assign(l,!1).break(f)})))}}};vv.default=C5});var mk=v(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});var Cv=se(),A5=be(),b5=bp(),x5={message:"must be equal to constant",params:({schemaCode:t})=>(0,Cv._)`{allowedValue: ${t}}`},y5={keyword:"const",$data:!0,error:x5,code(t){let{gen:e,data:n,$data:i,schemaCode:a,schema:r}=t;i||r&&typeof r=="object"?t.fail$data((0,Cv._)`!${(0,A5.useFunc)(e,b5.default)}(${n}, ${a})`):t.fail((0,Cv._)`${r} !== ${n}`)}};Av.default=y5});var fk=v(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});var xl=se(),P5=be(),j5=bp(),S5={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,xl._)`{allowedValues: ${t}}`},O5={keyword:"enum",schemaType:"array",$data:!0,error:S5,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,c=()=>l??(l=(0,P5.useFunc)(e,j5.default)),u;if(o||i)u=e.let("valid"),t.block$data(u,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let g=e.const("vSchema",r);u=(0,xl.or)(...a.map((d,m)=>h(g,m)))}t.pass(u);function p(){e.assign(u,!1),e.forOf("v",r,g=>e.if((0,xl._)`${c()}(${n}, ${g})`,()=>e.assign(u,!0).break()))}function h(g,d){let m=a[d];return typeof m=="object"&&m!==null?(0,xl._)`${c()}(${n}, ${g}[${d}])`:(0,xl._)`${n} === ${m}`}}};bv.default=O5});var wk=v(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});var T5=ak(),k5=rk(),M5=lk(),E5=uk(),q5=ck(),_5=pk(),H5=dk(),W5=gk(),R5=mk(),I5=fk(),z5=[T5.default,k5.default,M5.default,E5.default,q5.default,_5.default,H5.default,W5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},R5.default,I5.default];xv.default=z5});var Pv=v(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.validateAdditionalItems=void 0;var mr=se(),yv=be(),D5={message:({params:{len:t}})=>(0,mr.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,mr._)`{limit: ${t}}`},G5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:D5,code(t){let{parentSchema:e,it:n}=t,{items:i}=e;if(!Array.isArray(i)){(0,yv.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}vk(t,i)}};function vk(t,e){let{gen:n,schema:i,data:a,keyword:r,it:s}=t;s.items=!0;let o=n.const("len",(0,mr._)`${a}.length`);if(i===!1)t.setParams({len:e.length}),t.pass((0,mr._)`${o} <= ${e.length}`);else if(typeof i=="object"&&!(0,yv.alwaysValidSchema)(s,i)){let c=n.var("valid",(0,mr._)`${o} <= ${e.length}`);n.if((0,mr.not)(c),()=>l(c)),t.ok(c)}function l(c){n.forRange("i",e.length,o,u=>{t.subschema({keyword:r,dataProp:u,dataPropType:yv.Type.Num},c),s.allErrors||n.if((0,mr.not)(c),()=>n.break())})}}yl.validateAdditionalItems=vk;yl.default=G5});var jv=v(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.validateTuple=void 0;var Ck=se(),xp=be(),N5=Bi(),U5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:n}=t;if(Array.isArray(e))return Ak(t,"additionalItems",e);n.items=!0,!(0,xp.alwaysValidSchema)(n,e)&&t.ok((0,N5.validateArray)(t))}};function Ak(t,e,n=t.schema){let{gen:i,parentSchema:a,data:r,keyword:s,it:o}=t;u(a),o.opts.unevaluated&&n.length&&o.items!==!0&&(o.items=xp.mergeEvaluated.items(i,n.length,o.items));let l=i.name("valid"),c=i.const("len",(0,Ck._)`${r}.length`);n.forEach((p,h)=>{(0,xp.alwaysValidSchema)(o,p)||(i.if((0,Ck._)`${c} > ${h}`,()=>t.subschema({keyword:s,schemaProp:h,dataProp:h},l)),t.ok(l))});function u(p){let{opts:h,errSchemaPath:g}=o,d=n.length,m=d===p.minItems&&(d===p.maxItems||p[e]===!1);if(h.strictTuples&&!m){let w=`"${s}" is ${d}-tuple, but minItems or maxItems/${e} are not specified or different at path "${g}"`;(0,xp.checkStrictMode)(o,w,h.strictTuples)}}}Pl.validateTuple=Ak;Pl.default=U5});var bk=v(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var $5=jv(),B5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,$5.validateTuple)(t,"items")};Sv.default=B5});var yk=v(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});var xk=se(),L5=be(),F5=Bi(),V5=Pv(),J5={message:({params:{len:t}})=>(0,xk.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,xk._)`{limit: ${t}}`},K5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:J5,code(t){let{schema:e,parentSchema:n,it:i}=t,{prefixItems:a}=n;i.items=!0,!(0,L5.alwaysValidSchema)(i,e)&&(a?(0,V5.validateAdditionalItems)(t,a):t.ok((0,F5.validateArray)(t)))}};Ov.default=K5});var Pk=v(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var Fi=se(),yp=be(),Z5={message:({params:{min:t,max:e}})=>e===void 0?(0,Fi.str)`must contain at least ${t} valid item(s)`:(0,Fi.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Fi._)`{minContains: ${t}}`:(0,Fi._)`{minContains: ${t}, maxContains: ${e}}`},Q5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Z5,code(t){let{gen:e,schema:n,parentSchema:i,data:a,it:r}=t,s,o,{minContains:l,maxContains:c}=i;r.opts.next?(s=l===void 0?1:l,o=c):s=1;let u=e.const("len",(0,Fi._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,yp.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,yp.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,yp.alwaysValidSchema)(r,n)){let m=(0,Fi._)`${u} >= ${s}`;o!==void 0&&(m=(0,Fi._)`${m} && ${u} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?g(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,Fi._)`${a}.length > 0`,h)):(e.let(p,!1),h()),t.result(p,()=>t.reset());function h(){let m=e.name("_valid"),w=e.let("count",0);g(m,()=>e.if(m,()=>d(w)))}function g(m,w){e.forRange("i",0,u,f=>{t.subschema({keyword:"contains",dataProp:f,dataPropType:yp.Type.Num,compositeRule:!0},m),w()})}function d(m){e.code((0,Fi._)`${m}++`),o===void 0?e.if((0,Fi._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,Fi._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,Fi._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};Tv.default=Q5});var Ok=v(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateSchemaDeps=yt.validatePropertyDeps=yt.error=void 0;var kv=se(),X5=be(),jl=Bi();yt.error={message:({params:{property:t,depsCount:e,deps:n}})=>{let i=e===1?"property":"properties";return(0,kv.str)`must have ${i} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:i}})=>(0,kv._)`{property: ${t}, missingProperty: ${i}, depsCount: ${e}, - deps: ${n}}`};var $5={keyword:"dependencies",type:"object",schemaType:"object",error:xt.error,code(t){let[e,n]=B5(t);Ak(t,e),bk(t,n)}};function B5({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 Ak(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,bl.propertyInData)(n,i,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?n.if(l,()=>{for(let c of o)(0,bl.checkReportMissingProp)(t,c)}):(n.if((0,Sv._)`${l} && (${(0,bl.checkMissingProp)(t,o,r)})`),(0,bl.reportMissingProp)(t,r),n.else())}}xt.validatePropertyDeps=Ak;function bk(t,e=t.schema){let{gen:n,data:i,keyword:a,it:r}=t,s=n.name("valid");for(let o in e)(0,U5.alwaysValidSchema)(r,e[o])||(n.if((0,bl.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))}xt.validateSchemaDeps=bk;xt.default=$5});var Pk=v(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});var yk=se(),L5=be(),F5={message:"property name must be valid",params:({params:t})=>(0,yk._)`{propertyName: ${t.propertyName}}`},V5={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:F5,code(t){let{gen:e,schema:n,data:i,it:a}=t;if((0,L5.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,yk.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Ov.default=V5});var kv=v(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var Ap=Ui(),at=se(),J5=$t(),bp=be(),K5={message:"must NOT have additional properties",params:({params:t})=>(0,at._)`{additionalProperty: ${t.additionalProperty}}`},Z5={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:K5,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,bp.alwaysValidSchema)(s,n))return;let c=(0,Ap.allSchemaProperties)(i.properties),u=(0,Ap.allSchemaProperties)(i.patternProperties);p(),t.ok((0,at._)`${r} === ${J5.default.errors}`);function p(){e.forIn("key",a,w=>{!c.length&&!u.length?d(w):e.if(h(w),()=>d(w))})}function h(w){let f;if(c.length>8){let A=(0,bp.schemaRefOrVal)(s,i.properties,"properties");f=(0,Ap.isOwnProperty)(e,A,w)}else c.length?f=(0,at.or)(...c.map(A=>(0,at._)`${w} === ${A}`)):f=at.nil;return u.length&&(f=(0,at.or)(f,...u.map(A=>(0,at._)`${(0,Ap.usePattern)(t,A)}.test(${w})`))),(0,at.not)(f)}function g(w){e.code((0,at._)`delete ${a}[${w}]`)}function d(w){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){g(w);return}if(n===!1){t.setParams({additionalProperty:w}),t.error(),o||e.break();return}if(typeof n=="object"&&!(0,bp.alwaysValidSchema)(s,n)){let f=e.name("valid");l.removeAdditional==="failing"?(m(w,f,!1),e.if((0,at.not)(f),()=>{t.reset(),g(w)})):(m(w,f),o||e.if((0,at.not)(f),()=>e.break()))}}function m(w,f,A){let b={keyword:"additionalProperties",dataProp:w,dataPropType:bp.Type.Str};A===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(b,f)}}};Tv.default=Z5});var Ok=v(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});var Q5=sl(),jk=Ui(),Mv=be(),Sk=kv(),Y5={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&&Sk.default.code(new Q5.KeywordCxt(r,Sk.default,"additionalProperties"));let s=(0,jk.allSchemaProperties)(n);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=Mv.mergeEvaluated.props(e,(0,Mv.toHash)(s),r.props));let o=s.filter(p=>!(0,Mv.alwaysValidSchema)(r,n[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)c(p)?u(p):(e.if((0,jk.propertyInData)(e,a,p,r.opts.ownProperties)),u(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function c(p){return r.opts.useDefaults&&!r.compositeRule&&n[p].default!==void 0}function u(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Ev.default=Y5});var Ek=v(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});var Tk=Ui(),xp=se(),kk=be(),Mk=be(),X5={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,Tk.allSchemaProperties)(n),l=o.filter(m=>(0,kk.alwaysValidSchema)(r,n[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&a.properties,u=e.name("valid");r.props!==!0&&!(r.props instanceof xp.Name)&&(r.props=(0,Mk.evaluatedPropsToName)(e,r.props));let{props:p}=r;h();function h(){for(let m of o)c&&g(m),r.allErrors?d(m):(e.var(u,!0),d(m),e.if(u))}function g(m){for(let w in c)new RegExp(m).test(w)&&(0,kk.checkStrictMode)(r,`property ${w} matches pattern ${m} (use allowMatchingProperties)`)}function d(m){e.forIn("key",i,w=>{e.if((0,xp._)`${(0,Tk.usePattern)(t,m)}.test(${w})`,()=>{let f=l.includes(m);f||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:w,dataPropType:Mk.Type.Str},u),r.opts.unevaluated&&p!==!0?e.assign((0,xp._)`${p}[${w}]`,!0):!f&&!r.allErrors&&e.if((0,xp.not)(u),()=>e.break())})})}}};qv.default=X5});var qk=v(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var eV=be(),nV={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:n,it:i}=t;if((0,eV.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"}};_v.default=nV});var _k=v(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});var iV=Ui(),tV={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:iV.validateUnion,error:{message:"must match a schema in anyOf"}};Hv.default=tV});var Hk=v(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});var yp=se(),aV=be(),rV={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,yp._)`{passingSchemas: ${t.passing}}`},sV={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:rV,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(c),t.result(s,()=>t.reset(),()=>t.error(!0));function c(){r.forEach((u,p)=>{let h;(0,aV.alwaysValidSchema)(a,u)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,yp._)`${l} && ${s}`).assign(s,!1).assign(o,(0,yp._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),h&&t.mergeEvaluated(h,yp.Name)})})}}};Wv.default=sV});var Wk=v(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var oV=be(),lV={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,oV.alwaysValidSchema)(i,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Rv.default=lV});var zk=v(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});var Pp=se(),Ik=be(),uV={message:({params:t})=>(0,Pp.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Pp._)`{failingKeyword: ${t.ifClause}}`},cV={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:uV,code(t){let{gen:e,parentSchema:n,it:i}=t;n.then===void 0&&n.else===void 0&&(0,Ik.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let a=Rk(i,"then"),r=Rk(i,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let u=e.let("ifClause");t.setParams({ifClause:u}),e.if(o,c("then",u),c("else",u))}else a?e.if(o,c("then")):e.if((0,Pp.not)(o),c("else"));t.pass(s,()=>t.error(!0));function l(){let u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(u)}function c(u,p){return()=>{let h=t.subschema({keyword:u},o);e.assign(s,o),t.mergeValidEvaluated(h,s),p?e.assign(p,(0,Pp._)`${u}`):t.setParams({ifClause:u})}}}};function Rk(t,e){let n=t.schema[e];return n!==void 0&&!(0,Ik.alwaysValidSchema)(t,n)}Iv.default=cV});var Dk=v(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var pV=be(),dV={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,pV.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};zv.default=dV});var Gk=v(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var hV=bv(),gV=fk(),mV=xv(),fV=vk(),wV=Ck(),vV=xk(),CV=Pk(),AV=kv(),bV=Ok(),xV=Ek(),yV=qk(),PV=_k(),jV=Hk(),SV=Wk(),OV=zk(),TV=Dk();function kV(t=!1){let e=[yV.default,PV.default,jV.default,SV.default,OV.default,TV.default,CV.default,AV.default,vV.default,bV.default,xV.default];return t?e.push(gV.default,fV.default):e.push(hV.default,mV.default),e.push(wV.default),e}Dv.default=kV});var Nk=v(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});var an=se(),MV={message:({schemaCode:t})=>(0,an.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,an._)`{format: ${t}}`},EV={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:MV,code(t,e){let{gen:n,data:i,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:c,schemaEnv:u,self:p}=o;if(!l.validateFormats)return;a?h():g();function h(){let d=n.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=n.const("fDef",(0,an._)`${d}[${s}]`),w=n.let("fType"),f=n.let("format");n.if((0,an._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>n.assign(w,(0,an._)`${m}.type || "string"`).assign(f,(0,an._)`${m}.validate`),()=>n.assign(w,(0,an._)`"string"`).assign(f,m)),t.fail$data((0,an.or)(A(),b()));function A(){return l.strictSchema===!1?an.nil:(0,an._)`${s} && !${f}`}function b(){let x=u.$async?(0,an._)`(${m}.async ? await ${f}(${i}) : ${f}(${i}))`:(0,an._)`${f}(${i})`,S=(0,an._)`(typeof ${f} == "function" ? ${x} : ${f}.test(${i}))`;return(0,an._)`${f} && ${f} !== true && ${w} === ${e} && !${S}`}}function g(){let d=p.formats[r];if(!d){A();return}if(d===!0)return;let[m,w,f]=b(d);m===e&&t.pass(x());function A(){if(l.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${r}" ignored in schema at path "${c}"`}}function b(S){let T=S instanceof RegExp?(0,an.regexpCode)(S):l.code.formats?(0,an._)`${l.code.formats}${(0,an.getProperty)(r)}`:void 0,M=n.scopeValue("formats",{key:r,ref:S,code:T});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,an._)`${M}.validate`]:["string",S,M]}function x(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!u.$async)throw new Error("async format in sync schema");return(0,an._)`await ${f}(${i})`}return typeof w=="function"?(0,an._)`${f}(${i})`:(0,an._)`${f}.test(${i})`}}}};Gv.default=EV});var Uk=v(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var qV=Nk(),_V=[qV.default];Nv.default=_V});var $k=v(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.contentVocabulary=xs.metadataVocabulary=void 0;xs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];xs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Lk=v(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});var HV=Y0(),WV=dk(),RV=Gk(),IV=Uk(),Bk=$k(),zV=[HV.default,WV.default,(0,RV.default)(),IV.default,Bk.metadataVocabulary,Bk.contentVocabulary];Uv.default=zV});var Vk=v(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.DiscrError=void 0;var Fk;(function(t){t.Tag="tag",t.Mapping="mapping"})(Fk||(jp.DiscrError=Fk={}))});var Kk=v(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});var ys=se(),$v=Vk(),Jk=sp(),DV=ol(),GV=be(),NV={message:({params:{discrError:t,tagName:e}})=>t===$v.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,ys._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},UV={keyword:"discriminator",type:"object",schemaType:"object",error:NV,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),c=e.const("tag",(0,ys._)`${n}${(0,ys.getProperty)(o)}`);e.if((0,ys._)`typeof ${c} == "string"`,()=>u(),()=>t.error(!1,{discrError:$v.DiscrError.Tag,tag:c,tagName:o})),t.ok(l);function u(){let g=h();e.if(!1);for(let d in g)e.elseIf((0,ys._)`${c} === ${d}`),e.assign(l,p(g[d]));e.else(),t.error(!1,{discrError:$v.DiscrError.Mapping,tag:c,tagName:o}),e.endIf()}function p(g){let d=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:g},d);return t.mergeEvaluated(m,ys.Name),d}function h(){var g;let d={},m=f(a),w=!0;for(let x=0;x{$V.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 Fv=v((Le,Lv)=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.MissingRefError=Le.ValidationError=Le.CodeGen=Le.Name=Le.nil=Le.stringify=Le.str=Le._=Le.KeywordCxt=Le.Ajv=void 0;var BV=F0(),LV=Lk(),FV=Kk(),Qk=Zk(),VV=["/properties"],Sp="http://json-schema.org/draft-07/schema",Ps=class extends BV.default{_addVocabularies(){super._addVocabularies(),LV.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(FV.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(Qk,VV):Qk;this.addMetaSchema(e,Sp,!1),this.refs["http://json-schema.org/schema"]=Sp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Sp)?Sp:void 0)}};Le.Ajv=Ps;Lv.exports=Le=Ps;Lv.exports.Ajv=Ps;Object.defineProperty(Le,"__esModule",{value:!0});Le.default=Ps;var JV=sl();Object.defineProperty(Le,"KeywordCxt",{enumerable:!0,get:function(){return JV.KeywordCxt}});var js=se();Object.defineProperty(Le,"_",{enumerable:!0,get:function(){return js._}});Object.defineProperty(Le,"str",{enumerable:!0,get:function(){return js.str}});Object.defineProperty(Le,"stringify",{enumerable:!0,get:function(){return js.stringify}});Object.defineProperty(Le,"nil",{enumerable:!0,get:function(){return js.nil}});Object.defineProperty(Le,"Name",{enumerable:!0,get:function(){return js.Name}});Object.defineProperty(Le,"CodeGen",{enumerable:!0,get:function(){return js.CodeGen}});var KV=ap();Object.defineProperty(Le,"ValidationError",{enumerable:!0,get:function(){return KV.default}});var ZV=ol();Object.defineProperty(Le,"MissingRefError",{enumerable:!0,get:function(){return ZV.default}})});var rM=v(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.formatNames=Pt.fastFormats=Pt.fullFormats=void 0;function yt(t,e){return{validate:t,compare:e}}Pt.fullFormats={date:yt(nM,Zv),time:yt(Jv(!0),Qv),"date-time":yt(Yk(!0),tM),"iso-time":yt(Jv(),iM),"iso-date-time":yt(Yk(),aM),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:iJ,"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:uJ,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:tJ,int32:{type:"number",validate:sJ},int64:{type:"number",validate:oJ},float:{type:"number",validate:eM},double:{type:"number",validate:eM},password:!0,binary:!0};Pt.fastFormats={...Pt.fullFormats,date:yt(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Zv),time:yt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Qv),"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,tM),"iso-time":yt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,iM),"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,aM),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};Pt.formatNames=Object.keys(Pt.fullFormats);function QV(t){return t%4===0&&(t%100!==0||t%400===0)}var YV=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,XV=[0,31,28,31,30,31,30,31,31,30,31,30,31];function nM(t){let e=YV.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&&QV(n)?29:XV[i])}function Zv(t,e){if(t&&e)return t>e?1:t23||u>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-u*l,h=a-c*l-(p<0?1:0);return(h===23||h===-1)&&(p===59||p===-1)&&s<61}}function Qv(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 iM(t,e){if(!(t&&e))return;let n=Vv.exec(t),i=Vv.exec(e);if(n&&i)return t=n[1]+n[2]+n[3],e=i[1]+i[2]+i[3],t>e?1:t=aJ}function oJ(t){return Number.isInteger(t)}function eM(){return!0}var lJ=/[^\\]\\Z/;function uJ(t){if(lJ.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var sM=v(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.formatLimitDefinition=void 0;var cJ=Fv(),rt=se(),fa=rt.operators,Op={formatMaximum:{okStr:"<=",ok:fa.LTE,fail:fa.GT},formatMinimum:{okStr:">=",ok:fa.GTE,fail:fa.LT},formatExclusiveMaximum:{okStr:"<",ok:fa.LT,fail:fa.GTE},formatExclusiveMinimum:{okStr:">",ok:fa.GT,fail:fa.LTE}},pJ={message:({keyword:t,schemaCode:e})=>(0,rt.str)`should be ${Op[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,rt._)`{comparison: ${Op[t].okStr}, limit: ${e}}`};Ss.formatLimitDefinition={keyword:Object.keys(Op),type:"string",schemaType:"string",$data:!0,error:pJ,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 cJ.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?c():u();function c(){let h=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),g=e.const("fmt",(0,rt._)`${h}[${l.schemaCode}]`);t.fail$data((0,rt.or)((0,rt._)`typeof ${g} != "object"`,(0,rt._)`${g} instanceof RegExp`,(0,rt._)`typeof ${g}.compare != "function"`,p(g)))}function u(){let h=l.schema,g=o.formats[h];if(!g||g===!0)return;if(typeof g!="object"||g instanceof RegExp||typeof g.compare!="function")throw new Error(`"${a}": format "${h}" does not define "compare" function`);let d=e.scopeValue("formats",{key:h,ref:g,code:s.code.formats?(0,rt._)`${s.code.formats}${(0,rt.getProperty)(h)}`:void 0});t.fail$data(p(d))}function p(h){return(0,rt._)`${h}.compare(${n}, ${i}) ${Op[a].fail} 0`}},dependencies:["format"]};var dJ=t=>(t.addKeyword(Ss.formatLimitDefinition),t);Ss.default=dJ});var cM=v((xl,uM)=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Os=rM(),hJ=sM(),Yv=se(),oM=new Yv.Name("fullFormats"),gJ=new Yv.Name("fastFormats"),Xv=(t,e={keywords:!0})=>{if(Array.isArray(e))return lM(t,e,Os.fullFormats,oM),t;let[n,i]=e.mode==="fast"?[Os.fastFormats,gJ]:[Os.fullFormats,oM],a=e.formats||Os.formatNames;return lM(t,a,n,i),e.keywords&&(0,hJ.default)(t),t};Xv.get=(t,e="full")=>{let i=(e==="fast"?Os.fastFormats:Os.fullFormats)[t];if(!i)throw new Error(`Unknown format "${t}"`);return i};function lM(t,e,n,i){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,Yv._)`require("ajv-formats/dist/formats").${i}`);for(let s of e)t.addFormat(s,n[s])}uM.exports=xl=Xv;Object.defineProperty(xl,"__esModule",{value:!0});xl.default=Xv});var jM=v((nce,PM)=>{var yM=require("stream").Stream,yJ=require("util");PM.exports=st;function st(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}yJ.inherits(st,yM);st.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(st.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});st.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};st.prototype.resume=function(){this._released||this.release(),this.source.resume()};st.prototype.pause=function(){this.source.pause()};st.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};st.prototype.pipe=function(){var t=yM.prototype.pipe.apply(this,arguments);return this.resume(),t};st.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)};st.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 kM=v((ice,TM)=>{var PJ=require("util"),OM=require("stream").Stream,SM=jM();TM.exports=Xe;function Xe(){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}PJ.inherits(Xe,OM);Xe.create=function(t){var e=new this;t=t||{};for(var n in t)e[n]=t[n];return e};Xe.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Xe.prototype.append=function(t){var e=Xe.isStreamLike(t);if(e){if(!(t instanceof SM)){var n=SM.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};Xe.prototype.pipe=function(t,e){return OM.prototype.pipe.call(this,t,e),this.resume(),t};Xe.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}};Xe.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=Xe.isStreamLike(n);i&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Xe.prototype._pipeNext=function(t){this._currentStream=t;var e=Xe.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()};Xe.prototype._handleErrors=function(t){var e=this;t.on("error",function(n){e._emitError(n)})};Xe.prototype.write=function(t){this.emit("data",t)};Xe.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Xe.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")};Xe.prototype.end=function(){this._reset(),this.emit("end")};Xe.prototype.destroy=function(){this._reset(),this.emit("close")};Xe.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Xe.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Xe.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)};Xe.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var MM=v((tce,jJ)=>{jJ.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 qM=v((ace,EM)=>{EM.exports=MM()});var WM=v(di=>{"use strict";var Wp=qM(),SJ=require("path").extname,_M=/^\s*([^;\s]*)(?:;|\s|$)/,OJ=/^text\//i;di.charset=HM;di.charsets={lookup:HM};di.contentType=TJ;di.extension=kJ;di.extensions=Object.create(null);di.lookup=MJ;di.types=Object.create(null);EJ(di.extensions,di.types);function HM(t){if(!t||typeof t!="string")return!1;var e=_M.exec(t),n=e&&Wp[e[1].toLowerCase()];return n&&n.charset?n.charset:e&&OJ.test(e[1])?"UTF-8":!1}function TJ(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?di.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var n=di.charset(e);n&&(e+="; charset="+n.toLowerCase())}return e}function kJ(t){if(!t||typeof t!="string")return!1;var e=_M.exec(t),n=e&&di.extensions[e[1].toLowerCase()];return!n||!n.length?!1:n[0]}function MJ(t){if(!t||typeof t!="string")return!1;var e=SJ("x."+t).toLowerCase().substr(1);return e&&di.types[e]||!1}function EJ(t,e){var n=["nginx","apache",void 0,"iana"];Object.keys(Wp).forEach(function(a){var r=Wp[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;ou||c===u&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var IM=v((sce,RM)=>{RM.exports=qJ;function qJ(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var aC=v((oce,DM)=>{var zM=IM();DM.exports=_J;function _J(t){var e=!1;return zM(function(){e=!0}),function(i,a){e?t(i,a):zM(function(){t(i,a)})}}});var rC=v((lce,GM)=>{GM.exports=HJ;function HJ(t){Object.keys(t.jobs).forEach(WJ.bind(t)),t.jobs={}}function WJ(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var sC=v((uce,UM)=>{var NM=aC(),RJ=rC();UM.exports=IJ;function IJ(t,e,n,i){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=zJ(e,a,t[a],function(r,s){a in n.jobs&&(delete n.jobs[a],r?RJ(n):n.results[a]=s,i(r,n.results))})}function zJ(t,e,n,i){var a;return t.length==2?a=t(n,NM(i)):a=t(n,e,NM(i)),a}});var oC=v((cce,$M)=>{$M.exports=DJ;function DJ(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 lC=v((pce,BM)=>{var GJ=rC(),NJ=aC();BM.exports=UJ;function UJ(t){Object.keys(this.jobs).length&&(this.index=this.size,GJ(this),NJ(t)(null,this.results))}});var FM=v((dce,LM)=>{var $J=sC(),BJ=oC(),LJ=lC();LM.exports=FJ;function FJ(t,e,n){for(var i=BJ(t);i.index<(i.keyedList||t).length;)$J(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 LJ.bind(i,n)}});var uC=v((hce,Rp)=>{var VM=sC(),VJ=oC(),JJ=lC();Rp.exports=KJ;Rp.exports.ascending=JM;Rp.exports.descending=ZJ;function KJ(t,e,n,i){var a=VJ(t,n);return VM(t,e,a,function r(s,o){if(s){i(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){VM(t,e,a,r);return}i(null,a.results)}),JJ.bind(a,i)}function JM(t,e){return te?1:0}function ZJ(t,e){return-1*JM(t,e)}});var ZM=v((gce,KM)=>{var QJ=uC();KM.exports=YJ;function YJ(t,e,n){return QJ(t,e,null,n)}});var YM=v((mce,QM)=>{QM.exports={parallel:FM(),serial:ZM(),serialOrdered:uC()}});var cC=v((fce,XM)=>{"use strict";XM.exports=Object});var nE=v((wce,eE)=>{"use strict";eE.exports=Error});var tE=v((vce,iE)=>{"use strict";iE.exports=EvalError});var rE=v((Cce,aE)=>{"use strict";aE.exports=RangeError});var oE=v((Ace,sE)=>{"use strict";sE.exports=ReferenceError});var uE=v((bce,lE)=>{"use strict";lE.exports=SyntaxError});var Ip=v((xce,cE)=>{"use strict";cE.exports=TypeError});var dE=v((yce,pE)=>{"use strict";pE.exports=URIError});var gE=v((Pce,hE)=>{"use strict";hE.exports=Math.abs});var fE=v((jce,mE)=>{"use strict";mE.exports=Math.floor});var vE=v((Sce,wE)=>{"use strict";wE.exports=Math.max});var AE=v((Oce,CE)=>{"use strict";CE.exports=Math.min});var xE=v((Tce,bE)=>{"use strict";bE.exports=Math.pow});var PE=v((kce,yE)=>{"use strict";yE.exports=Math.round});var SE=v((Mce,jE)=>{"use strict";jE.exports=Number.isNaN||function(e){return e!==e}});var TE=v((Ece,OE)=>{"use strict";var XJ=SE();OE.exports=function(e){return XJ(e)||e===0?e:e<0?-1:1}});var ME=v((qce,kE)=>{"use strict";kE.exports=Object.getOwnPropertyDescriptor});var pC=v((_ce,EE)=>{"use strict";var zp=ME();if(zp)try{zp([],"length")}catch{zp=null}EE.exports=zp});var _E=v((Hce,qE)=>{"use strict";var Dp=Object.defineProperty||!1;if(Dp)try{Dp({},"a",{value:1})}catch{Dp=!1}qE.exports=Dp});var dC=v((Wce,HE)=>{"use strict";HE.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 IE=v((Rce,RE)=>{"use strict";var WE=typeof Symbol<"u"&&Symbol,e3=dC();RE.exports=function(){return typeof WE!="function"||typeof Symbol!="function"||typeof WE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e3()}});var hC=v((Ice,zE)=>{"use strict";zE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var gC=v((zce,DE)=>{"use strict";var n3=cC();DE.exports=n3.getPrototypeOf||null});var UE=v((Dce,NE)=>{"use strict";var i3="Function.prototype.bind called on incompatible ",t3=Object.prototype.toString,a3=Math.max,r3="[object Function]",GE=function(e,n){for(var i=[],a=0;a{"use strict";var l3=UE();$E.exports=Function.prototype.bind||l3});var Gp=v((Nce,BE)=>{"use strict";BE.exports=Function.prototype.call});var mC=v((Uce,LE)=>{"use strict";LE.exports=Function.prototype.apply});var VE=v(($ce,FE)=>{"use strict";FE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var KE=v((Bce,JE)=>{"use strict";var u3=Pl(),c3=mC(),p3=Gp(),d3=VE();JE.exports=d3||u3.call(p3,c3)});var QE=v((Lce,ZE)=>{"use strict";var h3=Pl(),g3=Ip(),m3=Gp(),f3=KE();ZE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new g3("a function is required");return f3(h3,m3,e)}});var tq=v((Fce,iq)=>{"use strict";var w3=QE(),YE=pC(),eq;try{eq=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var fC=!!eq&&YE&&YE(Object.prototype,"__proto__"),nq=Object,XE=nq.getPrototypeOf;iq.exports=fC&&typeof fC.get=="function"?w3([fC.get]):typeof XE=="function"?function(e){return XE(e==null?e:nq(e))}:!1});var lq=v((Vce,oq)=>{"use strict";var aq=hC(),rq=gC(),sq=tq();oq.exports=aq?function(e){return aq(e)}:rq?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return rq(e)}:sq?function(e){return sq(e)}:null});var Np=v((Jce,uq)=>{"use strict";var v3=Function.prototype.call,C3=Object.prototype.hasOwnProperty,A3=Pl();uq.exports=A3.call(v3,C3)});var fq=v((Kce,mq)=>{"use strict";var de,b3=cC(),x3=nE(),y3=tE(),P3=rE(),j3=oE(),Es=uE(),Ms=Ip(),S3=dE(),O3=gE(),T3=fE(),k3=vE(),M3=AE(),E3=xE(),q3=PE(),_3=TE(),hq=Function,wC=function(t){try{return hq('"use strict"; return ('+t+").constructor;")()}catch{}},jl=pC(),H3=_E(),vC=function(){throw new Ms},W3=jl?(function(){try{return arguments.callee,vC}catch{try{return jl(arguments,"callee").get}catch{return vC}}})():vC,Ts=IE()(),An=lq(),R3=gC(),I3=hC(),gq=mC(),Sl=Gp(),ks={},z3=typeof Uint8Array>"u"||!An?de:An(Uint8Array),pr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?de:ArrayBuffer,"%ArrayIteratorPrototype%":Ts&&An?An([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":ks,"%AsyncGenerator%":ks,"%AsyncGeneratorFunction%":ks,"%AsyncIteratorPrototype%":ks,"%Atomics%":typeof Atomics>"u"?de:Atomics,"%BigInt%":typeof BigInt>"u"?de:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?de:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?de:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?de:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":x3,"%eval%":eval,"%EvalError%":y3,"%Float16Array%":typeof Float16Array>"u"?de:Float16Array,"%Float32Array%":typeof Float32Array>"u"?de:Float32Array,"%Float64Array%":typeof Float64Array>"u"?de:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?de:FinalizationRegistry,"%Function%":hq,"%GeneratorFunction%":ks,"%Int8Array%":typeof Int8Array>"u"?de:Int8Array,"%Int16Array%":typeof Int16Array>"u"?de:Int16Array,"%Int32Array%":typeof Int32Array>"u"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ts&&An?An(An([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map>"u"?de:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ts||!An?de:An(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":b3,"%Object.getOwnPropertyDescriptor%":jl,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?de:Promise,"%Proxy%":typeof Proxy>"u"?de:Proxy,"%RangeError%":P3,"%ReferenceError%":j3,"%Reflect%":typeof Reflect>"u"?de:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?de:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ts||!An?de:An(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ts&&An?An(""[Symbol.iterator]()):de,"%Symbol%":Ts?Symbol:de,"%SyntaxError%":Es,"%ThrowTypeError%":W3,"%TypedArray%":z3,"%TypeError%":Ms,"%Uint8Array%":typeof Uint8Array>"u"?de:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?de:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?de:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?de:Uint32Array,"%URIError%":S3,"%WeakMap%":typeof WeakMap>"u"?de:WeakMap,"%WeakRef%":typeof WeakRef>"u"?de:WeakRef,"%WeakSet%":typeof WeakSet>"u"?de:WeakSet,"%Function.prototype.call%":Sl,"%Function.prototype.apply%":gq,"%Object.defineProperty%":H3,"%Object.getPrototypeOf%":R3,"%Math.abs%":O3,"%Math.floor%":T3,"%Math.max%":k3,"%Math.min%":M3,"%Math.pow%":E3,"%Math.round%":q3,"%Math.sign%":_3,"%Reflect.getPrototypeOf%":I3};if(An)try{null.error}catch(t){cq=An(An(t)),pr["%Error.prototype%"]=cq}var cq,D3=function t(e){var n;if(e==="%AsyncFunction%")n=wC("async function () {}");else if(e==="%GeneratorFunction%")n=wC("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=wC("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&An&&(n=An(a.prototype))}return pr[e]=n,n},pq={__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"]},Ol=Pl(),Up=Np(),G3=Ol.call(Sl,Array.prototype.concat),N3=Ol.call(gq,Array.prototype.splice),dq=Ol.call(Sl,String.prototype.replace),$p=Ol.call(Sl,String.prototype.slice),U3=Ol.call(Sl,RegExp.prototype.exec),$3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B3=/\\(\\)?/g,L3=function(e){var n=$p(e,0,1),i=$p(e,-1);if(n==="%"&&i!=="%")throw new Es("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new Es("invalid intrinsic syntax, expected opening `%`");var a=[];return dq(e,$3,function(r,s,o,l){a[a.length]=o?dq(l,B3,"$1"):s||r}),a},F3=function(e,n){var i=e,a;if(Up(pq,i)&&(a=pq[i],i="%"+a[0]+"%"),Up(pr,i)){var r=pr[i];if(r===ks&&(r=D3(i)),typeof r>"u"&&!n)throw new Ms("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:r}}throw new Es("intrinsic "+e+" does not exist!")};mq.exports=function(e,n){if(typeof e!="string"||e.length===0)throw new Ms("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ms('"allowMissing" argument must be a boolean');if(U3(/^%?[^%]*%?$/,e)===null)throw new Es("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=L3(e),a=i.length>0?i[0]:"",r=F3("%"+a+"%",n),s=r.name,o=r.value,l=!1,c=r.alias;c&&(a=c[0],N3(i,G3([0,1],c)));for(var u=1,p=!0;u=i.length){var m=jl(o,h);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[h]}else p=Up(o,h),o=o[h];p&&!l&&(pr[s]=o)}}return o}});var vq=v((Zce,wq)=>{"use strict";var V3=dC();wq.exports=function(){return V3()&&!!Symbol.toStringTag}});var bq=v((Qce,Aq)=>{"use strict";var J3=fq(),Cq=J3("%Object.defineProperty%",!0),K3=vq()(),Z3=Np(),Q3=Ip(),Bp=K3?Symbol.toStringTag:null;Aq.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 Q3("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Bp&&(i||!Z3(e,Bp))&&(Cq?Cq(e,Bp,{configurable:!a,enumerable:!1,value:n,writable:!1}):e[Bp]=n)}});var yq=v((Yce,xq)=>{"use strict";xq.exports=function(t,e){return Object.keys(e).forEach(function(n){t[n]=t[n]||e[n]}),t}});var Sq=v((Xce,jq)=>{"use strict";var xC=kM(),Y3=require("util"),CC=require("path"),X3=require("http"),e6=require("https"),n6=require("url").parse,i6=require("fs"),t6=require("stream").Stream,a6=require("crypto"),AC=WM(),r6=YM(),s6=bq(),va=Np(),bC=yq();function Pq(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function ye(t){if(!(this instanceof ye))return new ye(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],xC.call(this),t=t||{};for(var e in t)this[e]=t[e]}Y3.inherits(ye,xC);ye.LINE_BREAK=`\r -`;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var i=xC.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)};ye.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)+ye.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&va(e,"httpVersion"))&&!(e instanceof t6))&&(n.knownLength||this._valuesToMeasure.push(e))};ye.prototype._lengthRetriever=function(t,e){va(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):i6.stat(t.path,function(n,i){if(n){e(n);return}var a=i.size-(t.start?t.start:0);e(null,a)}):va(t,"httpVersion")?e(null,Number(t.headers["content-length"])):va(t,"httpModule")?(t.on("response",function(n){t.pause(),e(null,Number(n.headers["content-length"]))}),t.resume()):e("Unknown stream")};ye.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="'+Pq(t)+'"'].concat(i||[]),"Content-Type":[].concat(a||[])};typeof n.header=="object"&&bC(s,n.header);var o;for(var l in s)if(va(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+ye.LINE_BREAK)}return"--"+this.getBoundary()+ye.LINE_BREAK+r+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(t,e){var n;if(typeof e.filepath=="string"?n=CC.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?n=CC.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&va(t,"httpVersion")&&(n=CC.basename(t.client._httpMessage.path||"")),n)return'filename="'+Pq(n)+'"'};ye.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t&&t.name&&(n=AC.lookup(t.name)),!n&&t&&t.path&&(n=AC.lookup(t.path)),!n&&t&&t.readable&&va(t,"httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=AC.lookup(e.filepath||e.filename)),!n&&t&&typeof t=="object"&&(n=ye.DEFAULT_CONTENT_TYPE),n};ye.prototype._multiPartFooter=function(){return function(t){var e=ye.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)va(t,e)&&(n[e.toLowerCase()]=t[e]);return n};ye.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,i=this._streams.length;n{var qs=1e3,_s=qs*60,Hs=_s*60,dr=Hs*24,o6=dr*7,l6=dr*365.25;Oq.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return u6(t);if(n==="number"&&isFinite(t))return e.long?p6(t):c6(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function u6(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*l6;case"weeks":case"week":case"w":return n*o6;case"days":case"day":case"d":return n*dr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Hs;case"minutes":case"minute":case"mins":case"min":case"m":return n*_s;case"seconds":case"second":case"secs":case"sec":case"s":return n*qs;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function c6(t){var e=Math.abs(t);return e>=dr?Math.round(t/dr)+"d":e>=Hs?Math.round(t/Hs)+"h":e>=_s?Math.round(t/_s)+"m":e>=qs?Math.round(t/qs)+"s":t+"ms"}function p6(t){var e=Math.abs(t);return e>=dr?Lp(t,e,dr,"day"):e>=Hs?Lp(t,e,Hs,"hour"):e>=_s?Lp(t,e,_s,"minute"):e>=qs?Lp(t,e,qs,"second"):t+" ms"}function Lp(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var PC=v((npe,Tq)=>{function d6(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=a,n.enabled=o,n.humanize=yC(),n.destroy=c,Object.keys(t).forEach(u=>{n[u]=t[u]}),n.names=[],n.skips=[],n.formatters={};function e(u){let p=0;for(let h=0;h{if(T==="%%")return"%";x++;let V=n.formatters[M];if(typeof V=="function"){let N=w[x];T=V.call(f,N),w.splice(x,1),x--}return T}),n.formatArgs.call(f,w),(f.log||n.log).apply(f,w)}return m.namespace=u,m.useColors=n.useColors(),m.color=n.selectColor(u),m.extend=i,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==n.namespaces&&(g=n.namespaces,d=n.enabled(u)),d),set:w=>{h=w}}),typeof n.init=="function"&&n.init(m),m}function i(u,p){let h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function a(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of p)h[0]==="-"?n.skips.push(h.slice(1)):n.names.push(h)}function r(u,p){let h=0,g=0,d=-1,m=0;for(;h"-"+p)].join(",");return n.enable(""),u}function o(u){for(let p of n.skips)if(r(u,p))return!1;for(let p of n.names)if(r(u,p))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){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}Tq.exports=d6});var kq=v((hi,Fp)=>{hi.formatArgs=g6;hi.save=m6;hi.load=f6;hi.useColors=h6;hi.storage=w6();hi.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`."))}})();hi.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 h6(){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 g6(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fp.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)}hi.log=console.debug||console.log||(()=>{});function m6(t){try{t?hi.storage.setItem("debug",t):hi.storage.removeItem("debug")}catch{}}function f6(){let t;try{t=hi.storage.getItem("debug")||hi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function w6(){try{return localStorage}catch{}}Fp.exports=PC()(hi);var{formatters:v6}=Fp.exports;v6.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Eq=v((bn,Jp)=>{var C6=require("tty"),Vp=require("util");bn.init=S6;bn.log=y6;bn.formatArgs=b6;bn.save=P6;bn.load=j6;bn.useColors=A6;bn.destroy=Vp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");bn.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(bn.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{}bn.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 A6(){return"colors"in bn.inspectOpts?!!bn.inspectOpts.colors:C6.isatty(process.stderr.fd)}function b6(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(` + deps: ${n}}`};var Y5={keyword:"dependencies",type:"object",schemaType:"object",error:yt.error,code(t){let[e,n]=eV(t);jk(t,e),Sk(t,n)}};function eV({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 jk(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,jl.propertyInData)(n,i,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?n.if(l,()=>{for(let c of o)(0,jl.checkReportMissingProp)(t,c)}):(n.if((0,kv._)`${l} && (${(0,jl.checkMissingProp)(t,o,r)})`),(0,jl.reportMissingProp)(t,r),n.else())}}yt.validatePropertyDeps=jk;function Sk(t,e=t.schema){let{gen:n,data:i,keyword:a,it:r}=t,s=n.name("valid");for(let o in e)(0,X5.alwaysValidSchema)(r,e[o])||(n.if((0,jl.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))}yt.validateSchemaDeps=Sk;yt.default=Y5});var kk=v(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var Tk=se(),nV=be(),iV={message:"property name must be valid",params:({params:t})=>(0,Tk._)`{propertyName: ${t.propertyName}}`},tV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:iV,code(t){let{gen:e,schema:n,data:i,it:a}=t;if((0,nV.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,Tk.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Mv.default=tV});var qv=v(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});var Pp=Bi(),ot=se(),aV=Bt(),jp=be(),rV={message:"must NOT have additional properties",params:({params:t})=>(0,ot._)`{additionalProperty: ${t.additionalProperty}}`},sV={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rV,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,jp.alwaysValidSchema)(s,n))return;let c=(0,Pp.allSchemaProperties)(i.properties),u=(0,Pp.allSchemaProperties)(i.patternProperties);p(),t.ok((0,ot._)`${r} === ${aV.default.errors}`);function p(){e.forIn("key",a,w=>{!c.length&&!u.length?d(w):e.if(h(w),()=>d(w))})}function h(w){let f;if(c.length>8){let A=(0,jp.schemaRefOrVal)(s,i.properties,"properties");f=(0,Pp.isOwnProperty)(e,A,w)}else c.length?f=(0,ot.or)(...c.map(A=>(0,ot._)`${w} === ${A}`)):f=ot.nil;return u.length&&(f=(0,ot.or)(f,...u.map(A=>(0,ot._)`${(0,Pp.usePattern)(t,A)}.test(${w})`))),(0,ot.not)(f)}function g(w){e.code((0,ot._)`delete ${a}[${w}]`)}function d(w){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){g(w);return}if(n===!1){t.setParams({additionalProperty:w}),t.error(),o||e.break();return}if(typeof n=="object"&&!(0,jp.alwaysValidSchema)(s,n)){let f=e.name("valid");l.removeAdditional==="failing"?(m(w,f,!1),e.if((0,ot.not)(f),()=>{t.reset(),g(w)})):(m(w,f),o||e.if((0,ot.not)(f),()=>e.break()))}}function m(w,f,A){let b={keyword:"additionalProperties",dataProp:w,dataPropType:jp.Type.Str};A===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(b,f)}}};Ev.default=sV});var qk=v(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});var oV=cl(),Mk=Bi(),_v=be(),Ek=qv(),lV={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&&Ek.default.code(new oV.KeywordCxt(r,Ek.default,"additionalProperties"));let s=(0,Mk.allSchemaProperties)(n);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=_v.mergeEvaluated.props(e,(0,_v.toHash)(s),r.props));let o=s.filter(p=>!(0,_v.alwaysValidSchema)(r,n[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)c(p)?u(p):(e.if((0,Mk.propertyInData)(e,a,p,r.opts.ownProperties)),u(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function c(p){return r.opts.useDefaults&&!r.compositeRule&&n[p].default!==void 0}function u(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Hv.default=lV});var Rk=v(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});var _k=Bi(),Sp=se(),Hk=be(),Wk=be(),uV={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,_k.allSchemaProperties)(n),l=o.filter(m=>(0,Hk.alwaysValidSchema)(r,n[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&a.properties,u=e.name("valid");r.props!==!0&&!(r.props instanceof Sp.Name)&&(r.props=(0,Wk.evaluatedPropsToName)(e,r.props));let{props:p}=r;h();function h(){for(let m of o)c&&g(m),r.allErrors?d(m):(e.var(u,!0),d(m),e.if(u))}function g(m){for(let w in c)new RegExp(m).test(w)&&(0,Hk.checkStrictMode)(r,`property ${w} matches pattern ${m} (use allowMatchingProperties)`)}function d(m){e.forIn("key",i,w=>{e.if((0,Sp._)`${(0,_k.usePattern)(t,m)}.test(${w})`,()=>{let f=l.includes(m);f||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:w,dataPropType:Wk.Type.Str},u),r.opts.unevaluated&&p!==!0?e.assign((0,Sp._)`${p}[${w}]`,!0):!f&&!r.allErrors&&e.if((0,Sp.not)(u),()=>e.break())})})}}};Wv.default=uV});var Ik=v(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var cV=be(),pV={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:n,it:i}=t;if((0,cV.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"}};Rv.default=pV});var zk=v(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});var dV=Bi(),hV={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dV.validateUnion,error:{message:"must match a schema in anyOf"}};Iv.default=hV});var Dk=v(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var Op=se(),gV=be(),mV={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Op._)`{passingSchemas: ${t.passing}}`},fV={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:mV,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(c),t.result(s,()=>t.reset(),()=>t.error(!0));function c(){r.forEach((u,p)=>{let h;(0,gV.alwaysValidSchema)(a,u)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,Op._)`${l} && ${s}`).assign(s,!1).assign(o,(0,Op._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),h&&t.mergeEvaluated(h,Op.Name)})})}}};zv.default=fV});var Gk=v(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var wV=be(),vV={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,wV.alwaysValidSchema)(i,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Dv.default=vV});var $k=v(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});var Tp=se(),Uk=be(),CV={message:({params:t})=>(0,Tp.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Tp._)`{failingKeyword: ${t.ifClause}}`},AV={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:CV,code(t){let{gen:e,parentSchema:n,it:i}=t;n.then===void 0&&n.else===void 0&&(0,Uk.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let a=Nk(i,"then"),r=Nk(i,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let u=e.let("ifClause");t.setParams({ifClause:u}),e.if(o,c("then",u),c("else",u))}else a?e.if(o,c("then")):e.if((0,Tp.not)(o),c("else"));t.pass(s,()=>t.error(!0));function l(){let u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(u)}function c(u,p){return()=>{let h=t.subschema({keyword:u},o);e.assign(s,o),t.mergeValidEvaluated(h,s),p?e.assign(p,(0,Tp._)`${u}`):t.setParams({ifClause:u})}}}};function Nk(t,e){let n=t.schema[e];return n!==void 0&&!(0,Uk.alwaysValidSchema)(t,n)}Gv.default=AV});var Bk=v(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var bV=be(),xV={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,bV.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};Nv.default=xV});var Lk=v(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});var yV=Pv(),PV=bk(),jV=jv(),SV=yk(),OV=Pk(),TV=Ok(),kV=kk(),MV=qv(),EV=qk(),qV=Rk(),_V=Ik(),HV=zk(),WV=Dk(),RV=Gk(),IV=$k(),zV=Bk();function DV(t=!1){let e=[_V.default,HV.default,WV.default,RV.default,IV.default,zV.default,kV.default,MV.default,TV.default,EV.default,qV.default];return t?e.push(PV.default,SV.default):e.push(yV.default,jV.default),e.push(OV.default),e}Uv.default=DV});var Fk=v($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});var an=se(),GV={message:({schemaCode:t})=>(0,an.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,an._)`{format: ${t}}`},NV={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:GV,code(t,e){let{gen:n,data:i,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:c,schemaEnv:u,self:p}=o;if(!l.validateFormats)return;a?h():g();function h(){let d=n.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=n.const("fDef",(0,an._)`${d}[${s}]`),w=n.let("fType"),f=n.let("format");n.if((0,an._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>n.assign(w,(0,an._)`${m}.type || "string"`).assign(f,(0,an._)`${m}.validate`),()=>n.assign(w,(0,an._)`"string"`).assign(f,m)),t.fail$data((0,an.or)(A(),b()));function A(){return l.strictSchema===!1?an.nil:(0,an._)`${s} && !${f}`}function b(){let x=u.$async?(0,an._)`(${m}.async ? await ${f}(${i}) : ${f}(${i}))`:(0,an._)`${f}(${i})`,S=(0,an._)`(typeof ${f} == "function" ? ${x} : ${f}.test(${i}))`;return(0,an._)`${f} && ${f} !== true && ${w} === ${e} && !${S}`}}function g(){let d=p.formats[r];if(!d){A();return}if(d===!0)return;let[m,w,f]=b(d);m===e&&t.pass(x());function A(){if(l.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${r}" ignored in schema at path "${c}"`}}function b(S){let T=S instanceof RegExp?(0,an.regexpCode)(S):l.code.formats?(0,an._)`${l.code.formats}${(0,an.getProperty)(r)}`:void 0,M=n.scopeValue("formats",{key:r,ref:S,code:T});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,an._)`${M}.validate`]:["string",S,M]}function x(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!u.$async)throw new Error("async format in sync schema");return(0,an._)`await ${f}(${i})`}return typeof w=="function"?(0,an._)`${f}(${i})`:(0,an._)`${f}.test(${i})`}}}};$v.default=NV});var Vk=v(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});var UV=Fk(),$V=[UV.default];Bv.default=$V});var Jk=v(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.contentVocabulary=Os.metadataVocabulary=void 0;Os.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Os.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Zk=v(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});var BV=tk(),LV=wk(),FV=Lk(),VV=Vk(),Kk=Jk(),JV=[BV.default,LV.default,(0,FV.default)(),VV.default,Kk.metadataVocabulary,Kk.contentVocabulary];Lv.default=JV});var Xk=v(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.DiscrError=void 0;var Qk;(function(t){t.Tag="tag",t.Mapping="mapping"})(Qk||(kp.DiscrError=Qk={}))});var eM=v(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var Ts=se(),Fv=Xk(),Yk=cp(),KV=pl(),ZV=be(),QV={message:({params:{discrError:t,tagName:e}})=>t===Fv.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,Ts._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},XV={keyword:"discriminator",type:"object",schemaType:"object",error:QV,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),c=e.const("tag",(0,Ts._)`${n}${(0,Ts.getProperty)(o)}`);e.if((0,Ts._)`typeof ${c} == "string"`,()=>u(),()=>t.error(!1,{discrError:Fv.DiscrError.Tag,tag:c,tagName:o})),t.ok(l);function u(){let g=h();e.if(!1);for(let d in g)e.elseIf((0,Ts._)`${c} === ${d}`),e.assign(l,p(g[d]));e.else(),t.error(!1,{discrError:Fv.DiscrError.Mapping,tag:c,tagName:o}),e.endIf()}function p(g){let d=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:g},d);return t.mergeEvaluated(m,Ts.Name),d}function h(){var g;let d={},m=f(a),w=!0;for(let x=0;x{YV.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 Kv=v((Le,Jv)=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.MissingRefError=Le.ValidationError=Le.CodeGen=Le.Name=Le.nil=Le.stringify=Le.str=Le._=Le.KeywordCxt=Le.Ajv=void 0;var eJ=Q0(),nJ=Zk(),iJ=eM(),iM=nM(),tJ=["/properties"],Mp="http://json-schema.org/draft-07/schema",ks=class extends eJ.default{_addVocabularies(){super._addVocabularies(),nJ.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(iJ.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(iM,tJ):iM;this.addMetaSchema(e,Mp,!1),this.refs["http://json-schema.org/schema"]=Mp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Mp)?Mp:void 0)}};Le.Ajv=ks;Jv.exports=Le=ks;Jv.exports.Ajv=ks;Object.defineProperty(Le,"__esModule",{value:!0});Le.default=ks;var aJ=cl();Object.defineProperty(Le,"KeywordCxt",{enumerable:!0,get:function(){return aJ.KeywordCxt}});var Ms=se();Object.defineProperty(Le,"_",{enumerable:!0,get:function(){return Ms._}});Object.defineProperty(Le,"str",{enumerable:!0,get:function(){return Ms.str}});Object.defineProperty(Le,"stringify",{enumerable:!0,get:function(){return Ms.stringify}});Object.defineProperty(Le,"nil",{enumerable:!0,get:function(){return Ms.nil}});Object.defineProperty(Le,"Name",{enumerable:!0,get:function(){return Ms.Name}});Object.defineProperty(Le,"CodeGen",{enumerable:!0,get:function(){return Ms.CodeGen}});var rJ=lp();Object.defineProperty(Le,"ValidationError",{enumerable:!0,get:function(){return rJ.default}});var sJ=pl();Object.defineProperty(Le,"MissingRefError",{enumerable:!0,get:function(){return sJ.default}})});var cM=v(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.formatNames=jt.fastFormats=jt.fullFormats=void 0;function Pt(t,e){return{validate:t,compare:e}}jt.fullFormats={date:Pt(sM,Yv),time:Pt(Qv(!0),eC),"date-time":Pt(tM(!0),lM),"iso-time":Pt(Qv(),oM),"iso-date-time":Pt(tM(),uM),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:dJ,"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:CJ,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:hJ,int32:{type:"number",validate:fJ},int64:{type:"number",validate:wJ},float:{type:"number",validate:rM},double:{type:"number",validate:rM},password:!0,binary:!0};jt.fastFormats={...jt.fullFormats,date:Pt(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Yv),time:Pt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,eC),"date-time":Pt(/^\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,lM),"iso-time":Pt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,oM),"iso-date-time":Pt(/^\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,uM),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};jt.formatNames=Object.keys(jt.fullFormats);function oJ(t){return t%4===0&&(t%100!==0||t%400===0)}var lJ=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,uJ=[0,31,28,31,30,31,30,31,31,30,31,30,31];function sM(t){let e=lJ.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&&oJ(n)?29:uJ[i])}function Yv(t,e){if(t&&e)return t>e?1:t23||u>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-u*l,h=a-c*l-(p<0?1:0);return(h===23||h===-1)&&(p===59||p===-1)&&s<61}}function eC(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 oM(t,e){if(!(t&&e))return;let n=Zv.exec(t),i=Zv.exec(e);if(n&&i)return t=n[1]+n[2]+n[3],e=i[1]+i[2]+i[3],t>e?1:t=gJ}function wJ(t){return Number.isInteger(t)}function rM(){return!0}var vJ=/[^\\]\\Z/;function CJ(t){if(vJ.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var pM=v(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.formatLimitDefinition=void 0;var AJ=Kv(),lt=se(),va=lt.operators,Ep={formatMaximum:{okStr:"<=",ok:va.LTE,fail:va.GT},formatMinimum:{okStr:">=",ok:va.GTE,fail:va.LT},formatExclusiveMaximum:{okStr:"<",ok:va.LT,fail:va.GTE},formatExclusiveMinimum:{okStr:">",ok:va.GT,fail:va.LTE}},bJ={message:({keyword:t,schemaCode:e})=>(0,lt.str)`should be ${Ep[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,lt._)`{comparison: ${Ep[t].okStr}, limit: ${e}}`};Es.formatLimitDefinition={keyword:Object.keys(Ep),type:"string",schemaType:"string",$data:!0,error:bJ,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 AJ.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?c():u();function c(){let h=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),g=e.const("fmt",(0,lt._)`${h}[${l.schemaCode}]`);t.fail$data((0,lt.or)((0,lt._)`typeof ${g} != "object"`,(0,lt._)`${g} instanceof RegExp`,(0,lt._)`typeof ${g}.compare != "function"`,p(g)))}function u(){let h=l.schema,g=o.formats[h];if(!g||g===!0)return;if(typeof g!="object"||g instanceof RegExp||typeof g.compare!="function")throw new Error(`"${a}": format "${h}" does not define "compare" function`);let d=e.scopeValue("formats",{key:h,ref:g,code:s.code.formats?(0,lt._)`${s.code.formats}${(0,lt.getProperty)(h)}`:void 0});t.fail$data(p(d))}function p(h){return(0,lt._)`${h}.compare(${n}, ${i}) ${Ep[a].fail} 0`}},dependencies:["format"]};var xJ=t=>(t.addKeyword(Es.formatLimitDefinition),t);Es.default=xJ});var mM=v((Sl,gM)=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var qs=cM(),yJ=pM(),nC=se(),dM=new nC.Name("fullFormats"),PJ=new nC.Name("fastFormats"),iC=(t,e={keywords:!0})=>{if(Array.isArray(e))return hM(t,e,qs.fullFormats,dM),t;let[n,i]=e.mode==="fast"?[qs.fastFormats,PJ]:[qs.fullFormats,dM],a=e.formats||qs.formatNames;return hM(t,a,n,i),e.keywords&&(0,yJ.default)(t),t};iC.get=(t,e="full")=>{let i=(e==="fast"?qs.fastFormats:qs.fullFormats)[t];if(!i)throw new Error(`Unknown format "${t}"`);return i};function hM(t,e,n,i){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,nC._)`require("ajv-formats/dist/formats").${i}`);for(let s of e)t.addFormat(s,n[s])}gM.exports=Sl=iC;Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=iC});var MM=v((vce,kM)=>{var TM=require("stream").Stream,_J=require("util");kM.exports=ut;function ut(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}_J.inherits(ut,TM);ut.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(ut.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});ut.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};ut.prototype.resume=function(){this._released||this.release(),this.source.resume()};ut.prototype.pause=function(){this.source.pause()};ut.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};ut.prototype.pipe=function(){var t=TM.prototype.pipe.apply(this,arguments);return this.resume(),t};ut.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)};ut.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((Cce,_M)=>{var HJ=require("util"),qM=require("stream").Stream,EM=MM();_M.exports=Ye;function Ye(){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}HJ.inherits(Ye,qM);Ye.create=function(t){var e=new this;t=t||{};for(var n in t)e[n]=t[n];return e};Ye.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ye.prototype.append=function(t){var e=Ye.isStreamLike(t);if(e){if(!(t instanceof EM)){var n=EM.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};Ye.prototype.pipe=function(t,e){return qM.prototype.pipe.call(this,t,e),this.resume(),t};Ye.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}};Ye.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=Ye.isStreamLike(n);i&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Ye.prototype._pipeNext=function(t){this._currentStream=t;var e=Ye.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()};Ye.prototype._handleErrors=function(t){var e=this;t.on("error",function(n){e._emitError(n)})};Ye.prototype.write=function(t){this.emit("data",t)};Ye.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ye.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")};Ye.prototype.end=function(){this._reset(),this.emit("end")};Ye.prototype.destroy=function(){this._reset(),this.emit("close")};Ye.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ye.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ye.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)};Ye.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var WM=v((Ace,WJ)=>{WJ.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 IM=v((bce,RM)=>{RM.exports=WM()});var GM=v(hi=>{"use strict";var Dp=IM(),RJ=require("path").extname,zM=/^\s*([^;\s]*)(?:;|\s|$)/,IJ=/^text\//i;hi.charset=DM;hi.charsets={lookup:DM};hi.contentType=zJ;hi.extension=DJ;hi.extensions=Object.create(null);hi.lookup=GJ;hi.types=Object.create(null);NJ(hi.extensions,hi.types);function DM(t){if(!t||typeof t!="string")return!1;var e=zM.exec(t),n=e&&Dp[e[1].toLowerCase()];return n&&n.charset?n.charset:e&&IJ.test(e[1])?"UTF-8":!1}function zJ(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?hi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var n=hi.charset(e);n&&(e+="; charset="+n.toLowerCase())}return e}function DJ(t){if(!t||typeof t!="string")return!1;var e=zM.exec(t),n=e&&hi.extensions[e[1].toLowerCase()];return!n||!n.length?!1:n[0]}function GJ(t){if(!t||typeof t!="string")return!1;var e=RJ("x."+t).toLowerCase().substr(1);return e&&hi.types[e]||!1}function NJ(t,e){var n=["nginx","apache",void 0,"iana"];Object.keys(Dp).forEach(function(a){var r=Dp[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;ou||c===u&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var UM=v((yce,NM)=>{NM.exports=UJ;function UJ(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var oC=v((Pce,BM)=>{var $M=UM();BM.exports=$J;function $J(t){var e=!1;return $M(function(){e=!0}),function(i,a){e?t(i,a):$M(function(){t(i,a)})}}});var lC=v((jce,LM)=>{LM.exports=BJ;function BJ(t){Object.keys(t.jobs).forEach(LJ.bind(t)),t.jobs={}}function LJ(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var uC=v((Sce,VM)=>{var FM=oC(),FJ=lC();VM.exports=VJ;function VJ(t,e,n,i){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=JJ(e,a,t[a],function(r,s){a in n.jobs&&(delete n.jobs[a],r?FJ(n):n.results[a]=s,i(r,n.results))})}function JJ(t,e,n,i){var a;return t.length==2?a=t(n,FM(i)):a=t(n,e,FM(i)),a}});var cC=v((Oce,JM)=>{JM.exports=KJ;function KJ(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 pC=v((Tce,KM)=>{var ZJ=lC(),QJ=oC();KM.exports=XJ;function XJ(t){Object.keys(this.jobs).length&&(this.index=this.size,ZJ(this),QJ(t)(null,this.results))}});var QM=v((kce,ZM)=>{var YJ=uC(),e3=cC(),n3=pC();ZM.exports=i3;function i3(t,e,n){for(var i=e3(t);i.index<(i.keyedList||t).length;)YJ(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 n3.bind(i,n)}});var dC=v((Mce,Gp)=>{var XM=uC(),t3=cC(),a3=pC();Gp.exports=r3;Gp.exports.ascending=YM;Gp.exports.descending=s3;function r3(t,e,n,i){var a=t3(t,n);return XM(t,e,a,function r(s,o){if(s){i(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){XM(t,e,a,r);return}i(null,a.results)}),a3.bind(a,i)}function YM(t,e){return te?1:0}function s3(t,e){return-1*YM(t,e)}});var nE=v((Ece,eE)=>{var o3=dC();eE.exports=l3;function l3(t,e,n){return o3(t,e,null,n)}});var tE=v((qce,iE)=>{iE.exports={parallel:QM(),serial:nE(),serialOrdered:dC()}});var hC=v((_ce,aE)=>{"use strict";aE.exports=Object});var sE=v((Hce,rE)=>{"use strict";rE.exports=Error});var lE=v((Wce,oE)=>{"use strict";oE.exports=EvalError});var cE=v((Rce,uE)=>{"use strict";uE.exports=RangeError});var dE=v((Ice,pE)=>{"use strict";pE.exports=ReferenceError});var gE=v((zce,hE)=>{"use strict";hE.exports=SyntaxError});var Np=v((Dce,mE)=>{"use strict";mE.exports=TypeError});var wE=v((Gce,fE)=>{"use strict";fE.exports=URIError});var CE=v((Nce,vE)=>{"use strict";vE.exports=Math.abs});var bE=v((Uce,AE)=>{"use strict";AE.exports=Math.floor});var yE=v(($ce,xE)=>{"use strict";xE.exports=Math.max});var jE=v((Bce,PE)=>{"use strict";PE.exports=Math.min});var OE=v((Lce,SE)=>{"use strict";SE.exports=Math.pow});var kE=v((Fce,TE)=>{"use strict";TE.exports=Math.round});var EE=v((Vce,ME)=>{"use strict";ME.exports=Number.isNaN||function(e){return e!==e}});var _E=v((Jce,qE)=>{"use strict";var u3=EE();qE.exports=function(e){return u3(e)||e===0?e:e<0?-1:1}});var WE=v((Kce,HE)=>{"use strict";HE.exports=Object.getOwnPropertyDescriptor});var gC=v((Zce,RE)=>{"use strict";var Up=WE();if(Up)try{Up([],"length")}catch{Up=null}RE.exports=Up});var zE=v((Qce,IE)=>{"use strict";var $p=Object.defineProperty||!1;if($p)try{$p({},"a",{value:1})}catch{$p=!1}IE.exports=$p});var mC=v((Xce,DE)=>{"use strict";DE.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((Yce,NE)=>{"use strict";var GE=typeof Symbol<"u"&&Symbol,c3=mC();NE.exports=function(){return typeof GE!="function"||typeof Symbol!="function"||typeof GE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:c3()}});var fC=v((epe,$E)=>{"use strict";$E.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var wC=v((npe,BE)=>{"use strict";var p3=hC();BE.exports=p3.getPrototypeOf||null});var VE=v((ipe,FE)=>{"use strict";var d3="Function.prototype.bind called on incompatible ",h3=Object.prototype.toString,g3=Math.max,m3="[object Function]",LE=function(e,n){for(var i=[],a=0;a{"use strict";var v3=VE();JE.exports=Function.prototype.bind||v3});var Bp=v((ape,KE)=>{"use strict";KE.exports=Function.prototype.call});var vC=v((rpe,ZE)=>{"use strict";ZE.exports=Function.prototype.apply});var XE=v((spe,QE)=>{"use strict";QE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var eq=v((ope,YE)=>{"use strict";var C3=Tl(),A3=vC(),b3=Bp(),x3=XE();YE.exports=x3||C3.call(b3,A3)});var iq=v((lpe,nq)=>{"use strict";var y3=Tl(),P3=Np(),j3=Bp(),S3=eq();nq.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new P3("a function is required");return S3(y3,j3,e)}});var lq=v((upe,oq)=>{"use strict";var O3=iq(),tq=gC(),rq;try{rq=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var CC=!!rq&&tq&&tq(Object.prototype,"__proto__"),sq=Object,aq=sq.getPrototypeOf;oq.exports=CC&&typeof CC.get=="function"?O3([CC.get]):typeof aq=="function"?function(e){return aq(e==null?e:sq(e))}:!1});var hq=v((cpe,dq)=>{"use strict";var uq=fC(),cq=wC(),pq=lq();dq.exports=uq?function(e){return uq(e)}:cq?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return cq(e)}:pq?function(e){return pq(e)}:null});var Lp=v((ppe,gq)=>{"use strict";var T3=Function.prototype.call,k3=Object.prototype.hasOwnProperty,M3=Tl();gq.exports=M3.call(T3,k3)});var bq=v((dpe,Aq)=>{"use strict";var de,E3=hC(),q3=sE(),_3=lE(),H3=cE(),W3=dE(),Rs=gE(),Ws=Np(),R3=wE(),I3=CE(),z3=bE(),D3=yE(),G3=jE(),N3=OE(),U3=kE(),$3=_E(),vq=Function,AC=function(t){try{return vq('"use strict"; return ('+t+").constructor;")()}catch{}},kl=gC(),B3=zE(),bC=function(){throw new Ws},L3=kl?(function(){try{return arguments.callee,bC}catch{try{return kl(arguments,"callee").get}catch{return bC}}})():bC,_s=UE()(),An=hq(),F3=wC(),V3=fC(),Cq=vC(),Ml=Bp(),Hs={},J3=typeof Uint8Array>"u"||!An?de:An(Uint8Array),fr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?de:ArrayBuffer,"%ArrayIteratorPrototype%":_s&&An?An([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":Hs,"%AsyncGenerator%":Hs,"%AsyncGeneratorFunction%":Hs,"%AsyncIteratorPrototype%":Hs,"%Atomics%":typeof Atomics>"u"?de:Atomics,"%BigInt%":typeof BigInt>"u"?de:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?de:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?de:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?de:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":q3,"%eval%":eval,"%EvalError%":_3,"%Float16Array%":typeof Float16Array>"u"?de:Float16Array,"%Float32Array%":typeof Float32Array>"u"?de:Float32Array,"%Float64Array%":typeof Float64Array>"u"?de:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?de:FinalizationRegistry,"%Function%":vq,"%GeneratorFunction%":Hs,"%Int8Array%":typeof Int8Array>"u"?de:Int8Array,"%Int16Array%":typeof Int16Array>"u"?de:Int16Array,"%Int32Array%":typeof Int32Array>"u"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_s&&An?An(An([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map>"u"?de:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_s||!An?de:An(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":E3,"%Object.getOwnPropertyDescriptor%":kl,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?de:Promise,"%Proxy%":typeof Proxy>"u"?de:Proxy,"%RangeError%":H3,"%ReferenceError%":W3,"%Reflect%":typeof Reflect>"u"?de:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?de:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_s||!An?de:An(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_s&&An?An(""[Symbol.iterator]()):de,"%Symbol%":_s?Symbol:de,"%SyntaxError%":Rs,"%ThrowTypeError%":L3,"%TypedArray%":J3,"%TypeError%":Ws,"%Uint8Array%":typeof Uint8Array>"u"?de:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?de:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?de:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?de:Uint32Array,"%URIError%":R3,"%WeakMap%":typeof WeakMap>"u"?de:WeakMap,"%WeakRef%":typeof WeakRef>"u"?de:WeakRef,"%WeakSet%":typeof WeakSet>"u"?de:WeakSet,"%Function.prototype.call%":Ml,"%Function.prototype.apply%":Cq,"%Object.defineProperty%":B3,"%Object.getPrototypeOf%":F3,"%Math.abs%":I3,"%Math.floor%":z3,"%Math.max%":D3,"%Math.min%":G3,"%Math.pow%":N3,"%Math.round%":U3,"%Math.sign%":$3,"%Reflect.getPrototypeOf%":V3};if(An)try{null.error}catch(t){mq=An(An(t)),fr["%Error.prototype%"]=mq}var mq,K3=function t(e){var n;if(e==="%AsyncFunction%")n=AC("async function () {}");else if(e==="%GeneratorFunction%")n=AC("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=AC("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&An&&(n=An(a.prototype))}return fr[e]=n,n},fq={__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"]},El=Tl(),Fp=Lp(),Z3=El.call(Ml,Array.prototype.concat),Q3=El.call(Cq,Array.prototype.splice),wq=El.call(Ml,String.prototype.replace),Vp=El.call(Ml,String.prototype.slice),X3=El.call(Ml,RegExp.prototype.exec),Y3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,e6=/\\(\\)?/g,n6=function(e){var n=Vp(e,0,1),i=Vp(e,-1);if(n==="%"&&i!=="%")throw new Rs("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new Rs("invalid intrinsic syntax, expected opening `%`");var a=[];return wq(e,Y3,function(r,s,o,l){a[a.length]=o?wq(l,e6,"$1"):s||r}),a},i6=function(e,n){var i=e,a;if(Fp(fq,i)&&(a=fq[i],i="%"+a[0]+"%"),Fp(fr,i)){var r=fr[i];if(r===Hs&&(r=K3(i)),typeof r>"u"&&!n)throw new Ws("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:r}}throw new Rs("intrinsic "+e+" does not exist!")};Aq.exports=function(e,n){if(typeof e!="string"||e.length===0)throw new Ws("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ws('"allowMissing" argument must be a boolean');if(X3(/^%?[^%]*%?$/,e)===null)throw new Rs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=n6(e),a=i.length>0?i[0]:"",r=i6("%"+a+"%",n),s=r.name,o=r.value,l=!1,c=r.alias;c&&(a=c[0],Q3(i,Z3([0,1],c)));for(var u=1,p=!0;u=i.length){var m=kl(o,h);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[h]}else p=Fp(o,h),o=o[h];p&&!l&&(fr[s]=o)}}return o}});var yq=v((hpe,xq)=>{"use strict";var t6=mC();xq.exports=function(){return t6()&&!!Symbol.toStringTag}});var Sq=v((gpe,jq)=>{"use strict";var a6=bq(),Pq=a6("%Object.defineProperty%",!0),r6=yq()(),s6=Lp(),o6=Np(),Jp=r6?Symbol.toStringTag:null;jq.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 o6("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Jp&&(i||!s6(e,Jp))&&(Pq?Pq(e,Jp,{configurable:!a,enumerable:!1,value:n,writable:!1}):e[Jp]=n)}});var Tq=v((mpe,Oq)=>{"use strict";Oq.exports=function(t,e){return Object.keys(e).forEach(function(n){t[n]=t[n]||e[n]}),t}});var Eq=v((fpe,Mq)=>{"use strict";var jC=HM(),l6=require("util"),xC=require("path"),u6=require("http"),c6=require("https"),p6=require("url").parse,d6=require("fs"),h6=require("stream").Stream,g6=require("crypto"),yC=GM(),m6=tE(),f6=Sq(),Aa=Lp(),PC=Tq();function kq(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function ye(t){if(!(this instanceof ye))return new ye(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],jC.call(this),t=t||{};for(var e in t)this[e]=t[e]}l6.inherits(ye,jC);ye.LINE_BREAK=`\r +`;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var i=jC.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)};ye.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)+ye.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Aa(e,"httpVersion"))&&!(e instanceof h6))&&(n.knownLength||this._valuesToMeasure.push(e))};ye.prototype._lengthRetriever=function(t,e){Aa(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):d6.stat(t.path,function(n,i){if(n){e(n);return}var a=i.size-(t.start?t.start:0);e(null,a)}):Aa(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Aa(t,"httpModule")?(t.on("response",function(n){t.pause(),e(null,Number(n.headers["content-length"]))}),t.resume()):e("Unknown stream")};ye.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="'+kq(t)+'"'].concat(i||[]),"Content-Type":[].concat(a||[])};typeof n.header=="object"&&PC(s,n.header);var o;for(var l in s)if(Aa(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+ye.LINE_BREAK)}return"--"+this.getBoundary()+ye.LINE_BREAK+r+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(t,e){var n;if(typeof e.filepath=="string"?n=xC.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?n=xC.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Aa(t,"httpVersion")&&(n=xC.basename(t.client._httpMessage.path||"")),n)return'filename="'+kq(n)+'"'};ye.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t&&t.name&&(n=yC.lookup(t.name)),!n&&t&&t.path&&(n=yC.lookup(t.path)),!n&&t&&t.readable&&Aa(t,"httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=yC.lookup(e.filepath||e.filename)),!n&&t&&typeof t=="object"&&(n=ye.DEFAULT_CONTENT_TYPE),n};ye.prototype._multiPartFooter=function(){return function(t){var e=ye.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)Aa(t,e)&&(n[e.toLowerCase()]=t[e]);return n};ye.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,i=this._streams.length;n{var Is=1e3,zs=Is*60,Ds=zs*60,wr=Ds*24,w6=wr*7,v6=wr*365.25;qq.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return C6(t);if(n==="number"&&isFinite(t))return e.long?b6(t):A6(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function C6(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*v6;case"weeks":case"week":case"w":return n*w6;case"days":case"day":case"d":return n*wr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ds;case"minutes":case"minute":case"mins":case"min":case"m":return n*zs;case"seconds":case"second":case"secs":case"sec":case"s":return n*Is;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function A6(t){var e=Math.abs(t);return e>=wr?Math.round(t/wr)+"d":e>=Ds?Math.round(t/Ds)+"h":e>=zs?Math.round(t/zs)+"m":e>=Is?Math.round(t/Is)+"s":t+"ms"}function b6(t){var e=Math.abs(t);return e>=wr?Kp(t,e,wr,"day"):e>=Ds?Kp(t,e,Ds,"hour"):e>=zs?Kp(t,e,zs,"minute"):e>=Is?Kp(t,e,Is,"second"):t+" ms"}function Kp(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var OC=v((vpe,_q)=>{function x6(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=a,n.enabled=o,n.humanize=SC(),n.destroy=c,Object.keys(t).forEach(u=>{n[u]=t[u]}),n.names=[],n.skips=[],n.formatters={};function e(u){let p=0;for(let h=0;h{if(T==="%%")return"%";x++;let V=n.formatters[M];if(typeof V=="function"){let N=w[x];T=V.call(f,N),w.splice(x,1),x--}return T}),n.formatArgs.call(f,w),(f.log||n.log).apply(f,w)}return m.namespace=u,m.useColors=n.useColors(),m.color=n.selectColor(u),m.extend=i,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==n.namespaces&&(g=n.namespaces,d=n.enabled(u)),d),set:w=>{h=w}}),typeof n.init=="function"&&n.init(m),m}function i(u,p){let h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function a(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of p)h[0]==="-"?n.skips.push(h.slice(1)):n.names.push(h)}function r(u,p){let h=0,g=0,d=-1,m=0;for(;h"-"+p)].join(",");return n.enable(""),u}function o(u){for(let p of n.skips)if(r(u,p))return!1;for(let p of n.names)if(r(u,p))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){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}_q.exports=x6});var Hq=v((gi,Zp)=>{gi.formatArgs=P6;gi.save=j6;gi.load=S6;gi.useColors=y6;gi.storage=O6();gi.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`."))}})();gi.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 y6(){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 P6(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Zp.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)}gi.log=console.debug||console.log||(()=>{});function j6(t){try{t?gi.storage.setItem("debug",t):gi.storage.removeItem("debug")}catch{}}function S6(){let t;try{t=gi.storage.getItem("debug")||gi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function O6(){try{return localStorage}catch{}}Zp.exports=OC()(gi);var{formatters:T6}=Zp.exports;T6.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Rq=v((bn,Xp)=>{var k6=require("tty"),Qp=require("util");bn.init=R6;bn.log=_6;bn.formatArgs=E6;bn.save=H6;bn.load=W6;bn.useColors=M6;bn.destroy=Qp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");bn.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(bn.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{}bn.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 M6(){return"colors"in bn.inspectOpts?!!bn.inspectOpts.colors:k6.isatty(process.stderr.fd)}function E6(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+"+Jp.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=x6()+e+" "+t[0]}function x6(){return bn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function y6(...t){return process.stderr.write(Vp.formatWithOptions(bn.inspectOpts,...t)+` -`)}function P6(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function j6(){return process.env.DEBUG}function S6(t){t.inspectOpts={};let e=Object.keys(bn.inspectOpts);for(let n=0;ne.trim()).join(" ")};Mq.O=function(t){return this.inspectOpts.colors=this.useColors,Vp.inspect(t,this.inspectOpts)}});var Tl=v((ipe,jC)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jC.exports=kq():jC.exports=Eq()});var qq=v(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});function O6(t){return function(e,n){return new Promise((i,a)=>{t.call(this,e,n,(r,s)=>{r?a(r):i(s)})})}}SC.default=O6});var Wq=v((TC,Hq)=>{"use strict";var _q=TC&&TC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},T6=require("events"),k6=_q(Tl()),M6=_q(qq()),kl=k6.default("agent-base");function E6(t){return!!t&&typeof t.addRequest=="function"}function OC(){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 Kp(t,e){return new Kp.Agent(t,e)}(function(t){class e extends T6.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:OC()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:OC()?"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=OC()),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,c=g=>{i._hadError||(i.emit("error",g),i._hadError=!0)},u=()=>{o=null,s=!0;let g=new Error(`A "socket" was not created for HTTP request before ${l}ms`);g.code="ETIMEOUT",c(g)},p=g=>{s||(o!==null&&(clearTimeout(o),o=null),c(g))},h=g=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),E6(g)){kl("Callback returned another Agent instance %o",g.constructor.name),g.addRequest(i,r);return}if(g){g.once("free",()=>{this.freeSocket(g,r)}),i.onSocket(g);return}let d=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);c(d)};if(typeof this.callback!="function"){c(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(kl("Converting legacy callback function to promise"),this.promisifiedCallback=M6.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(u,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{kl("Resolving socket for %o request: %o",r.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,r)).then(h,p)}catch(g){Promise.reject(g).catch(p)}}freeSocket(i,a){kl("Freeing socket %o %o",i.constructor.name,a),i.destroy()}destroy(){kl("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Kp||(Kp={}));Hq.exports=Kp});var Rq=v(El=>{"use strict";var q6=El&&El.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(El,"__esModule",{value:!0});var _6=q6(Tl()),Ml=_6.default("https-proxy-agent:parse-proxy-response");function H6(t){return new Promise((e,n)=>{let i=0,a=[];function r(){let p=t.read();p?u(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){Ml("onclose had error %o",p)}function l(){Ml("onend")}function c(p){s(),Ml("onerror %o",p),n(p)}function u(p){a.push(p),i+=p.length;let h=Buffer.concat(a,i);if(h.indexOf(`\r +`+r),t.push(a+"m+"+Xp.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=q6()+e+" "+t[0]}function q6(){return bn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function _6(...t){return process.stderr.write(Qp.formatWithOptions(bn.inspectOpts,...t)+` +`)}function H6(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function W6(){return process.env.DEBUG}function R6(t){t.inspectOpts={};let e=Object.keys(bn.inspectOpts);for(let n=0;ne.trim()).join(" ")};Wq.O=function(t){return this.inspectOpts.colors=this.useColors,Qp.inspect(t,this.inspectOpts)}});var ql=v((Cpe,TC)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?TC.exports=Hq():TC.exports=Rq()});var Iq=v(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});function I6(t){return function(e,n){return new Promise((i,a)=>{t.call(this,e,n,(r,s)=>{r?a(r):i(s)})})}}kC.default=I6});var Gq=v((EC,Dq)=>{"use strict";var zq=EC&&EC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},z6=require("events"),D6=zq(ql()),G6=zq(Iq()),_l=D6.default("agent-base");function N6(t){return!!t&&typeof t.addRequest=="function"}function MC(){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 Yp(t,e){return new Yp.Agent(t,e)}(function(t){class e extends z6.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:MC()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:MC()?"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=MC()),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,c=g=>{i._hadError||(i.emit("error",g),i._hadError=!0)},u=()=>{o=null,s=!0;let g=new Error(`A "socket" was not created for HTTP request before ${l}ms`);g.code="ETIMEOUT",c(g)},p=g=>{s||(o!==null&&(clearTimeout(o),o=null),c(g))},h=g=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),N6(g)){_l("Callback returned another Agent instance %o",g.constructor.name),g.addRequest(i,r);return}if(g){g.once("free",()=>{this.freeSocket(g,r)}),i.onSocket(g);return}let d=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);c(d)};if(typeof this.callback!="function"){c(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(_l("Converting legacy callback function to promise"),this.promisifiedCallback=G6.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(u,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{_l("Resolving socket for %o request: %o",r.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,r)).then(h,p)}catch(g){Promise.reject(g).catch(p)}}freeSocket(i,a){_l("Freeing socket %o %o",i.constructor.name,a),i.destroy()}destroy(){_l("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Yp||(Yp={}));Dq.exports=Yp});var Nq=v(Wl=>{"use strict";var U6=Wl&&Wl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wl,"__esModule",{value:!0});var $6=U6(ql()),Hl=$6.default("https-proxy-agent:parse-proxy-response");function B6(t){return new Promise((e,n)=>{let i=0,a=[];function r(){let p=t.read();p?u(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){Hl("onclose had error %o",p)}function l(){Hl("onend")}function c(p){s(),Hl("onerror %o",p),n(p)}function u(p){a.push(p),i+=p.length;let h=Buffer.concat(a,i);if(h.indexOf(`\r \r -`)===-1){Ml("have not received end of HTTP headers yet..."),r();return}let d=h.toString("ascii",0,h.indexOf(`\r -`)),m=+d.split(" ")[1];Ml("got proxy server response: %o",d),e({statusCode:m,buffered:h})}t.on("error",c),t.on("close",o),t.on("end",l),r()})}El.default=H6});var Dq=v(hr=>{"use strict";var W6=hr&&hr.__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(u){try{c(i.next(u))}catch(p){s(p)}}function l(u){try{c(i.throw(u))}catch(p){s(p)}}function c(u){u.done?r(u.value):a(u.value).then(o,l)}c((i=i.apply(t,e||[])).next())})},Ws=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var Iq=Ws(require("net")),zq=Ws(require("tls")),R6=Ws(require("url")),I6=Ws(require("assert")),z6=Ws(Tl()),D6=Wq(),G6=Ws(Rq()),ql=z6.default("https-proxy-agent:agent"),kC=class extends D6.Agent{constructor(e){let n;if(typeof e=="string"?n=R6.default.parse(e):n=e,!n)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");ql("creating new HttpsProxyAgent instance: %o",n),super(n);let i=Object.assign({},n);this.secureProxy=n.secureProxy||$6(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 W6(this,void 0,void 0,function*(){let{proxy:i,secureProxy:a}=this,r;a?(ql("Creating `tls.Socket`: %o",i),r=zq.default.connect(i)):(ql("Creating `net.Socket`: %o",i),r=Iq.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:c,port:u,secureEndpoint:p}=n;U6(u,p)||(c+=`:${u}`),s.Host=c,s.Connection="close";for(let w of Object.keys(s))l+=`${w}: ${s[w]}\r -`;let h=G6.default(r);r.write(`${l}\r -`);let{statusCode:g,buffered:d}=yield h;if(g===200){if(e.once("socket",N6),n.secureEndpoint){ql("Upgrading socket connection to TLS");let w=n.servername||n.host;return zq.default.connect(Object.assign(Object.assign({},B6(n,"host","hostname","path","port")),{socket:r,servername:w}))}return r}r.destroy();let m=new Iq.default.Socket({writable:!1});return m.readable=!0,e.once("socket",w=>{ql("replaying proxy buffer for failed request"),I6.default(w.listenerCount("data")>0),w.push(d),w.push(null)}),m})}};hr.default=kC;function N6(t){t.resume()}function U6(t,e){return!!(!e&&t===80||e&&t===443)}function $6(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function B6(t,...e){let n={},i;for(i in t)e.includes(i)||(n[i]=t[i]);return n}});var Nq=v((qC,Gq)=>{"use strict";var L6=qC&&qC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},MC=L6(Dq());function EC(t){return new MC.default(t)}(function(t){t.HttpsProxyAgent=MC.default,t.prototype=MC.default.prototype})(EC||(EC={}));Gq.exports=EC});var $q=v((spe,Uq)=>{var _l;Uq.exports=function(){if(!_l){try{_l=Tl()("follow-redirects")}catch{}typeof _l!="function"&&(_l=function(){})}_l.apply(null,arguments)}});var Jq=v((ope,BC)=>{var Wl=require("url"),Hl=Wl.URL,F6=require("http"),V6=require("https"),IC=require("stream").Writable,zC=require("assert"),Bq=$q();(function(){var e=typeof process<"u",n=typeof window<"u"&&typeof document<"u",i=mr(Error.captureStackTrace);!e&&(n||!i)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var DC=!1;try{zC(new Hl(""))}catch(t){DC=t.code==="ERR_INVALID_URL"}var J6=["Authorization","Proxy-Authorization","Cookie"],K6=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],GC=["abort","aborted","connect","error","socket","timeout"],NC=Object.create(null);GC.forEach(function(t){NC[t]=function(e,n,i){this._redirectable.emit(t,e,n,i)}});var HC=Rl("ERR_INVALID_URL","Invalid URL",TypeError),WC=Rl("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Z6=Rl("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",WC),Q6=Rl("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Y6=Rl("ERR_STREAM_WRITE_AFTER_END","write after end"),X6=IC.prototype.destroy||Fq;function gi(t,e){IC.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 WC?a:new WC({cause:a}))}},this._headerFilter=new RegExp("^(?:"+J6.concat(t.sensitiveHeaders).map(r9).join("|")+")$","i"),this._performRequest()}gi.prototype=Object.create(IC.prototype);gi.prototype.abort=function(){$C(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};gi.prototype.destroy=function(t){return $C(this._currentRequest,t),X6.call(this,t),this};gi.prototype.write=function(t,e,n){if(this._ending)throw new Y6;if(!gr(t)&&!t9(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(mr(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 Q6),this.abort())};gi.prototype.end=function(t,e,n){if(mr(t)?(n=t,t=e=null):mr(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}};gi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};gi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};gi.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){gi.prototype[t]=function(e,n){return this._currentRequest[t](e,n)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(gi.prototype,t,{get:function(){return this._currentRequest[t]}})});gi.prototype._sanitizeOptions=function(t){if(!t.headers)t.headers={};else if(Array.isArray(t.headers)){var e=t.headers;t.headers={};for(var n=0;n=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if($C(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Z6;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=[],_C(/^content-/i,this._options.headers));var s=_C(/^host$/i,this._options.headers),o=UC(this._currentUrl),l=s||o.host,c=/^\w+:/.test(n)?this._currentUrl:Wl.format(Object.assign(o,{host:l})),u=e9(n,c);if(Bq("redirecting to",u.href),this._isRedirect=!0,RC(u,this._options),(u.protocol!==o.protocol&&u.protocol!=="https:"||u.host!==l&&!n9(u.host,l))&&_C(this._headerFilter,this._options.headers),mr(a)){var p={headers:t.headers,statusCode:e},h={url:c,method:r,headers:i};a(this._options,p,h),this._sanitizeOptions(this._options)}this._performRequest()};function Lq(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(c,u,p){return a9(c)?c=RC(c):gr(c)?c=RC(UC(c)):(p=u,u=Vq(c),c={protocol:a}),mr(u)&&(p=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},c,u),u.nativeProtocols=n,!gr(u.host)&&!gr(u.hostname)&&(u.hostname="::1"),zC.equal(u.protocol,a,"protocol mismatch"),Bq("options",u),new gi(u,p)}function l(c,u,p){var h=s.request(c,u,p);return h.end(),h}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function Fq(){}function UC(t){var e;if(DC)e=new Hl(t);else if(e=Vq(Wl.parse(t)),!gr(e.protocol))throw new HC({input:t});return e}function e9(t,e){return DC?new Hl(t,e):UC(Wl.resolve(e,t))}function Vq(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new HC({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new HC({input:t.href||t});return t}function RC(t,e){var n=e||{};for(var i of K6)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 _C(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 Rl(t,e,n){function i(a){mr(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 $C(t,e){for(var n of GC)t.removeListener(n,NC[n]);t.on("error",Fq),t.destroy(e)}function n9(t,e){zC(gr(t)&&gr(e));var n=t.length-e.length-1;return n>0&&t[n]==="."&&t.endsWith(e)}function i9(t){return t instanceof Array}function gr(t){return typeof t=="string"||t instanceof String}function mr(t){return typeof t=="function"}function t9(t){return typeof t=="object"&&"length"in t}function a9(t){return Hl&&t instanceof Hl}function r9(t){return t.replace(/[[\]\\/()*+?.^$|]/g,"\\$&")}BC.exports=Lq({http:F6,https:V6});BC.exports.wrap=Lq});var x2=v((lpe,b2)=>{"use strict";var T_=Sq(),s9=require("crypto"),o9=require("url"),k_=Nq(),M_=require("http"),E_=require("https"),q_=require("http2"),cA=require("util"),Kq=require("path"),l9=Jq(),Li=require("zlib"),mi=require("stream"),u9=require("events");function __(t,e){return function(){return t.apply(e,arguments)}}var{toString:c9}=Object.prototype,{getPrototypeOf:Ca}=Object,{iterator:Bl,toStringTag:H_}=Symbol,Gl=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),W_=t=>typeof t=="string"&&(t==="__proto__"||t==="constructor"||t==="prototype"),R_=(t,e,n)=>t===Object.prototype||!n&&e===null,p9=t=>{if(!Object.isExtensible(t))return!1;let e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&e.push(...Object.getOwnPropertySymbols(t)),e.every(n=>{if(W_(n))return!1;let i=Object.getOwnPropertyDescriptor(t,n);return!!i&&i.configurable&&i.writable===!0})},Nl=(t,e)=>{let n=t,i=[];for(;n!=null;){if(i.indexOf(n)!==-1)return!1;i.push(n);let a=Ca(n);if(R_(n,a,n===t))return!1;if(Gl(n,e))return!0;n=a}return!1},d9=(t,e)=>t!=null&&Nl(t,e)?t[e]:void 0,h9=t=>{if(t==null||typeof t!="object"&&typeof t!="function")return t;let e=Ca(t);if(e===null&&p9(t))return t;let n=Object.create(null),i=Object.create(null),a=[],r=t;for(;r!=null&&a.indexOf(r)===-1;){a.push(r);let s=r===t?e:Ca(r);if(R_(r,s,r===t))break;let o=Object.getOwnPropertyNames(r);Object.getOwnPropertySymbols&&o.push(...Object.getOwnPropertySymbols(r));for(let l of o)W_(l)||Gl(i,l)||(n[l]=t[l],i[l]=!0);r=s}return n},pA=(t=>e=>{let n=c9.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fi=t=>(t=t.toLowerCase(),e=>pA(e)===t),ld=t=>e=>typeof e===t,{isArray:vr}=Array,Cr=ld("undefined");function Ds(t){return t!==null&&!Cr(t)&&t.constructor!==null&&!Cr(t.constructor)&&fi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var I_=Fi("ArrayBuffer");function g9(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&I_(t.buffer),e}var m9=ld("string"),fi=ld("function"),z_=ld("number"),Gs=t=>t!==null&&typeof t=="object",f9=t=>t===!0||t===!1,Qp=t=>{if(!Gs(t))return!1;let e=Ca(t);return(e===null||e===Object.prototype||Ca(e)===null)&&!Nl(t,H_)&&!Nl(t,Bl)},w9=t=>{if(!Gs(t)||Ds(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},v9=Fi("Date"),C9=Fi("File"),A9=t=>!!(t&&typeof t.uri<"u"),b9=t=>t&&typeof t.getParts<"u",x9=Fi("Blob"),y9=Fi("FileList"),P9=Fi("Set"),j9=t=>Gs(t)&&fi(t.pipe);function S9(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Zq=S9(),Qq=typeof Zq.FormData<"u"?Zq.FormData:void 0,O9=t=>{if(!t)return!1;if(Qq&&t instanceof Qq)return!0;let e=Ca(t);if(!e||e===Object.prototype||!fi(t.append))return!1;let n=pA(t);return n==="formdata"||n==="object"&&fi(t.toString)&&t.toString()==="[object FormData]"},T9=Fi("URLSearchParams"),[k9,M9,E9,q9]=["ReadableStream","Request","Response","Headers"].map(Fi),_9=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ll(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),vr(t))for(i=0,a=t.length;i0;)if(a=n[i],e===a.toLowerCase())return a;return null}var fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,G_=t=>!Cr(t)&&t!==fr;function iA(...t){let{caseless:e,skipUndefined:n}=G_(this)&&this||{},i={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&typeof s=="string"&&D_(i,s)||s,l=Gl(i,o)?i[o]:void 0;Qp(l)&&Qp(r)?i[o]=iA(l,r):Qp(r)?i[o]=iA({},r):vr(r)?i[o]=r.slice():(!n||!Cr(r))&&(i[o]=r)};for(let r=0,s=t.length;r(Ll(e,(a,r)=>{n&&fi(a)?Object.defineProperty(t,r,{__proto__:null,value:__(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),W9=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),R9=(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)},I9=(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&&Ca(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},z9=(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},D9=t=>{if(!t)return null;if(vr(t))return t;let e=t.length;if(!z_(e))return null;let n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},G9=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ca(Uint8Array)),N9=(t,e)=>{let i=(t&&t[Bl]).call(t),a;for(;(a=i.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},U9=(t,e)=>{let n,i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},$9=Fi("HTMLFormElement"),B9=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:L9}=Object.prototype,F9=Fi("RegExp"),N_=(t,e)=>{let n=Object.getOwnPropertyDescriptors(t),i={};Ll(n,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(i[r]=s||a)}),Object.defineProperties(t,i)},V9=t=>{N_(t,(e,n)=>{if(fi(t)&&["arguments","caller","callee"].includes(n))return!1;let i=t[n];if(fi(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+"'")})}})},J9=(t,e)=>{let n={},i=a=>{a.forEach(r=>{n[r]=!0})};return vr(t)?i(t):i(String(t).split(e)),n},K9=()=>{},Z9=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Q9(t){return!!(t&&fi(t.append)&&t[H_]==="FormData"&&t[Bl])}var Y9=t=>{let e=new WeakSet,n=i=>{if(Gs(i)){if(e.has(i))return;if(Ds(i))return i;if(!("toJSON"in i)){e.add(i);let a;if(P9(i)){a=[];for(let r of i){let s=n(r);!Cr(s)&&a.push(s)}}else a=vr(i)?[]:{},Ll(i,(r,s)=>{let o=n(r);!Cr(o)&&(a[s]=o)});return e.delete(i),a}}return i};return n(t)},X9=Fi("AsyncFunction"),e8=t=>t&&(Gs(t)||fi(t))&&fi(t.then)&&fi(t.catch),U_=((t,e)=>t?setImmediate:e?((n,i)=>(fr.addEventListener("message",({source:a,data:r})=>{a===fr&&r===n&&i.length&&i.shift()()},!1),a=>{i.push(a),fr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fi(fr.postMessage)),n8=typeof queueMicrotask<"u"?queueMicrotask.bind(fr):typeof process<"u"&&process.nextTick||U_,$_=t=>t!=null&&fi(t[Bl]),i8=t=>t!=null&&Nl(t,Bl)&&$_(t),C={isArray:vr,isArrayBuffer:I_,isBuffer:Ds,isFormData:O9,isArrayBufferView:g9,isString:m9,isNumber:z_,isBoolean:f9,isObject:Gs,isPlainObject:Qp,isEmptyObject:w9,isReadableStream:k9,isRequest:M9,isResponse:E9,isHeaders:q9,isUndefined:Cr,isDate:v9,isFile:C9,isReactNativeBlob:A9,isReactNative:b9,isBlob:x9,isRegExp:F9,isFunction:fi,isStream:j9,isURLSearchParams:T9,isTypedArray:G9,isFileList:y9,forEach:Ll,merge:iA,extend:H9,trim:_9,stripBOM:W9,inherits:R9,toFlatObject:I9,kindOf:pA,kindOfTest:Fi,endsWith:z9,toArray:D9,forEachEntry:N9,matchAll:U9,isHTMLForm:$9,hasOwnProperty:Gl,hasOwnProp:Gl,hasOwnInPrototypeChain:Nl,getSafeProp:d9,toSafeFlatObject:h9,reduceDescriptors:N_,freezeMethods:V9,toObjectSet:J9,toCamelCase:B9,noop:K9,toFiniteNumber:Z9,findKey:D_,global:fr,isContextDefined:G_,isSpecCompliantForm:Q9,toJSONObject:Y9,isAsyncFn:X9,isThenable:e8,setImmediate:U_,asap:n8,isIterable:$_,isSafeIterable:i8},t8=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"]),a8=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();let o=C.hasOwnProp(e,n);!n||o&&C.hasOwnProp(t8,n)||(n==="set-cookie"?o?e[n].push(i):e[n]=[i]:e[n]=o?e[n]+", "+i:i)}),e};function r8(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 s8=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),o8=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function dA(t,e){return C.isArray(t)?t.map(n=>dA(n,e)):r8(String(t).replace(e,""))}var l8=t=>dA(t,s8),u8=t=>dA(t,o8);function hA(t){let e=Object.create(null);return C.forEach(t.toJSON(),(n,i)=>{e[i]=u8(n)}),e}var Yq=Symbol("internals");function Il(t){return t&&String(t).trim().toLowerCase()}function Yp(t){return t===!1||t==null?t:C.isArray(t)?t.map(Yp):l8(String(t))}function c8(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 p8=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function LC(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)}function d8(t){let e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let i=1;i=e))return t;n+=t[i]}return n}function h8(t){let e=Object.create(null),n=String(t),i=0,a=!1,r=!1;function s(o){let l=LC(n.slice(i,o)),c=l.indexOf("=");if(c<1)return;let u=LC(l.slice(0,c));if(!p8.test(u))return;let p=u.toLowerCase();if(p==="__proto__"||p==="constructor"||p==="prototype")return;let h=LC(l.slice(c+1));e[p]=d8(h)}for(let o=0;o/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function FC(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 m8(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function f8(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 rn=class{constructor(e){e&&this.set(e)}set(e,n,i){let a=this;function r(o,l,c){let u=Il(l);if(!u)return;let p=C.findKey(a,u);(!p||a[p]===void 0||c===!0||c===void 0&&a[p]!==!1)&&(a[p||l]=Yp(o))}let s=(o,l)=>C.forEach(o,(c,u)=>r(c,u,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(C.isString(e)&&(e=e.trim())&&!g8(e))s(a8(e),n);else if(C.isObject(e)&&C.isSafeIterable(e)){let o=Object.create(null),l,c;for(let u of e){if(!C.isArray(u))throw new TypeError("Object iterator must return a key-value pair");c=u[0],C.hasOwnProp(o,c)?(l=o[c],o[c]=C.isArray(l)?[...l,u[1]]:[l,u[1]]):o[c]=u[1]}s(o,n)}else e!=null&&r(n,e,i);return this}get(e,n){if(e=Il(e),e){let i=C.findKey(this,e);if(i){let a=this[i];if(!n)return a;if(n===!0)return c8(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=Il(e),e){let i=C.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||FC(this,this[i],i,n)))}return!1}delete(e,n){let i=this,a=!1;function r(s){if(s=Il(s),s){let o=C.findKey(i,s);o&&(!n||FC(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||FC(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]=Yp(a),delete n[r];return}let o=e?m8(r):String(r).trim();o!==r&&delete n[r],n[o]=Yp(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(){let e=this.get("set-cookie");return C.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return h8(e)}static concat(e,...n){let i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){let i=(this[Yq]=this[Yq]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=Il(s);i[o]||(f8(a,s),i[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(rn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});C.freezeMethods(rn);var td="[REDACTED ****]";function w8(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 v8(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 rn&&(r=r.toJSON()),i.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let c=a(o);C.isUndefined(c)||(s[l]=c)});else{if(!C.isPlainObject(r)&&w8(r))return i.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let c=n.has(o.toLowerCase())?td:a(l);C.isUndefined(c)||(s[o]=c)}}return i.pop(),s};return a(t)}function Xq(t){try{return String(t)}catch{return""}}function C8(t){return t.errors.map(n=>{try{return n&&n.message?Xq(n.message):Xq(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}var j=class t extends Error{static from(e,n,i,a,r,s){let o=e.message;!o&&C.isArray(e.errors)&&e.errors.length&&(o=C8(e));let l=new t(o,n||e.code,i,a,r);return Object.defineProperty(l,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),l.name=e.name,e.status!=null&&l.status==null&&(l.status=e.status),s&&Object.assign(l,s),l}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?v8(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}}};j.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";j.ERR_BAD_OPTION="ERR_BAD_OPTION";j.ECONNABORTED="ECONNABORTED";j.ETIMEDOUT="ETIMEDOUT";j.ECONNREFUSED="ECONNREFUSED";j.ERR_NETWORK="ERR_NETWORK";j.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";j.ERR_DEPRECATED="ERR_DEPRECATED";j.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";j.ERR_BAD_REQUEST="ERR_BAD_REQUEST";j.ERR_CANCELED="ERR_CANCELED";j.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";j.ERR_INVALID_URL="ERR_INVALID_URL";j.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var VC={isBufferAvailable(){return typeof Buffer<"u"},from(t){return Buffer.from(t)}},B_=100;function tA(t){return C.isPlainObject(t)||C.isArray(t)}function L_(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function JC(t,e,n){return t?t.concat(e).map(function(a,r){return a=L_(a),!n&&r?"["+a+"]":a}).join(n?".":""):e}function A8(t){return C.isArray(t)&&!t.some(tA)}var b8=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function ud(t,e,n){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(T_||FormData);let i=(A,b)=>{let x=C.getSafeProp(n,A);return C.isUndefined(x)?b:x},a=i("metaTokens",!0),r=i("visitor")||m,s=i("dots",!1),o=i("indexes",!1),l=i("Blob")||typeof Blob<"u"&&Blob,c=i("maxDepth",B_),u=l&&C.isSpecCompliantForm(e),p=[];if(!C.isFunction(r))throw new TypeError("visitor must be a function");function h(A){if(A===null)return"";if(C.isDate(A))return A.toISOString();if(C.isBoolean(A))return A.toString();if(!u&&C.isBlob(A))throw new j("Blob is not supported. Use a Buffer instead.");if(C.isArrayBuffer(A)||C.isTypedArray(A)){if(u&&typeof l=="function")return new l([A]);if(VC&&VC.isBufferAvailable())return VC.from(A);throw new j("Blob is not supported. Use a Buffer instead.",j.ERR_NOT_SUPPORT)}return A}function g(A){if(A>c)throw new j("Object is too deeply nested ("+A+" levels). Max depth: "+c,j.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(A,b){if(c===1/0)return JSON.stringify(A);let x=[];return JSON.stringify(A,function(T,M){if(!C.isObject(M))return M;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(M),g(b+x.length-1),M})}function m(A,b,x){let S=A;if(C.isReactNative(e)&&C.isReactNativeBlob(A))return e.append(JC(x,b,s),h(A)),!1;if(A&&!x&&typeof A=="object"){if(C.endsWith(b,"{}"))b=a?b:b.slice(0,-2),A=d(A,1);else if(C.isArray(A)&&A8(A)||(C.isFileList(A)||C.endsWith(b,"[]"))&&(S=C.toArray(A)))return b=L_(b),S.forEach(function(M,V){!(C.isUndefined(M)||M===null)&&e.append(o===!0?JC([b],V,s):o===null?b:b+"[]",h(M))}),!1}return tA(A)?!0:(e.append(JC(x,b,s),h(A)),!1)}let w=Object.assign(b8,{defaultVisitor:m,convertValue:h,isVisitable:tA});function f(A,b,x=0){if(!C.isUndefined(A)){if(g(x),p.indexOf(A)!==-1)throw new Error("Circular reference detected in "+b.join("."));p.push(A),C.forEach(A,function(T,M){(!(C.isUndefined(T)||T===null)&&r.call(e,T,C.isString(M)?M.trim():M,b,w))===!0&&f(T,b?b.concat(M):[M],x+1)}),p.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return f(t),e}function e_(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function F_(t,e){this._pairs=[],t&&ud(t,this,e)}var V_=F_.prototype;V_.append=function(e,n){this._pairs.push([e,n])};V_.toString=function(e){let n=e?i=>e.call(this,i,e_):e_;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function x8(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gA(t,e,n){if(!e)return t;t=t||"";let i=C.isFunction(n)?{serialize:n}:n,a=C.getSafeProp(i,"encode")||x8,r=C.getSafeProp(i,"serialize"),s;if(r?s=r(e,i):s=C.isURLSearchParams(e)?e.toString():new F_(e,i).toString(a),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var zl=Symbol("internals");function J_(t){return t?t.length:0}function n_(t){if(t)for(;t.length&&t[t.length-1]===null;)t.pop()}function Dl(t,e){let n=t.handlers,i=J_(n);n!==e.handlersRef?(e.handlersRef=n,e.handlerEntries.clear()):i!==e.handlersLength&&(i?e.handlerEntries.forEach(function(r,s){n[r.index]!==r.handler&&e.handlerEntries.delete(s)}):e.handlerEntries.clear()),e.handlersLength=i}var ad=class{constructor(){this.handlers=[],this[zl]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,n,i){let a={fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null},r=this[zl];this.handlers==null&&(this.handlers=[]),Dl(this,r);let s=r.nextId++;return this.handlers.push(a),r.handlerEntries.set(s,{handler:a,index:this.handlers.length-1}),r.handlersLength=this.handlers.length,s}eject(e){let n=this[zl];Dl(this,n);let i=n.handlerEntries.get(e);if(i){if(n.handlerEntries.delete(e),this.handlers[i.index]!==i.handler)return;this.handlers[i.index]=null,n.iterationDepth||(n_(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Dl(this,this[zl]))}forEach(e){let n=this[zl];Dl(this,n),n.iterationDepth++;try{C.forEach(this.handlers,function(a){a!==null&&e(a)})}finally{--n.iterationDepth||(Dl(this,n),n_(this.handlers),n.handlersLength=J_(this.handlers))}}},cd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},y8=o9.URLSearchParams,KC="abcdefghijklmnopqrstuvwxyz",i_="0123456789",K_={DIGIT:i_,ALPHA:KC,ALPHA_DIGIT:KC+KC.toUpperCase()+i_},P8=(t=16,e=K_.ALPHA_DIGIT)=>{let n="",{length:i}=e,a=new Uint32Array(t);s9.randomFillSync(a);for(let r=0;rt_)throw new j("FormData field is too deeply nested ("+t+" levels). Max depth: "+t_,j.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E8(t){let e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,i;for(;(i=n.exec(t))!==null;)Z_(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function q8(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]=q8(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let n={};return C.forEachEntry(t,(i,a)=>{e(E8(i),a,n,0)}),n}return null}var Y_=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Rs=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function _8(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 Fl={transitional:cd,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(Q_(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=Rs(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return M8(e,l).toString();if((o=C.isFileList(e))||i.indexOf("multipart/form-data")>-1){let c=Rs(this,"env"),u=c&&c.FormData;return ud(o?{"files[]":e}:e,u&&new u,l)}}return r||a?(n.setContentType("application/json",!1),_8(e)):e}],transformResponse:[function(e){let n=Rs(this,"transitional")||Fl.transitional,i=n&&n.forcedJSONParsing,a=Rs(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,Rs(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?j.from(l,j.ERR_BAD_RESPONSE,this,null,Rs(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(Y_,t=>{Fl.headers[t]={}});function ZC(t,e){let n=this||Fl,i=e||n,a=rn.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 X_(t){return!!(t&&t.__CANCEL__)}var Ft=class extends j{constructor(e,n,i){super(e??"canceled",j.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 j("Request failed with status code "+n.status,n.status>=400&&n.status<500?j.ERR_BAD_REQUEST:j.ERR_BAD_RESPONSE,n.config,n.request,n))}function H8(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function W8(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}var R8=/[\t\n\r]/g;function e2(t){if(typeof t!="string")return t;let e=0;for(;e`${n}${i}${td}`)}function D8(t){let e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${td}@`),n=e.indexOf("#"),a=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${td}`);return n===-1?a:`${a}#${z8(e.slice(n+1))}`}function a_(t,e){if(typeof t=="string"){let n=e2(t);if(I8.test(n))throw new j(`Invalid URL ${JSON.stringify(D8(n))}: missing "//" after protocol`,j.ERR_INVALID_URL,e)}}function fA(t,e,n,i){a_(e,i);let a=!H8(e);return t&&(a||n===!1)?(a_(t,i),W8(t,e)):e}var G8={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function N8(t){try{return new URL(t)}catch{return null}}function U8(t){var e=(typeof t=="string"?N8(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)||G8[n]||0,!$8(i,a)))return"";var r=rA(n+"_proxy")||rA("all_proxy");return r&&r.indexOf("://")===-1&&(r=n+"://"+r),r}function $8(t,e){var n=rA("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 rA(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Ul="1.20.0";function Xp(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var B8=/^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function L8(t,e,n){let i=n&&n.Blob||Ze.classes.Blob,a=Xp(t);if(e===void 0&&i&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=B8.exec(t);if(!r)throw new j("Invalid URL",j.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",c=r[4],u="";s?u=o?s+o:s:o&&(u="text/plain"+o);let p=l==="base64"?Buffer.from(c,"base64"):Buffer.from(decodeURIComponent(c),l);if(e){if(!i)throw new j("Blob is not supported",j.ERR_NOT_SUPPORT);return new i([p],{type:u})}return p}throw new j("Unsupported protocol "+a,j.ERR_NOT_SUPPORT)}var F8=["content-type","content-length"];function n2(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,a])=>{F8.includes(i.toLowerCase())&&t.set(i,a)})}var QC=Symbol("internals"),rd=class extends mi.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[QC]={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[QC];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,i){let a=this[QC],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,c=r/l,u=a.minChunkSize!==!1?Math.max(a.minChunkSize,c*.01):0,p=(g,d)=>{let m=Buffer.byteLength(g);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(g)?process.nextTick(d):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(d)}},h=(g,d)=>{let m=Buffer.byteLength(g),w=null,f=s,A,b=0;if(r){let x=Date.now();(!a.ts||(b=x-a.ts)>=o)&&(a.ts=x,A=c-a.bytes,a.bytes=A<0?-A:0,b=0),A=c-a.bytes}if(r){if(A<=0)return setTimeout(()=>{d(null,g)},o-b);Af&&m-f>u&&(w=g.subarray(f),g=g.subarray(0,f)),p(g,w?()=>{process.nextTick(d,null,w)}:d)};h(e,function g(d,m){if(d)return i(d);m?h(m,g):i(null)})}},{asyncIterator:r_}=Symbol,i2=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[r_]?yield*t[r_]():yield t},V8=Ze.ALPHABET.ALPHA_DIGIT+"-_",$l=typeof TextEncoder=="function"?new TextEncoder:new cA.TextEncoder,wr=`\r -`,J8=$l.encode(wr),K8=2,sA=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)}"`:""}${wr}`;if(a)n=$l.encode(String(n).replace(/\r?\n|\r\n?/g,wr));else{let s=String(n.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${wr}`}this.headers=$l.encode(r+wr),this.contentLength=a?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+K8,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*i2(e),yield J8}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},Z8=(t,e,n)=>{let{tag:i="form-data-boundary",size:a=25,boundary:r=i+"-"+Ze.generateString(a,V8)}=n||{};if(!C.isFormData(t))throw new TypeError("FormData instance required");if(r.length<1||r.length>70)throw new Error("boundary must be 1-70 characters long");let s=$l.encode("--"+r+wr),o=$l.encode("--"+r+"--"+wr),l=o.byteLength,c=Array.from(t.entries()).map(([p,h])=>{let g=new sA(p,h);return l+=g.size,g});l+=s.byteLength*c.length,l=C.toFiniteNumber(l);let u={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(u["Content-Length"]=l),e&&e(u),mi.Readable.from((async function*(){for(let p of c)yield s,yield*p.encode();yield o})())},oA=class extends mi.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)}},lA=class{constructor(){this.sessions=Object.create(null)}getSession(e,n){n=Object.assign(Object.create(null),{sessionTimeout:1e3},n);let i=this.sessions[e];if(i){let p=i.length;for(let h=0;h{if(r)return;r=!0,s&&(clearTimeout(s),s=null);let p=i,h=p.length,g=h;for(;g--;)if(p[g][0]===a){h===1?delete this.sessions[e]:p.splice(g,1),a.closed||a.close();return}},l=a.request,{sessionTimeout:c}=n;if(c!=null){let p=0;a.request=function(){let h=l.apply(this,arguments);return p++,s&&(clearTimeout(s),s=null),h.once("close",()=>{--p||(s=setTimeout(()=>{s=null,o()},c))}),h}}a.once("close",o),a.once("error",o);let u=[a,n];return i?i.push(u):i=this.sessions[e]=[u],a}},Q8=(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,Y8=new Set(["localhost","0.0.0.0"]),t2=t=>{let e=t.length;for(;e&&t.charCodeAt(e-1)===46;)e--;return e===t.length?t:t.slice(0,e)},a2=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)},YC=t=>{if(/^0[xX][0-9a-fA-F]+$/.test(t)){let e=parseInt(t.slice(2),16);return Number.isFinite(e)?e:null}if(t.length>1&&/^0[0-7]+$/.test(t)){let e=parseInt(t,8);return Number.isFinite(e)?e:null}if(t.length>1&&/^0[0-9]+$/.test(t))return null;if(/^[0-9]+$/.test(t)){let e=parseInt(t,10);return Number.isFinite(e)?e:null}return null},r2=t=>{if(typeof t!="string"||!t||t.indexOf(":")!==-1)return t;let e=t;if(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),e=t2(e),!/^[0-9.xXa-fA-F]+$/.test(e))return t;let n=e.split(".");if(n.some(u=>u===""))return t;if(n.length===4){let u=n.map(YC);return u.some(p=>p===null||p<0||p>255)?t:u.join(".")}if(n.length>4||n.length===1)return t;let i=n.slice(0,-1),a=n[n.length-1],r=4-i.length,s=YC(a);if(s===null)return t;let o=(1<<8*r)-1;if(s<0||s>o)return t;let l=new Array(r).fill(0);for(let u=r-1,p=s;u>=0;u--,p>>=8)l[u]=p&255;let c=i.map(YC);return c.some(u=>u===null||u<0||u>255)?t:[...c,...l].join(".")},XC=t=>/^0{1,4}$/.test(t),X8=t=>{if(t==="::")return!0;let e=t.indexOf("::");if(e!==-1){if(e!==t.lastIndexOf("::"))return!1;let i=t.slice(0,e),a=t.slice(e+2),r=i?i.split(":"):[],s=a?a.split(":"):[];return r.length+s.length<8&&r.every(XC)&&s.every(XC)}let n=t.split(":");return n.length===8&&n.every(XC)},eK=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return a2(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},s_=t=>t?Y8.has(t)||a2(t)||X8(t)?!0:eK(t):!1,nK={http:80,https:443,ws:80,wss:443,ftp:21},iK=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]},tK=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,aK=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,s2=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(tK);if(e)return e[1];let n=t.match(aK);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=/^(?:0|[1-9]\d{0,2})$/,o2=t=>{let e=t.split(".");return e.length===4&&e.every(n=>rK.test(n)&&Number(n)<=255)?e.map(Number):null},sK=/^[0-9a-f]{1,4}$/i,oK=t=>{let e=t.split("::");if(e.length>2)return null;let n=e[0]?e[0].split(":"):[];if(e.length===2){let i=e[1]?e[1].split(":"):[],a=8-n.length-i.length;if(a<1)return null;n.push(...new Array(a).fill("0"),...i)}return n.length!==8||n.some(i=>!sK.test(i))?null:n.flatMap(i=>{let a=Number.parseInt(i,16);return[a>>8&255,a&255]})},l2=t=>typeof t!="string"||!t?null:t.indexOf(":")!==-1?oK(t):o2(t),o_=t=>{if(!t)return t;t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1));let e=t2(t),n=r2(e);return n!==e?n:s2(e)},lK=t=>{let e=t,n=e.charAt(0)==="[",i=e.charAt(e.length-1)==="]",a=e.includes("[")||e.includes("]");if(n||i){if(!n||!i||(e=e.slice(1,-1),e.indexOf(":")===-1||e.includes("[")||e.includes("]")))return null}else if(a)return null;if(!e||e.charAt(e.length-1)===".")return null;let r=e.indexOf(":")!==-1;if(r)try{e=new URL(`http://[${e}]/`).hostname.slice(1,-1)}catch{return null}else if(e=r2(e),!o2(e))return null;return{normalized:s2(e),wasIPv6:r}},uK=/^(.+)\/(0|[1-9]\d{0,2})$/,cK=t=>{if(t.indexOf("/")===-1)return;let e=uK.exec(t);if(!e)return null;let n=Number(e[2]),i=lK(e[1]);if(!i)return null;let{normalized:a,wasIPv6:r}=i;if(r&&a.indexOf(":")===-1){if(n<96)return null;n-=96}let s=l2(a);return!s||n>s.length*8?null:{bytes:s,prefix:n}},pK=(t,e,n)=>{let i=n>>3;for(let r=0;r{if(!s)return!1;if(s==="*")return!0;let o=cK(s);if(o!==void 0)return o!==null&&!!r&&r.length===o.bytes.length&&pK(r,o.bytes,o.prefix);let[l,c]=iK(s);return l=o_(l),!l||c&&c!==i?!1:(l.charAt(0)==="*"&&(l=l.slice(1)),l.charAt(0)==="."?a.endsWith(l):a===l||s_(a)&&s_(l))})}function hK(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 c=Date.now(),u=i[r];s||(s=c),n[a]=l,i[a]=c;let p=r,h=0;for(;p!==a;)h+=n[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),c-s{n=p,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let p=Date.now(),h=p-n;h>=i?s(u,p):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},i-h)))},()=>a&&s(a),(...u)=>s(u)]}var zs=(t,e,n=3)=>{let i=0,a=hK(50,250);return gK(r=>{if(!r||!C.isNumber(r.loaded))return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=Math.max(0,o!=null?Math.min(s,o):s),c=Math.max(0,l-i),u=a(c);i=Math.max(i,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:c,rate:u||void 0,estimated:u&&o?(o-l)/u:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},sd=(t,e)=>{let n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},od=(t,e=C.asap)=>(...n)=>e(()=>t(...n)),l_=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,u2=(t,e,n)=>e+2t<=57?t-48:(t&223)-55,mK=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,fK=t=>t===9||t===10||t===12||t===13||t===32,wK=t=>{let e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},c2=t=>{let e=t.length,n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},vK=t=>{let e=t.length,n=0,i=0,a=!1;for(let r=0;r0){a=!0;continue}n++}}return a||i>2||i>0&&(n+i)%4!==0||n%4===1?c2(t):wK(n)},p2=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let i=t.slice(5,n),a=t.slice(n+1);if(/;base64/i.test(i))return e(a);let s=0;for(let o=0,l=a.length;o=55296&&c<=56319&&o+1=56320&&u<=57343?(s+=4,o++):s+=3}else s+=3}return s};function CK(t){let e=typeof t=="string"?t.indexOf("#"):-1;return p2(e===-1?t:t.slice(0,e),vK)}function AK(t){return p2(t,c2)}var c_={flush:Li.constants.Z_SYNC_FLUSH,finishFlush:Li.constants.Z_SYNC_FLUSH},bK={flush:Li.constants.BROTLI_OPERATION_FLUSH,finishFlush:Li.constants.BROTLI_OPERATION_FLUSH},xK={flush:Li.constants.ZSTD_e_flush,finishFlush:Li.constants.ZSTD_e_flush},d2=C.isFunction(Li.createBrotliDecompress),h2=C.isFunction(Li.createZstdDecompress),g2="gzip, compress, deflate"+(d2?", br":""),yK=g2+(h2?", zstd":""),p_=typeof process<"u"&&process.nextTick?process.nextTick.bind(process):C.asap,{http:PK,https:jK}=l9,wA=/https:?/,d_=Symbol("axios.http.socketListener"),ed=Symbol("axios.http.currentReq");function SK(t){let e=this[ed];e&&!e.destroyed&&e.destroy(t)}var m2=Symbol("axios.http.installedTunnel"),OK=new Map,h_=new WeakMap,g_={22:21,24:5};function TK(t=process.versions&&process.versions.node){if(!t)return!1;let[e,n]=t.split(".").map(i=>Number(i));return!Number.isInteger(e)||!Number.isInteger(n)?!1:e>24?!0:g_[e]!=null&&n>=g_[e]}function m_(t,e=process.versions&&process.versions.node){if(!TK(e))return!1;let n=t&&t.options;return!!(n&&C.hasOwnProp(n,"proxyEnv")&&n.proxyEnv!=null)}function kK(t,e,n){return wA.test(t.protocol)?n||E_.globalAgent:e||M_.globalAgent}function MK(t,e){let n=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),i=e?h_.get(e)||h_.set(e,new Map).get(e):OK,a=i.get(n);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;if(a=new k_(r),e&&e.options){let s={...e.options},o=a.callback;a.callback=function(c,u){return o.call(this,c,{...s,...u})}}return a[m2]=!0,i.set(n,a),a}var f_=Ze.protocols.map(t=>t+":"),w_=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},v_=(t,[e,n])=>(t.on("end",n).on("error",n),e),EK=new lA;function qK(t,e,n){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.auth&&t.beforeRedirects.auth(t),t.beforeRedirects.sensitiveHeaders&&t.beforeRedirects.sensitiveHeaders(t,n),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,n)}function _K(t,e){t&&Object.keys(t).forEach(n=>{e.has(n.toLowerCase())&&delete t[n]})}function HK(t,e){if(!e)return!1;try{return new URL(e.url).origin===new URL(t.href).origin}catch{return!1}}function f2(t,e,n,i,a,r,s=!0){let o=e,l=kK(t,r,a);if(!o&&o!==!1&&s&&!m_(l)){let c=U8(n);c&&(dK(n)||(o=new URL(c)))}if(i&&t.headers)for(let c of Object.keys(t.headers))c.toLowerCase()==="proxy-authorization"&&delete t.headers[c];if(i&&t.agent&&t.agent[m2]&&(t.agent=void 0),o){let c=o instanceof URL,u=m=>c||C.hasOwnProp(o,m)?o[m]:void 0,p=u("username"),h=u("password"),g=C.hasOwnProp(o,"auth")?o.auth:void 0;if(p&&(g=(p||"")+":"+(h||"")),g){let m=typeof g=="object",w=m&&C.hasOwnProp(g,"username")?g.username:void 0,f=m&&C.hasOwnProp(g,"password")?g.password:void 0;if(!!(w||f))g=(w||"")+":"+(f||"");else if(m)throw new j("Invalid proxy authorization",j.ERR_BAD_OPTION,{proxy:o})}if(wA.test(t.protocol)){if(!(a instanceof k_)){let m=u("hostname")||u("host"),w=u("port"),f=u("protocol"),A=f?f.includes(":")?f:`${f}:`:"http:",b=m&&m.includes(":")&&!m.startsWith("[")?`[${m}]`:m,x=new URL(`${A}//${b}${w?":"+w:""}`),S={protocol:x.protocol,hostname:x.hostname.replace(/^\[|\]$/g,""),port:x.port,auth:g&&typeof g=="string"?g:void 0};x.protocol==="https:"&&(S.ALPNProtocols=["http/1.1"]);let T=MK(S,a);t.agent=T,t.agents&&(t.agents.https=T)}}else{if(g){let A=Buffer.from(g,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+A}let m=!1;for(let A of Object.keys(t.headers))if(A.toLowerCase()==="host"){m=!0;break}m||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let w=u("hostname")||u("host");t.hostname=w,t.host=w,t.port=u("port"),t.path=n;let f=u("protocol");f&&(t.protocol=f.includes(":")?f:`${f}:`)}}return t.beforeRedirects.proxy=function(u){f2(u,e,u.href,!0,a,r,s)},!!(o||e!==!1&&s&&m_(l))}var WK=typeof process<"u"&&C.kindOf(process)==="process",RK=t=>new Promise((e,n)=>{let i,a,r=(l,c)=>{a||(a=!0,i&&i(l,c))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),n(l)};t(s,o,l=>i=l).catch(o)}),IK=({address:t,family:e})=>{if(!C.isString(t))throw new j("address must be a string",j.ERR_BAD_OPTION_VALUE);return{address:t,family:e||(t.indexOf(".")<0?6:4)}},C_=(t,e)=>IK(C.isObject(t)?t:{address:t,family:e}),A_=new WeakMap,zK=t=>{let e=A_.get(t);if(e)return e;let n=Q8(t,i=>C.isArray(i)?i:[i]);return e=(i,a,r)=>{n(i,a,(s,o,l)=>{if(s)return r(s);let c;try{c=C.isArray(o)?o.map(u=>C_(u)):[C_(o,l)]}catch(u){return r(u)}a.all?r(s,c):r(s,c[0].address,c[0].family)})},A_.set(t,e),e},DK={request(t,e){let n=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:i,headers:a}=t,r=EK.getSession(n,i),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:c}=q_.constants,u={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(h,g)=>{g.charAt(0)!==":"&&(u[g]=h)});let p=r.request(u);return p.once("response",h=>{let g=p;h=Object.assign({},h);let d=h[c];delete h[c],g.headers=h,g.statusCode=+d,e(g)}),p}},GK=WK&&function(e){return RK(async function(i,a,r){let s=G=>C.getSafeProp(e,G),o=s("transitional")||cd,l=s("data"),c=s("lookup"),u=s("family"),p=s("httpVersion");p===void 0&&(p=1);let h=p,g=s("http2Options"),d=s("httpAgent"),m=s("httpsAgent"),w=s("proxy"),f=s("responseType"),A=s("responseEncoding"),b=s("socketPath"),x=s("method").toUpperCase(),S=s("maxRedirects"),T=s("maxBodyLength"),M=s("maxContentLength"),V=s("decompress"),N,_=!1,W,le;try{p=+p}catch{throw new j("Invalid protocol version: value is not a number",j.ERR_BAD_OPTION_VALUE,e)}if(Number.isNaN(p))throw new j(`Invalid protocol version: '${h}' is not a number`,j.ERR_BAD_OPTION_VALUE,e);if(p!==1&&p!==2)throw new j(`Unsupported protocol version '${p}'`,j.ERR_BAD_OPTION_VALUE,e);let Pe=p===2;c&&(c=zK(c));let Te=new u9.EventEmitter;function tn(G){try{Te.emit("abort",!G||G.type?new Ft(null,e,W):G)}catch{}}function O(){le&&(clearTimeout(le),le=null)}function z(){let G=s("timeout"),U=G?"timeout of "+G+"ms exceeded":"timeout exceeded",Ee=s("timeoutErrorMessage");return Ee&&(U=Ee),new j(U,o.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,W)}Te.once("abort",a);let Ce=()=>{O(),e.cancelToken&&e.cancelToken.unsubscribe(tn),e.signal&&e.signal.removeEventListener("abort",tn),Te.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(tn),e.signal&&(e.signal.aborted?tn():e.signal.addEventListener("abort",tn))),r((G,U)=>{if(N=!0,O(),U){_=!0,Ce();return}let{data:Ee}=G;if(Ee instanceof mi.Readable||Ee instanceof mi.Duplex){let On=mi.finished(Ee,()=>{On(),Ce()})}else Ce()});let cn=fA(s("baseURL"),s("url"),s("allowAbsoluteUrls"),e),Z=b?"http://localhost":Ze.hasBrowserEnv?Ze.origin:void 0,ge=new URL(cn,Z),Me=ge.protocol||f_[0];if(Me==="data:"){if(M>-1){let U=String(s("url")||cn||"");if(AK(U)>M)return a(new j("maxContentLength size of "+M+" exceeded",j.ERR_BAD_RESPONSE,e))}let G;if(x!=="GET")return Is(i,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=L8(s("url"),f==="blob",{Blob:e.env&&e.env.Blob})}catch(U){throw j.from(U,j.ERR_BAD_REQUEST,e)}return f==="text"?(G=G.toString(A),(!A||A==="utf8")&&(G=C.stripBOM(G))):f==="stream"&&(G=mi.Readable.from(G)),Is(i,a,{data:G,status:200,statusText:"OK",headers:new rn,config:e})}if(f_.indexOf(Me)===-1)return a(new j("Unsupported protocol "+Me,j.ERR_BAD_REQUEST,e));let Re=rn.from(e.headers).normalize();Re.set("User-Agent","axios/"+Ul,!1);let{onUploadProgress:Bn,onDownloadProgress:qi}=e,_i=e.maxRate,me,He;if(C.isSpecCompliantForm(l)){let G=Re.getContentType(/boundary=([-_\w\d]{10,70})/i);l=Z8(l,U=>{Re.set(U)},{tag:`axios-${Ul}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(l)&&C.isFunction(l.getHeaders)&&l.getHeaders!==Object.prototype.getHeaders){if(n2(Re,l.getHeaders(),s("formDataHeaderPolicy")),!Re.hasContentLength())try{let G=await cA.promisify(l.getLength).call(l);Number.isFinite(G)&&G>=0&&Re.setContentLength(G)}catch{}}else if(C.isBlob(l)||C.isFile(l))l.size&&Re.setContentType(l.type||"application/octet-stream"),Re.setContentLength(l.size||0),l=mi.Readable.from(i2(l));else if(l&&!C.isStream(l)){if(!Buffer.isBuffer(l))if(C.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else if(C.isString(l))l=Buffer.from(l,"utf-8");else return a(new j("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",j.ERR_BAD_REQUEST,e));if(Re.setContentLength(l.length,!1),T>-1&&l.length>T)return a(new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,e))}let _t=C.toFiniteNumber(Re.getContentLength());C.isArray(_i)?(me=_i[0],He=_i[1]):me=He=_i,l&&(Bn||me)&&(C.isStream(l)||(l=mi.Readable.from(l,{objectMode:!1})),l=mi.pipeline([l,new rd({maxRate:C.toFiniteNumber(me)})],C.noop),Bn&&l.on("progress",v_(l,sd(_t,zs(od(Bn,p_),!1,3)))));let Hi,Qt=s("auth");if(Qt){let G=C.getSafeProp(Qt,"username")||"",U=C.getSafeProp(Qt,"password")||"";Hi=G+":"+U}if(!Hi&&(ge.username||ge.password)){let G=w_(ge.username),U=w_(ge.password);Hi=G+":"+U}Hi&&Re.delete("authorization");let jn;try{jn=gA(ge.pathname+ge.search,s("params"),s("paramsSerializer")).replace(/^\?/,"")}catch(G){return a(j.from(G,j.ERR_BAD_REQUEST,e,null,null,{url:s("url"),exists:!0}))}Re.set("Accept-Encoding",C.hasOwnProp(o,"advertiseZstdAcceptEncoding")&&o.advertiseZstdAcceptEncoding===!0?yK:g2,!1),Pe&&c&&(g=Object.assign(Object.create(null),g,{lookup:c}));let Ae=Object.assign(Object.create(null),{path:jn,method:x,headers:hA(Re),agents:{http:d,https:m},auth:Hi,protocol:Me,family:u,beforeRedirect:qK,beforeRedirects:Object.create(null),http2Options:g,createConnection:void 0});!C.isUndefined(c)&&(Ae.lookup=c);let Sn=!1;if(b){if(typeof b!="string")return a(new j("socketPath must be a string",j.ERR_BAD_OPTION_VALUE,e));let G=s("allowedSocketPaths");if(G!=null){let U=Array.isArray(G)?G:[G],Ee=Kq.resolve(b);if(!U.some(qe=>typeof qe=="string"&&Kq.resolve(qe)===Ee))return a(new j(`socketPath "${b}" is not permitted by allowedSocketPaths`,j.ERR_BAD_OPTION_VALUE,e))}Ae.socketPath=b}else Ae.hostname=ge.hostname.startsWith("[")?ge.hostname.slice(1,-1):ge.hostname,Ae.port=ge.port,Sn=f2(Ae,w,Me+"//"+ge.hostname+(ge.port?":"+ge.port:"")+Ae.path,!1,m,d,!Pe);let ht,Wi=!1,pn=!1,Q=wA.test(Ae.protocol);if(Ae.agent==null&&(Ae.agent=Q?m:d),Pe){if(Sn)return a(new j("HTTP/2 requests with a proxy are not supported",j.ERR_NOT_SUPPORT,e));ht=DK}else{let G=s("transport");if(G)ht=G;else if(S===0)ht=Q?E_:M_,Wi=!0;else{pn=!0,Ae.sensitiveHeaders=[],S&&(Ae.maxRedirects=S);let U=s("beforeRedirect");if(U&&(Ae.beforeRedirects.config=U),Hi){let On=ge.origin,qe=Hi;Ae.beforeRedirects.auth=function(Xn){try{new URL(Xn.href).origin===On&&(Xn.auth=qe)}catch{}}}let Ee=s("sensitiveHeaders");if(Ee!=null){if(!C.isArray(Ee))return a(new j("sensitiveHeaders must be an array of strings",j.ERR_BAD_OPTION_VALUE,e));let On=new Set;for(let qe of Ee){if(!C.isString(qe))return a(new j("sensitiveHeaders must be an array of strings",j.ERR_BAD_OPTION_VALUE,e));On.add(qe.toLowerCase())}On.size&&(Ae.sensitiveHeaders=Array.from(On),Ae.beforeRedirects.sensitiveHeaders=function(Yn,Xn){HK(Yn,Xn)||_K(Yn.headers,On)})}ht=Q?jK:PK}}T>-1?Ae.maxBodyLength=T:Ae.maxBodyLength=1/0,Ae.insecureHTTPParser=!!s("insecureHTTPParser"),W=ht.request(Ae,function(U){if(O(),W.destroyed)return;let Ee=[U],On=C.toFiniteNumber(U.headers["content-length"]);if(qi||He){let Tn=new rd({maxRate:C.toFiniteNumber(He)});qi&&Tn.on("progress",v_(Tn,sd(On,zs(od(qi,p_),!0,3)))),Ee.push(Tn)}let qe=U,Yn=U.req||W;if(V!==!1&&U.headers["content-encoding"])switch((x==="HEAD"||U.statusCode===204)&&delete U.headers["content-encoding"],(U.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Ee.push(Li.createUnzip(c_)),delete U.headers["content-encoding"];break;case"deflate":Ee.push(new oA),Ee.push(Li.createUnzip(c_)),delete U.headers["content-encoding"];break;case"br":d2&&(Ee.push(Li.createBrotliDecompress(bK)),delete U.headers["content-encoding"]);break;case"zstd":h2&&(Ee.push(Li.createZstdDecompress(xK)),delete U.headers["content-encoding"]);break}qe=Ee.length>1?mi.pipeline(Ee,C.noop):Ee[0];let Xn={status:U.statusCode,statusText:U.statusMessage,headers:new rn(U.headers),config:e,request:Yn};if(f==="stream"){if(M>-1){let Tn=M,Su=qe;async function*to(){let fn=0;for await(let Jy of Su){if(fn+=Jy.length,fn>Tn)throw new j("maxContentLength size of "+Tn+" exceeded",j.ERR_BAD_RESPONSE,e,Yn);yield Jy}}qe=mi.Readable.from(to(),{objectMode:!1})}Xn.data=qe,Is(i,a,Xn)}else{let Tn=[],Su=0;qe.on("data",function(fn){Tn.push(fn),Su+=fn.length,M>-1&&Su>M&&(_=!0,qe.destroy(),tn(new j("maxContentLength size of "+M+" exceeded",j.ERR_BAD_RESPONSE,e,Yn)))}),qe.on("aborted",function(){if(_)return;let fn=new j("stream has been aborted",j.ERR_BAD_RESPONSE,e,Yn,Xn);qe.destroy(fn),a(fn)}),qe.on("error",function(fn){_||a(j.from(fn,null,e,Yn,Xn))}),qe.on("end",function(){try{let fn=Tn.length===1?Tn[0]:Buffer.concat(Tn);f!=="arraybuffer"&&(fn=fn.toString(A),(!A||A==="utf8")&&(fn=C.stripBOM(fn))),Xn.data=fn}catch(fn){return a(j.from(fn,null,e,Xn.request,Xn))}Is(i,a,Xn)})}Te.once("abort",Tn=>{qe.destroyed||(qe.emit("error",Tn),qe.destroy())})}),Te.once("abort",G=>{W.close?W.close():W.destroy(G)}),W.on("error",function(U){a(j.from(U,null,e,W))});let Ye=new Set;if(W.on("socket",function(U){typeof U.setKeepAlive=="function"&&U.setKeepAlive(!0,1e3*60),U[d_]||(U.on("error",SK),U[d_]=!0),U[ed]=W,Ye.add(U)}),W.once("close",function(){O();for(let U of Ye)U[ed]===W&&(U[ed]=null);Ye.clear()}),s("timeout")){let G=parseInt(s("timeout"),10);if(Number.isNaN(G)){tn(new j("error trying to parse `config.timeout` to int",j.ERR_BAD_OPTION_VALUE,e,W));return}let U=function(){N||tn(z())};Wi&&G>0&&(le=setTimeout(U,G)),W.setTimeout(G,U)}else W.setTimeout(0);if(C.isStream(l)){let G=!1,U=!1;l.on("end",()=>{G=!0}),l.once("error",On=>{U=!0,W.destroy(On)}),l.on("close",()=>{!G&&!U&&tn(new Ft("Request stream has been aborted",e,W))});let Ee=l;if(T>-1&&!pn){let On=T,qe=0;Ee=mi.pipeline([l,new mi.Transform({transform(Yn,Xn,Tn){if(qe+=Yn.length,qe>On)return Tn(new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,e,W));Tn(null,Yn)}})],C.noop),Ee.on("error",Yn=>{W.destroyed||W.destroy(Yn)})}Ee.pipe(W)}else l&&W.write(l),W.end()})},NK=Ze.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Ze.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Ze.origin),Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent)):()=>!0,UK=Ze.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 rn?{...t}:t,$K=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function Ar(t,e){t=t||{},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,p,h,g){return C.isPlainObject(u)&&C.isPlainObject(p)?C.merge.call({caseless:g},u,p):C.isPlainObject(p)?C.merge({},p):C.isArray(p)?p.slice():p}function a(u,p,h,g){if(C.isUndefined(p)){if(!C.isUndefined(u))return i(void 0,u,h,g)}else return i(u,p,h,g)}function r(u,p){if(!C.isUndefined(p))return i(void 0,p)}function s(u,p){if(C.isUndefined(p)){if(!C.isUndefined(u))return i(void 0,u)}else return i(void 0,p)}function o(u){let p=C.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!C.isUndefined(p))if(C.isPlainObject(p)){if(C.hasOwnProp(p,u))return p[u]}else return;let h=C.hasOwnProp(t,"transitional")?t.transitional:void 0;if(C.isPlainObject(h)&&C.hasOwnProp(h,u))return h[u]}function l(u,p,h){if(C.hasOwnProp(e,h))return i(u,p);if(C.hasOwnProp(t,h))return i(void 0,u)}let c={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage: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:l,headers:(u,p,h)=>a(b_(u),b_(p),h,!0)};return C.forEach($K({...t,...e}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;let h=C.hasOwnProp(c,p)?c[p]:a,g=C.hasOwnProp(t,p)?t[p]:void 0,d=C.hasOwnProp(e,p)?e[p]:void 0,m=h(g,d,p);C.isUndefined(m)&&h!==l||(n[p]=m)}),C.hasOwnProp(e,"validateStatus")&&C.isUndefined(e.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(C.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.validateStatus),n}var BK=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function w2(t){let e=Ar({},t),n=h=>C.hasOwnProp(e,h)?e[h]:void 0,i=n("data"),a=n("withXSRFToken"),r=n("xsrfHeaderName"),s=n("xsrfCookieName"),o=n("headers"),l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),p=n("url");if(e.headers=o=rn.from(o),e.url=gA(fA(c,p,u,e),n("params"),n("paramsSerializer")),l){let h=C.getSafeProp(l,"username")||"",g=C.getSafeProp(l,"password")||"";try{o.set("Authorization","Basic "+btoa(h+":"+(g?BK(g):"")))}catch(d){throw j.from(d,j.ERR_BAD_OPTION_VALUE,t)}}if(C.isFormData(i)){let h=C.getSafeProp(i,"getHeaders");Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv||C.isReactNative(i)?o.setContentType(void 0):C.isFunction(h)&&n2(o,h.call(i),n("formDataHeaderPolicy"))}if(Ze.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&NK(e.url))){let g=r&&s&&UK.read(s);g&&o.set(r,g)}return e}var LK=typeof XMLHttpRequest<"u",FK=LK&&function(t){return new Promise(function(n,i){let a=w2(t),r=a.data,s=rn.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:c}=a,u,p,h,g,d,m;function w(){g&&g(),d&&d(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function A(x){if(!f)return;if(f.status===0&&(Xp(e2(a.url))||Xp(Ze.origin))!=="file"&&!(f.responseURL&&f.responseURL.startsWith("file:"))){i(new j("Request aborted",j.ECONNABORTED,t,f)),w(),f=null;return}try{x?m&&m(x):d&&d()}catch(V){setTimeout(()=>{throw V})}if(!f)return;let S=rn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),M={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:t,request:f};Is(function(N){n(N),w()},function(N){i(N),w()},M),f=null}"onloadend"in f?f.onloadend=A:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(A)},f.onabort=function(){f&&(i(new j("Request aborted",j.ECONNABORTED,t,f)),w(),f=null)},f.onerror=function(S){let T=S&&S.message?S.message:"Network Error",M=new j(T,j.ERR_NETWORK,t,f);M.event=S||null,i(M),w(),f=null},f.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",T=a.transitional||cd;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),i(new j(S,T.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,t,f)),w(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(hA(s),function(S,T){f.setRequestHeader(T,S)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),c&&([h,d,m]=zs(c,!0),f.addEventListener("progress",h)),l&&f.upload&&([p,g]=zs(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(u=x=>{f&&(i(!x||x.type?new Ft(null,t,f):x),f.abort(),w(),f=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));let b=Xp(a.url);if(b&&!Ze.protocols.includes(b)){i(new j("Unsupported protocol "+b+":",j.ERR_BAD_REQUEST,t)),w();return}f.send(r||null)})},VK=(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 c=l instanceof Error?l:this.reason;n.abort(c instanceof j?c:new Ft(c instanceof Error?c.message:c))}},r=e&&setTimeout(()=>{r=null,a(new j(`timeout of ${e}ms exceeded`,j.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=>{if(!i){if(l.aborted){a.call(l);return}l.addEventListener("abort",a,{once:!0})}});let{signal:o}=n;return o.unsubscribe=()=>C.asap(s),o},JK=function*(t,e){let n=t.byteLength;if(n{let a=KK(t,e),r=0,s,o=l=>{s||(s=!0,i&&i(l))};return new ReadableStream({async pull(l){try{let{done:c,value:u}=await a.next();if(c){o(),l.close();return}let p=u.byteLength;if(n){let h=r+=p;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw o(c),c}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},y_=64*1024,QK={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Zp}=C,YK=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),P_=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},j_=(t,...e)=>{try{return!!t(...e)}catch{return!1}},XK=t=>{let e=t.indexOf("://"),n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},eZ=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?Zp(a):typeof fetch=="function",l=Zp(r),c=Zp(s);if(!o)return!1;let u=o&&Zp(n),p=o&&(typeof i=="function"?(f=>A=>f.encode(A))(new i):async f=>new Uint8Array(await new r(f).arrayBuffer())),h=l&&u&&j_(()=>{let f=!1,A=new r(Ze.origin,{body:new n,method:"POST",get duplex(){return f=!0,"half"}}),b=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),f&&!b}),g=c&&u&&j_(()=>C.isReadableStream(new s("").body)),d={stream:g&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(A,b)=>{let x=A&&A[f];if(x)return x.call(A);throw new j(`Response type '${f}' is not supported`,j.ERR_NOT_SUPPORT,b)})});let m=async f=>{if(f==null)return 0;if(C.isBlob(f))return f.size;if(C.isSpecCompliantForm(f))return(await new r(Ze.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(C.isArrayBufferView(f)||C.isArrayBuffer(f))return f.byteLength;if(C.isURLSearchParams(f)&&(f=f+""),C.isString(f))return(await p(f)).byteLength},w=async(f,A)=>{let b=C.toFiniteNumber(f.getContentLength());return b??m(A)};return async f=>{let{url:A,method:b,data:x,signal:S,cancelToken:T,timeout:M,onDownloadProgress:V,onUploadProgress:N,responseType:_,headers:W,withCredentials:le="same-origin",fetchOptions:Pe,maxContentLength:Te,maxBodyLength:tn,maxRedirects:O}=w2(f),z=C.isNumber(Te)&&Te>-1,Ce=C.isNumber(tn)&&tn>-1,cn=me=>C.hasOwnProp(f,me)?f[me]:void 0,Z=a||fetch;_=_?(_+"").toLowerCase():"text";let ge=VK([S,T&&T.toAbortSignal()],M),Me=null,Re=ge&&ge.unsubscribe&&(()=>{ge.unsubscribe()}),Bn,qi=null,_i=()=>new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,f,Me);try{let me,He=cn("auth");if(He){let Q=C.getSafeProp(He,"username")||"",Ye=C.getSafeProp(He,"password")||"";me={username:Q,password:Ye}}if(XK(A)){let Q=new URL(A,Ze.origin);if(!me&&(Q.username||Q.password)){let Ye=P_(Q.username),G=P_(Q.password);me={username:Ye,password:G}}(Q.username||Q.password)&&(Q.username="",Q.password="",A=Q.href)}if(me&&(W.delete("authorization"),W.set("Authorization","Basic "+btoa(YK((me.username||"")+":"+(me.password||""))))),z&&typeof A=="string"&&A.startsWith("data:")&&CK(A)>Te)throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me);if(Ce&&b!=="get"&&b!=="head"){let Q=await m(x);if(typeof Q=="number"&&isFinite(Q)&&(Bn=Q,Q>tn))throw _i()}let _t=Ce&&(C.isReadableStream(x)||C.isStream(x)),Hi=(Q,Ye,G)=>x_(Q,y_,U=>{if(Ce&&U>tn)throw qi=_i();Ye&&Ye(U)},G);if(h&&b!=="get"&&b!=="head"&&(N||_t)){if(Bn=Bn??await w(W,x),Bn!==0||_t){let Q=new r(A,{method:"POST",body:x,duplex:"half"}),Ye;if(C.isFormData(x)&&(Ye=Q.headers.get("content-type"))&&W.setContentType(Ye),Q.body){let[G,U]=N&&sd(Bn,zs(od(N)))||[];x=Hi(Q.body,G,U)}}}else if(_t&&!l&&u&&b!=="get"&&b!=="head")x=Hi(x);else if(_t&&l&&!h&&b!=="get"&&b!=="head")throw new j("Stream request bodies are not supported by the current fetch implementation",j.ERR_NOT_SUPPORT,f,Me);C.isString(le)||(le=le?"include":"omit");let Qt=l&&"credentials"in r.prototype;if(C.isFormData(x)){let Q=W.getContentType();Q&&/^multipart\/form-data/i.test(Q)&&!/boundary=/i.test(Q)&&W.delete("content-type")}W.set("User-Agent","axios/"+Ul,!1);let jn=Pe==null?Pe:Object.assign(Object.create(null),Pe);jn&&(delete jn.body,delete jn.headers,delete jn.method,delete jn.signal,delete jn.duplex,delete jn.credentials);let Ae=Object.assign(Object.create(null),jn,{signal:ge,method:b.toUpperCase(),headers:hA(W.normalize()),body:x,duplex:"half",credentials:Qt?le:void 0});l&&(C.forEach(QK,(Q,Ye)=>{Ae[Ye]===void 0&&(Ae[Ye]=Q)}),Ae.signal===void 0&&(Ae.signal=null),Ae.body===void 0&&(Ae.body=null)),O===0&&(Ae.redirect="manual",jn&&(jn.redirect="manual")),Me=l&&new r(A,Ae);let Sn=await(l?Z(Me,jn):Z(A,Ae)),ht=rn.from(Sn.headers);if(z){let Q=C.toFiniteNumber(ht.getContentLength());if(Q!=null&&Q>Te)throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me)}let Wi=g&&(_==="stream"||_==="response");if(g&&Sn.body&&(V||z||Wi&&Re)){let Q={};["status","statusText","headers"].forEach(qe=>{Q[qe]=Sn[qe]});let Ye=C.toFiniteNumber(ht.getContentLength()),[G,U]=V&&sd(Ye,zs(od(V),!0))||[],Ee=0,On=qe=>{if(z&&(Ee=qe,Ee>Te))throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me);G&&G(qe)};Sn=new s(x_(Sn.body,y_,On,()=>{U&&U(),Re&&Re()}),Q)}_=_||"text";let pn=await d[C.findKey(d,_)||"text"](Sn,f);if(z&&!g&&!Wi){let Q;if(pn!=null&&(typeof pn.byteLength=="number"?Q=pn.byteLength:typeof pn.size=="number"?Q=pn.size:typeof pn=="string"&&(Q=typeof i=="function"?new i().encode(pn).byteLength:pn.length)),typeof Q=="number"&&Q>Te)throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me)}return!Wi&&Re&&Re(),await new Promise((Q,Ye)=>{Is(Q,Ye,{data:pn,headers:rn.from(Sn.headers),status:Sn.status,statusText:Sn.statusText,config:f,request:Me})})}catch(me){if(Re&&Re(),ge&&ge.aborted&&ge.reason instanceof j){let He=ge.reason;throw He.config=f,Me&&(He.request=Me),me!==He&&Object.defineProperty(He,"cause",{__proto__:null,value:me,writable:!0,enumerable:!1,configurable:!0}),He}if(qi)throw Me&&!qi.request&&(qi.request=Me),qi;if(me instanceof j)throw Me&&!me.request&&(me.request=Me),me;if(me&&me.name==="TypeError"&&/Load failed|fetch/i.test(me.message)){let He=new j("Network Error",j.ERR_NETWORK,f,Me,me&&me.response);throw Object.defineProperty(He,"cause",{__proto__:null,value:me.cause||me,writable:!0,enumerable:!1,configurable:!0}),He}throw j.from(me,me&&me.code,f,Me,me&&me.response)}}},nZ=new Map,v2=t=>{let e=t&&t.env||{},{fetch:n,Request:i,Response:a}=e,r=[i,a,n],s=r.length,o=s,l,c,u=nZ;for(;o--;)l=r[o],c=u.get(l),c===void 0&&u.set(l,c=o?new Map:eZ(e)),u=c;return c};v2();var vA={http:GK,xhr:FK,fetch:{get:v2}};C.forEach(vA,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var S_=t=>`- ${t}`,iZ=t=>C.isFunction(t)||t===null||t===!1;function tZ(t,e){t=C.isArray(t)?t:[t];let{length:n}=t,i,a,r={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),o=n?s.length>1?`since : -`+s.map(S_).join(` -`):" "+S_(s[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+o,j.ERR_NOT_SUPPORT)}return a}var C2={getAdapter:tZ,adapters:vA};function eA(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ft(null,t)}function nA(t){let e=C.toSafeFlatObject(t);return eA(e),e.headers=rn.from(C.getSafeProp(e,"headers")),e.data=ZC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),C2.getAdapter(e.adapter||Fl.adapter,e)(e).then(function(a){eA(e),e.response=a;try{a.data=ZC.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=rn.from(a.headers),a},function(a){if(!X_(a)&&(eA(e),a&&a.response)){e.response=a.response;try{a.response.data=ZC.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=rn.from(a.response.headers)}return Promise.reject(a)})}var pd={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{pd[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});var O_={};pd.transitional=function(e,n,i){function a(r,s){return"[Axios v"+Ul+"] Transitional option '"+r+"'"+s+(i?". "+i:"")}return(r,s,o)=>{if(e===!1)throw new j(a(s," has been removed"+(n?" in "+n:"")),j.ERR_DEPRECATED);return n&&!O_[s]&&(O_[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}};pd.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function aZ(t,e,n){if(typeof t!="object"||t===null)throw new j("options must be an object",j.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 j("option "+r+" must be "+l,j.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new j("Unknown option "+r,j.ERR_BAD_OPTION)}}var nd={assertOptions:aZ,validators:pd},Un=nd.validators,Lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ad,response:new ad}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error)try{let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=a.stack,s="";if(typeof r=="string"){let o=r.indexOf(` +`)===-1){Hl("have not received end of HTTP headers yet..."),r();return}let d=h.toString("ascii",0,h.indexOf(`\r +`)),m=+d.split(" ")[1];Hl("got proxy server response: %o",d),e({statusCode:m,buffered:h})}t.on("error",c),t.on("close",o),t.on("end",l),r()})}Wl.default=B6});var Bq=v(vr=>{"use strict";var L6=vr&&vr.__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(u){try{c(i.next(u))}catch(p){s(p)}}function l(u){try{c(i.throw(u))}catch(p){s(p)}}function c(u){u.done?r(u.value):a(u.value).then(o,l)}c((i=i.apply(t,e||[])).next())})},Gs=vr&&vr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vr,"__esModule",{value:!0});var Uq=Gs(require("net")),$q=Gs(require("tls")),F6=Gs(require("url")),V6=Gs(require("assert")),J6=Gs(ql()),K6=Gq(),Z6=Gs(Nq()),Rl=J6.default("https-proxy-agent:agent"),qC=class extends K6.Agent{constructor(e){let n;if(typeof e=="string"?n=F6.default.parse(e):n=e,!n)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Rl("creating new HttpsProxyAgent instance: %o",n),super(n);let i=Object.assign({},n);this.secureProxy=n.secureProxy||Y6(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 L6(this,void 0,void 0,function*(){let{proxy:i,secureProxy:a}=this,r;a?(Rl("Creating `tls.Socket`: %o",i),r=$q.default.connect(i)):(Rl("Creating `net.Socket`: %o",i),r=Uq.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:c,port:u,secureEndpoint:p}=n;X6(u,p)||(c+=`:${u}`),s.Host=c,s.Connection="close";for(let w of Object.keys(s))l+=`${w}: ${s[w]}\r +`;let h=Z6.default(r);r.write(`${l}\r +`);let{statusCode:g,buffered:d}=yield h;if(g===200){if(e.once("socket",Q6),n.secureEndpoint){Rl("Upgrading socket connection to TLS");let w=n.servername||n.host;return $q.default.connect(Object.assign(Object.assign({},e9(n,"host","hostname","path","port")),{socket:r,servername:w}))}return r}r.destroy();let m=new Uq.default.Socket({writable:!1});return m.readable=!0,e.once("socket",w=>{Rl("replaying proxy buffer for failed request"),V6.default(w.listenerCount("data")>0),w.push(d),w.push(null)}),m})}};vr.default=qC;function Q6(t){t.resume()}function X6(t,e){return!!(!e&&t===80||e&&t===443)}function Y6(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function e9(t,...e){let n={},i;for(i in t)e.includes(i)||(n[i]=t[i]);return n}});var Fq=v((WC,Lq)=>{"use strict";var n9=WC&&WC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},_C=n9(Bq());function HC(t){return new _C.default(t)}(function(t){t.HttpsProxyAgent=_C.default,t.prototype=_C.default.prototype})(HC||(HC={}));Lq.exports=HC});var Jq=v((ype,Vq)=>{var Il;Vq.exports=function(){if(!Il){try{Il=ql()("follow-redirects")}catch{}typeof Il!="function"&&(Il=function(){})}Il.apply(null,arguments)}});var Yq=v((Ppe,VC)=>{var Dl=require("url"),zl=Dl.URL,i9=require("http"),t9=require("https"),GC=require("stream").Writable,NC=require("assert"),Kq=Jq();(function(){var e=typeof process<"u",n=typeof window<"u"&&typeof document<"u",i=Ar(Error.captureStackTrace);!e&&(n||!i)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var UC=!1;try{NC(new zl(""))}catch(t){UC=t.code==="ERR_INVALID_URL"}var a9=["Authorization","Proxy-Authorization","Cookie"],r9=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],$C=["abort","aborted","connect","error","socket","timeout"],BC=Object.create(null);$C.forEach(function(t){BC[t]=function(e,n,i){this._redirectable.emit(t,e,n,i)}});var IC=Gl("ERR_INVALID_URL","Invalid URL",TypeError),zC=Gl("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),s9=Gl("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",zC),o9=Gl("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),l9=Gl("ERR_STREAM_WRITE_AFTER_END","write after end"),u9=GC.prototype.destroy||Qq;function mi(t,e){GC.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 zC?a:new zC({cause:a}))}},this._headerFilter=new RegExp("^(?:"+a9.concat(t.sensitiveHeaders).map(m9).join("|")+")$","i"),this._performRequest()}mi.prototype=Object.create(GC.prototype);mi.prototype.abort=function(){FC(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};mi.prototype.destroy=function(t){return FC(this._currentRequest,t),u9.call(this,t),this};mi.prototype.write=function(t,e,n){if(this._ending)throw new l9;if(!Cr(t)&&!h9(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Ar(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 o9),this.abort())};mi.prototype.end=function(t,e,n){if(Ar(t)?(n=t,t=e=null):Ar(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}};mi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};mi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};mi.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){mi.prototype[t]=function(e,n){return this._currentRequest[t](e,n)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(mi.prototype,t,{get:function(){return this._currentRequest[t]}})});mi.prototype._sanitizeOptions=function(t){if(!t.headers)t.headers={};else if(Array.isArray(t.headers)){var e=t.headers;t.headers={};for(var n=0;n=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(FC(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new s9;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=[],RC(/^content-/i,this._options.headers));var s=RC(/^host$/i,this._options.headers),o=LC(this._currentUrl),l=s||o.host,c=/^\w+:/.test(n)?this._currentUrl:Dl.format(Object.assign(o,{host:l})),u=c9(n,c);if(Kq("redirecting to",u.href),this._isRedirect=!0,DC(u,this._options),(u.protocol!==o.protocol&&u.protocol!=="https:"||u.host!==l&&!p9(u.host,l))&&RC(this._headerFilter,this._options.headers),Ar(a)){var p={headers:t.headers,statusCode:e},h={url:c,method:r,headers:i};a(this._options,p,h),this._sanitizeOptions(this._options)}this._performRequest()};function Zq(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(c,u,p){return g9(c)?c=DC(c):Cr(c)?c=DC(LC(c)):(p=u,u=Xq(c),c={protocol:a}),Ar(u)&&(p=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},c,u),u.nativeProtocols=n,!Cr(u.host)&&!Cr(u.hostname)&&(u.hostname="::1"),NC.equal(u.protocol,a,"protocol mismatch"),Kq("options",u),new mi(u,p)}function l(c,u,p){var h=s.request(c,u,p);return h.end(),h}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function Qq(){}function LC(t){var e;if(UC)e=new zl(t);else if(e=Xq(Dl.parse(t)),!Cr(e.protocol))throw new IC({input:t});return e}function c9(t,e){return UC?new zl(t,e):LC(Dl.resolve(e,t))}function Xq(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new IC({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new IC({input:t.href||t});return t}function DC(t,e){var n=e||{};for(var i of r9)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 RC(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 Gl(t,e,n){function i(a){Ar(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 FC(t,e){for(var n of $C)t.removeListener(n,BC[n]);t.on("error",Qq),t.destroy(e)}function p9(t,e){NC(Cr(t)&&Cr(e));var n=t.length-e.length-1;return n>0&&t[n]==="."&&t.endsWith(e)}function d9(t){return t instanceof Array}function Cr(t){return typeof t=="string"||t instanceof String}function Ar(t){return typeof t=="function"}function h9(t){return typeof t=="object"&&"length"in t}function g9(t){return zl&&t instanceof zl}function m9(t){return t.replace(/[[\]\\/()*+?.^$|]/g,"\\$&")}VC.exports=Zq({http:i9,https:t9});VC.exports.wrap=Zq});var O2=v((jpe,S2)=>{"use strict";var __=Eq(),f9=require("crypto"),w9=require("url"),H_=Fq(),W_=require("http"),R_=require("https"),I_=require("http2"),hA=require("util"),e_=require("path"),v9=Yq(),Vi=require("zlib"),fi=require("stream"),C9=require("events");function z_(t,e){return function(){return t.apply(e,arguments)}}var{toString:A9}=Object.prototype,{getPrototypeOf:ba}=Object,{iterator:Jl,toStringTag:D_}=Symbol,Bl=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),G_=t=>typeof t=="string"&&(t==="__proto__"||t==="constructor"||t==="prototype"),N_=(t,e,n)=>t===Object.prototype||!n&&e===null,b9=t=>{if(!Object.isExtensible(t))return!1;let e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&e.push(...Object.getOwnPropertySymbols(t)),e.every(n=>{if(G_(n))return!1;let i=Object.getOwnPropertyDescriptor(t,n);return!!i&&i.configurable&&i.writable===!0})},Ll=(t,e)=>{let n=t,i=[];for(;n!=null;){if(i.indexOf(n)!==-1)return!1;i.push(n);let a=ba(n);if(N_(n,a,n===t))return!1;if(Bl(n,e))return!0;n=a}return!1},x9=(t,e)=>t!=null&&Ll(t,e)?t[e]:void 0,y9=t=>{if(t==null||typeof t!="object"&&typeof t!="function")return t;let e=ba(t);if(e===null&&b9(t))return t;let n=Object.create(null),i=Object.create(null),a=[],r=t;for(;r!=null&&a.indexOf(r)===-1;){a.push(r);let s=r===t?e:ba(r);if(N_(r,s,r===t))break;let o=Object.getOwnPropertyNames(r);Object.getOwnPropertySymbols&&o.push(...Object.getOwnPropertySymbols(r));for(let l of o)G_(l)||Bl(i,l)||(n[l]=t[l],i[l]=!0);r=s}return n},gA=(t=>e=>{let n=A9.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ji=t=>(t=t.toLowerCase(),e=>gA(e)===t),dd=t=>e=>typeof e===t,{isArray:yr}=Array,Pr=dd("undefined");function Bs(t){return t!==null&&!Pr(t)&&t.constructor!==null&&!Pr(t.constructor)&&wi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var U_=Ji("ArrayBuffer");function P9(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&U_(t.buffer),e}var j9=dd("string"),wi=dd("function"),$_=dd("number"),Ls=t=>t!==null&&typeof t=="object",S9=t=>t===!0||t===!1,nd=t=>{if(!Ls(t))return!1;let e=ba(t);return(e===null||e===Object.prototype||ba(e)===null)&&!Ll(t,D_)&&!Ll(t,Jl)},O9=t=>{if(!Ls(t)||Bs(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},T9=Ji("Date"),k9=Ji("File"),M9=t=>!!(t&&typeof t.uri<"u"),E9=t=>t&&typeof t.getParts<"u",q9=Ji("Blob"),_9=Ji("FileList"),H9=Ji("Set"),W9=t=>Ls(t)&&wi(t.pipe);function R9(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var n_=R9(),i_=typeof n_.FormData<"u"?n_.FormData:void 0,I9=t=>{if(!t)return!1;if(i_&&t instanceof i_)return!0;let e=ba(t);if(!e||e===Object.prototype||!wi(t.append))return!1;let n=gA(t);return n==="formdata"||n==="object"&&wi(t.toString)&&t.toString()==="[object FormData]"},z9=Ji("URLSearchParams"),[D9,G9,N9,U9]=["ReadableStream","Request","Response","Headers"].map(Ji),$9=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kl(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),yr(t))for(i=0,a=t.length;i0;)if(a=n[i],e===a.toLowerCase())return a;return null}var br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,L_=t=>!Pr(t)&&t!==br;function rA(...t){let{caseless:e,skipUndefined:n}=L_(this)&&this||{},i={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&typeof s=="string"&&B_(i,s)||s,l=Bl(i,o)?i[o]:void 0;nd(l)&&nd(r)?i[o]=rA(l,r):nd(r)?i[o]=rA({},r):yr(r)?i[o]=r.slice():(!n||!Pr(r))&&(i[o]=r)};for(let r=0,s=t.length;r(Kl(e,(a,r)=>{n&&wi(a)?Object.defineProperty(t,r,{__proto__:null,value:z_(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),L9=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),F9=(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)},V9=(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&&ba(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},J9=(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},K9=t=>{if(!t)return null;if(yr(t))return t;let e=t.length;if(!$_(e))return null;let n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Z9=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ba(Uint8Array)),Q9=(t,e)=>{let i=(t&&t[Jl]).call(t),a;for(;(a=i.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},X9=(t,e)=>{let n,i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Y9=Ji("HTMLFormElement"),e8=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:n8}=Object.prototype,i8=Ji("RegExp"),F_=(t,e)=>{let n=Object.getOwnPropertyDescriptors(t),i={};Kl(n,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(i[r]=s||a)}),Object.defineProperties(t,i)},t8=t=>{F_(t,(e,n)=>{if(wi(t)&&["arguments","caller","callee"].includes(n))return!1;let i=t[n];if(wi(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+"'")})}})},a8=(t,e)=>{let n={},i=a=>{a.forEach(r=>{n[r]=!0})};return yr(t)?i(t):i(String(t).split(e)),n},r8=()=>{},s8=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function o8(t){return!!(t&&wi(t.append)&&t[D_]==="FormData"&&t[Jl])}var l8=t=>{let e=new WeakSet,n=i=>{if(Ls(i)){if(e.has(i))return;if(Bs(i))return i;if(!("toJSON"in i)){e.add(i);let a;if(H9(i)){a=[];for(let r of i){let s=n(r);!Pr(s)&&a.push(s)}}else a=yr(i)?[]:{},Kl(i,(r,s)=>{let o=n(r);!Pr(o)&&(a[s]=o)});return e.delete(i),a}}return i};return n(t)},u8=Ji("AsyncFunction"),c8=t=>t&&(Ls(t)||wi(t))&&wi(t.then)&&wi(t.catch),V_=((t,e)=>t?setImmediate:e?((n,i)=>(br.addEventListener("message",({source:a,data:r})=>{a===br&&r===n&&i.length&&i.shift()()},!1),a=>{i.push(a),br.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wi(br.postMessage)),p8=typeof queueMicrotask<"u"?queueMicrotask.bind(br):typeof process<"u"&&process.nextTick||V_,J_=t=>t!=null&&wi(t[Jl]),d8=t=>t!=null&&Ll(t,Jl)&&J_(t),C={isArray:yr,isArrayBuffer:U_,isBuffer:Bs,isFormData:I9,isArrayBufferView:P9,isString:j9,isNumber:$_,isBoolean:S9,isObject:Ls,isPlainObject:nd,isEmptyObject:O9,isReadableStream:D9,isRequest:G9,isResponse:N9,isHeaders:U9,isUndefined:Pr,isDate:T9,isFile:k9,isReactNativeBlob:M9,isReactNative:E9,isBlob:q9,isRegExp:i8,isFunction:wi,isStream:W9,isURLSearchParams:z9,isTypedArray:Z9,isFileList:_9,forEach:Kl,merge:rA,extend:B9,trim:$9,stripBOM:L9,inherits:F9,toFlatObject:V9,kindOf:gA,kindOfTest:Ji,endsWith:J9,toArray:K9,forEachEntry:Q9,matchAll:X9,isHTMLForm:Y9,hasOwnProperty:Bl,hasOwnProp:Bl,hasOwnInPrototypeChain:Ll,getSafeProp:x9,toSafeFlatObject:y9,reduceDescriptors:F_,freezeMethods:t8,toObjectSet:a8,toCamelCase:e8,noop:r8,toFiniteNumber:s8,findKey:B_,global:br,isContextDefined:L_,isSpecCompliantForm:o8,toJSONObject:l8,isAsyncFn:u8,isThenable:c8,setImmediate:V_,asap:p8,isIterable:J_,isSafeIterable:d8},h8=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"]),g8=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();let o=C.hasOwnProp(e,n);!n||o&&C.hasOwnProp(h8,n)||(n==="set-cookie"?o?e[n].push(i):e[n]=[i]:e[n]=o?e[n]+", "+i:i)}),e};function m8(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 f8=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),w8=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function mA(t,e){return C.isArray(t)?t.map(n=>mA(n,e)):m8(String(t).replace(e,""))}var v8=t=>mA(t,f8),C8=t=>mA(t,w8);function fA(t){let e=Object.create(null);return C.forEach(t.toJSON(),(n,i)=>{e[i]=C8(n)}),e}var t_=Symbol("internals");function Nl(t){return t&&String(t).trim().toLowerCase()}function id(t){return t===!1||t==null?t:C.isArray(t)?t.map(id):v8(String(t))}function A8(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 b8=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function JC(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)}function x8(t){let e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let i=1;i=e))return t;n+=t[i]}return n}function y8(t){let e=Object.create(null),n=String(t),i=0,a=!1,r=!1;function s(o){let l=JC(n.slice(i,o)),c=l.indexOf("=");if(c<1)return;let u=JC(l.slice(0,c));if(!b8.test(u))return;let p=u.toLowerCase();if(p==="__proto__"||p==="constructor"||p==="prototype")return;let h=JC(l.slice(c+1));e[p]=x8(h)}for(let o=0;o/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function KC(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 j8(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function S8(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 rn=class{constructor(e){e&&this.set(e)}set(e,n,i){let a=this;function r(o,l,c){let u=Nl(l);if(!u)return;let p=C.findKey(a,u);(!p||a[p]===void 0||c===!0||c===void 0&&a[p]!==!1)&&(a[p||l]=id(o))}let s=(o,l)=>C.forEach(o,(c,u)=>r(c,u,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(C.isString(e)&&(e=e.trim())&&!P8(e))s(g8(e),n);else if(C.isObject(e)&&C.isSafeIterable(e)){let o=Object.create(null),l,c;for(let u of e){if(!C.isArray(u))throw new TypeError("Object iterator must return a key-value pair");c=u[0],C.hasOwnProp(o,c)?(l=o[c],o[c]=C.isArray(l)?[...l,u[1]]:[l,u[1]]):o[c]=u[1]}s(o,n)}else e!=null&&r(n,e,i);return this}get(e,n){if(e=Nl(e),e){let i=C.findKey(this,e);if(i){let a=this[i];if(!n)return a;if(n===!0)return A8(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=Nl(e),e){let i=C.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||KC(this,this[i],i,n)))}return!1}delete(e,n){let i=this,a=!1;function r(s){if(s=Nl(s),s){let o=C.findKey(i,s);o&&(!n||KC(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||KC(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]=id(a),delete n[r];return}let o=e?j8(r):String(r).trim();o!==r&&delete n[r],n[o]=id(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(){let e=this.get("set-cookie");return C.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return y8(e)}static concat(e,...n){let i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){let i=(this[t_]=this[t_]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=Nl(s);i[o]||(S8(a,s),i[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(rn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});C.freezeMethods(rn);var od="[REDACTED ****]";function O8(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 T8(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 rn&&(r=r.toJSON()),i.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let c=a(o);C.isUndefined(c)||(s[l]=c)});else{if(!C.isPlainObject(r)&&O8(r))return i.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let c=n.has(o.toLowerCase())?od:a(l);C.isUndefined(c)||(s[o]=c)}}return i.pop(),s};return a(t)}function a_(t){try{return String(t)}catch{return""}}function k8(t){return t.errors.map(n=>{try{return n&&n.message?a_(n.message):a_(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}var j=class t extends Error{static from(e,n,i,a,r,s){let o=e.message;!o&&C.isArray(e.errors)&&e.errors.length&&(o=k8(e));let l=new t(o,n||e.code,i,a,r);return Object.defineProperty(l,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),l.name=e.name,e.status!=null&&l.status==null&&(l.status=e.status),s&&Object.assign(l,s),l}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?T8(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}}};j.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";j.ERR_BAD_OPTION="ERR_BAD_OPTION";j.ECONNABORTED="ECONNABORTED";j.ETIMEDOUT="ETIMEDOUT";j.ECONNREFUSED="ECONNREFUSED";j.ERR_NETWORK="ERR_NETWORK";j.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";j.ERR_DEPRECATED="ERR_DEPRECATED";j.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";j.ERR_BAD_REQUEST="ERR_BAD_REQUEST";j.ERR_CANCELED="ERR_CANCELED";j.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";j.ERR_INVALID_URL="ERR_INVALID_URL";j.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ZC={isBufferAvailable(){return typeof Buffer<"u"},from(t){return Buffer.from(t)}},K_=100;function sA(t){return C.isPlainObject(t)||C.isArray(t)}function Z_(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function QC(t,e,n){return t?t.concat(e).map(function(a,r){return a=Z_(a),!n&&r?"["+a+"]":a}).join(n?".":""):e}function M8(t){return C.isArray(t)&&!t.some(sA)}var E8=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function hd(t,e,n){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(__||FormData);let i=(A,b)=>{let x=C.getSafeProp(n,A);return C.isUndefined(x)?b:x},a=i("metaTokens",!0),r=i("visitor")||m,s=i("dots",!1),o=i("indexes",!1),l=i("Blob")||typeof Blob<"u"&&Blob,c=i("maxDepth",K_),u=l&&C.isSpecCompliantForm(e),p=[];if(!C.isFunction(r))throw new TypeError("visitor must be a function");function h(A){if(A===null)return"";if(C.isDate(A))return A.toISOString();if(C.isBoolean(A))return A.toString();if(!u&&C.isBlob(A))throw new j("Blob is not supported. Use a Buffer instead.");if(C.isArrayBuffer(A)||C.isTypedArray(A)){if(u&&typeof l=="function")return new l([A]);if(ZC&&ZC.isBufferAvailable())return ZC.from(A);throw new j("Blob is not supported. Use a Buffer instead.",j.ERR_NOT_SUPPORT)}return A}function g(A){if(A>c)throw new j("Object is too deeply nested ("+A+" levels). Max depth: "+c,j.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(A,b){if(c===1/0)return JSON.stringify(A);let x=[];return JSON.stringify(A,function(T,M){if(!C.isObject(M))return M;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(M),g(b+x.length-1),M})}function m(A,b,x){let S=A;if(C.isReactNative(e)&&C.isReactNativeBlob(A))return e.append(QC(x,b,s),h(A)),!1;if(A&&!x&&typeof A=="object"){if(C.endsWith(b,"{}"))b=a?b:b.slice(0,-2),A=d(A,1);else if(C.isArray(A)&&M8(A)||(C.isFileList(A)||C.endsWith(b,"[]"))&&(S=C.toArray(A)))return b=Z_(b),S.forEach(function(M,V){!(C.isUndefined(M)||M===null)&&e.append(o===!0?QC([b],V,s):o===null?b:b+"[]",h(M))}),!1}return sA(A)?!0:(e.append(QC(x,b,s),h(A)),!1)}let w=Object.assign(E8,{defaultVisitor:m,convertValue:h,isVisitable:sA});function f(A,b,x=0){if(!C.isUndefined(A)){if(g(x),p.indexOf(A)!==-1)throw new Error("Circular reference detected in "+b.join("."));p.push(A),C.forEach(A,function(T,M){(!(C.isUndefined(T)||T===null)&&r.call(e,T,C.isString(M)?M.trim():M,b,w))===!0&&f(T,b?b.concat(M):[M],x+1)}),p.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return f(t),e}function r_(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function Q_(t,e){this._pairs=[],t&&hd(t,this,e)}var X_=Q_.prototype;X_.append=function(e,n){this._pairs.push([e,n])};X_.toString=function(e){let n=e?i=>e.call(this,i,r_):r_;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function q8(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function wA(t,e,n){if(!e)return t;t=t||"";let i=C.isFunction(n)?{serialize:n}:n,a=C.getSafeProp(i,"encode")||q8,r=C.getSafeProp(i,"serialize"),s;if(r?s=r(e,i):s=C.isURLSearchParams(e)?e.toString():new Q_(e,i).toString(a),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var Ul=Symbol("internals");function Y_(t){return t?t.length:0}function s_(t){if(t)for(;t.length&&t[t.length-1]===null;)t.pop()}function $l(t,e){let n=t.handlers,i=Y_(n);n!==e.handlersRef?(e.handlersRef=n,e.handlerEntries.clear()):i!==e.handlersLength&&(i?e.handlerEntries.forEach(function(r,s){n[r.index]!==r.handler&&e.handlerEntries.delete(s)}):e.handlerEntries.clear()),e.handlersLength=i}var ld=class{constructor(){this.handlers=[],this[Ul]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,n,i){let a={fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null},r=this[Ul];this.handlers==null&&(this.handlers=[]),$l(this,r);let s=r.nextId++;return this.handlers.push(a),r.handlerEntries.set(s,{handler:a,index:this.handlers.length-1}),r.handlersLength=this.handlers.length,s}eject(e){let n=this[Ul];$l(this,n);let i=n.handlerEntries.get(e);if(i){if(n.handlerEntries.delete(e),this.handlers[i.index]!==i.handler)return;this.handlers[i.index]=null,n.iterationDepth||(s_(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],$l(this,this[Ul]))}forEach(e){let n=this[Ul];$l(this,n),n.iterationDepth++;try{C.forEach(this.handlers,function(a){a!==null&&e(a)})}finally{--n.iterationDepth||($l(this,n),s_(this.handlers),n.handlersLength=Y_(this.handlers))}}},gd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},_8=w9.URLSearchParams,XC="abcdefghijklmnopqrstuvwxyz",o_="0123456789",e2={DIGIT:o_,ALPHA:XC,ALPHA_DIGIT:XC+XC.toUpperCase()+o_},H8=(t=16,e=e2.ALPHA_DIGIT)=>{let n="",{length:i}=e,a=new Uint32Array(t);f9.randomFillSync(a);for(let r=0;rl_)throw new j("FormData field is too deeply nested ("+t+" levels). Max depth: "+l_,j.ERR_FORM_DATA_DEPTH_EXCEEDED)}function N8(t){let e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,i;for(;(i=n.exec(t))!==null;)n2(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function U8(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]=U8(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let n={};return C.forEachEntry(t,(i,a)=>{e(N8(i),a,n,0)}),n}return null}var t2=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Ns=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function $8(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 Zl={transitional:gd,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(i2(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 G8(e,l).toString();if((o=C.isFileList(e))||i.indexOf("multipart/form-data")>-1){let c=Ns(this,"env"),u=c&&c.FormData;return hd(o?{"files[]":e}:e,u&&new u,l)}}return r||a?(n.setContentType("application/json",!1),$8(e)):e}],transformResponse:[function(e){let n=Ns(this,"transitional")||Zl.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"?j.from(l,j.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:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(t2,t=>{Zl.headers[t]={}});function YC(t,e){let n=this||Zl,i=e||n,a=rn.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 a2(t){return!!(t&&t.__CANCEL__)}var Vt=class extends j{constructor(e,n,i){super(e??"canceled",j.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function Us(t,e,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new j("Request failed with status code "+n.status,n.status>=400&&n.status<500?j.ERR_BAD_REQUEST:j.ERR_BAD_RESPONSE,n.config,n.request,n))}function B8(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function L8(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}var F8=/[\t\n\r]/g;function r2(t){if(typeof t!="string")return t;let e=0;for(;e`${n}${i}${od}`)}function K8(t){let e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${od}@`),n=e.indexOf("#"),a=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${od}`);return n===-1?a:`${a}#${J8(e.slice(n+1))}`}function u_(t,e){if(typeof t=="string"){let n=r2(t);if(V8.test(n))throw new j(`Invalid URL ${JSON.stringify(K8(n))}: missing "//" after protocol`,j.ERR_INVALID_URL,e)}}function CA(t,e,n,i){u_(e,i);let a=!B8(e);return t&&(a||n===!1)?(u_(t,i),L8(t,e)):e}var Z8={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function Q8(t){try{return new URL(t)}catch{return null}}function X8(t){var e=(typeof t=="string"?Q8(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)||Z8[n]||0,!Y8(i,a)))return"";var r=lA(n+"_proxy")||lA("all_proxy");return r&&r.indexOf("://")===-1&&(r=n+"://"+r),r}function Y8(t,e){var n=lA("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 lA(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Fl="1.20.0";function td(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var eK=/^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function nK(t,e,n){let i=n&&n.Blob||Ze.classes.Blob,a=td(t);if(e===void 0&&i&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=eK.exec(t);if(!r)throw new j("Invalid URL",j.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",c=r[4],u="";s?u=o?s+o:s:o&&(u="text/plain"+o);let p=l==="base64"?Buffer.from(c,"base64"):Buffer.from(decodeURIComponent(c),l);if(e){if(!i)throw new j("Blob is not supported",j.ERR_NOT_SUPPORT);return new i([p],{type:u})}return p}throw new j("Unsupported protocol "+a,j.ERR_NOT_SUPPORT)}var iK=["content-type","content-length"];function s2(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,a])=>{iK.includes(i.toLowerCase())&&t.set(i,a)})}var eA=Symbol("internals"),ud=class extends fi.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[eA]={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[eA];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,i){let a=this[eA],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,c=r/l,u=a.minChunkSize!==!1?Math.max(a.minChunkSize,c*.01):0,p=(g,d)=>{let m=Buffer.byteLength(g);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(g)?process.nextTick(d):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(d)}},h=(g,d)=>{let m=Buffer.byteLength(g),w=null,f=s,A,b=0;if(r){let x=Date.now();(!a.ts||(b=x-a.ts)>=o)&&(a.ts=x,A=c-a.bytes,a.bytes=A<0?-A:0,b=0),A=c-a.bytes}if(r){if(A<=0)return setTimeout(()=>{d(null,g)},o-b);Af&&m-f>u&&(w=g.subarray(f),g=g.subarray(0,f)),p(g,w?()=>{process.nextTick(d,null,w)}:d)};h(e,function g(d,m){if(d)return i(d);m?h(m,g):i(null)})}},{asyncIterator:c_}=Symbol,o2=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[c_]?yield*t[c_]():yield t},tK=Ze.ALPHABET.ALPHA_DIGIT+"-_",Vl=typeof TextEncoder=="function"?new TextEncoder:new hA.TextEncoder,xr=`\r +`,aK=Vl.encode(xr),rK=2,uA=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)}"`:""}${xr}`;if(a)n=Vl.encode(String(n).replace(/\r?\n|\r\n?/g,xr));else{let s=String(n.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${xr}`}this.headers=Vl.encode(r+xr),this.contentLength=a?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+rK,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*o2(e),yield aK}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},sK=(t,e,n)=>{let{tag:i="form-data-boundary",size:a=25,boundary:r=i+"-"+Ze.generateString(a,tK)}=n||{};if(!C.isFormData(t))throw new TypeError("FormData instance required");if(r.length<1||r.length>70)throw new Error("boundary must be 1-70 characters long");let s=Vl.encode("--"+r+xr),o=Vl.encode("--"+r+"--"+xr),l=o.byteLength,c=Array.from(t.entries()).map(([p,h])=>{let g=new uA(p,h);return l+=g.size,g});l+=s.byteLength*c.length,l=C.toFiniteNumber(l);let u={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(u["Content-Length"]=l),e&&e(u),fi.Readable.from((async function*(){for(let p of c)yield s,yield*p.encode();yield o})())},cA=class extends fi.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)}},pA=class{constructor(){this.sessions=Object.create(null)}getSession(e,n){n=Object.assign(Object.create(null),{sessionTimeout:1e3},n);let i=this.sessions[e];if(i){let p=i.length;for(let h=0;h{if(r)return;r=!0,s&&(clearTimeout(s),s=null);let p=i,h=p.length,g=h;for(;g--;)if(p[g][0]===a){h===1?delete this.sessions[e]:p.splice(g,1),a.closed||a.close();return}},l=a.request,{sessionTimeout:c}=n;if(c!=null){let p=0;a.request=function(){let h=l.apply(this,arguments);return p++,s&&(clearTimeout(s),s=null),h.once("close",()=>{--p||(s=setTimeout(()=>{s=null,o()},c))}),h}}a.once("close",o),a.once("error",o);let u=[a,n];return i?i.push(u):i=this.sessions[e]=[u],a}},oK=(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,lK=new Set(["localhost","0.0.0.0"]),l2=t=>{let e=t.length;for(;e&&t.charCodeAt(e-1)===46;)e--;return e===t.length?t:t.slice(0,e)},u2=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)},nA=t=>{if(/^0[xX][0-9a-fA-F]+$/.test(t)){let e=parseInt(t.slice(2),16);return Number.isFinite(e)?e:null}if(t.length>1&&/^0[0-7]+$/.test(t)){let e=parseInt(t,8);return Number.isFinite(e)?e:null}if(t.length>1&&/^0[0-9]+$/.test(t))return null;if(/^[0-9]+$/.test(t)){let e=parseInt(t,10);return Number.isFinite(e)?e:null}return null},c2=t=>{if(typeof t!="string"||!t||t.indexOf(":")!==-1)return t;let e=t;if(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),e=l2(e),!/^[0-9.xXa-fA-F]+$/.test(e))return t;let n=e.split(".");if(n.some(u=>u===""))return t;if(n.length===4){let u=n.map(nA);return u.some(p=>p===null||p<0||p>255)?t:u.join(".")}if(n.length>4||n.length===1)return t;let i=n.slice(0,-1),a=n[n.length-1],r=4-i.length,s=nA(a);if(s===null)return t;let o=(1<<8*r)-1;if(s<0||s>o)return t;let l=new Array(r).fill(0);for(let u=r-1,p=s;u>=0;u--,p>>=8)l[u]=p&255;let c=i.map(nA);return c.some(u=>u===null||u<0||u>255)?t:[...c,...l].join(".")},iA=t=>/^0{1,4}$/.test(t),uK=t=>{if(t==="::")return!0;let e=t.indexOf("::");if(e!==-1){if(e!==t.lastIndexOf("::"))return!1;let i=t.slice(0,e),a=t.slice(e+2),r=i?i.split(":"):[],s=a?a.split(":"):[];return r.length+s.length<8&&r.every(iA)&&s.every(iA)}let n=t.split(":");return n.length===8&&n.every(iA)},cK=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return u2(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},p_=t=>t?lK.has(t)||u2(t)||uK(t)?!0:cK(t):!1,pK={http:80,https:443,ws:80,wss:443,ftp:21},dK=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]},hK=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,gK=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,p2=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(hK);if(e)return e[1];let n=t.match(gK);if(n){let i=parseInt(n[1],16),a=parseInt(n[2],16);return`${i>>8}.${i&255}.${a>>8}.${a&255}`}return t},mK=/^(?:0|[1-9]\d{0,2})$/,d2=t=>{let e=t.split(".");return e.length===4&&e.every(n=>mK.test(n)&&Number(n)<=255)?e.map(Number):null},fK=/^[0-9a-f]{1,4}$/i,wK=t=>{let e=t.split("::");if(e.length>2)return null;let n=e[0]?e[0].split(":"):[];if(e.length===2){let i=e[1]?e[1].split(":"):[],a=8-n.length-i.length;if(a<1)return null;n.push(...new Array(a).fill("0"),...i)}return n.length!==8||n.some(i=>!fK.test(i))?null:n.flatMap(i=>{let a=Number.parseInt(i,16);return[a>>8&255,a&255]})},h2=t=>typeof t!="string"||!t?null:t.indexOf(":")!==-1?wK(t):d2(t),d_=t=>{if(!t)return t;t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1));let e=l2(t),n=c2(e);return n!==e?n:p2(e)},vK=t=>{let e=t,n=e.charAt(0)==="[",i=e.charAt(e.length-1)==="]",a=e.includes("[")||e.includes("]");if(n||i){if(!n||!i||(e=e.slice(1,-1),e.indexOf(":")===-1||e.includes("[")||e.includes("]")))return null}else if(a)return null;if(!e||e.charAt(e.length-1)===".")return null;let r=e.indexOf(":")!==-1;if(r)try{e=new URL(`http://[${e}]/`).hostname.slice(1,-1)}catch{return null}else if(e=c2(e),!d2(e))return null;return{normalized:p2(e),wasIPv6:r}},CK=/^(.+)\/(0|[1-9]\d{0,2})$/,AK=t=>{if(t.indexOf("/")===-1)return;let e=CK.exec(t);if(!e)return null;let n=Number(e[2]),i=vK(e[1]);if(!i)return null;let{normalized:a,wasIPv6:r}=i;if(r&&a.indexOf(":")===-1){if(n<96)return null;n-=96}let s=h2(a);return!s||n>s.length*8?null:{bytes:s,prefix:n}},bK=(t,e,n)=>{let i=n>>3;for(let r=0;r{if(!s)return!1;if(s==="*")return!0;let o=AK(s);if(o!==void 0)return o!==null&&!!r&&r.length===o.bytes.length&&bK(r,o.bytes,o.prefix);let[l,c]=dK(s);return l=d_(l),!l||c&&c!==i?!1:(l.charAt(0)==="*"&&(l=l.slice(1)),l.charAt(0)==="."?a.endsWith(l):a===l||p_(a)&&p_(l))})}function yK(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 c=Date.now(),u=i[r];s||(s=c),n[a]=l,i[a]=c;let p=r,h=0;for(;p!==a;)h+=n[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),c-s{n=p,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let p=Date.now(),h=p-n;h>=i?s(u,p):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},i-h)))},()=>a&&s(a),(...u)=>s(u)]}var $s=(t,e,n=3)=>{let i=0,a=yK(50,250);return PK(r=>{if(!r||!C.isNumber(r.loaded))return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=Math.max(0,o!=null?Math.min(s,o):s),c=Math.max(0,l-i),u=a(c);i=Math.max(i,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:c,rate:u||void 0,estimated:u&&o?(o-l)/u:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},cd=(t,e)=>{let n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},pd=(t,e=C.asap)=>(...n)=>e(()=>t(...n)),h_=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,g2=(t,e,n)=>e+2t<=57?t-48:(t&223)-55,jK=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,SK=t=>t===9||t===10||t===12||t===13||t===32,OK=t=>{let e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},m2=t=>{let e=t.length,n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},TK=t=>{let e=t.length,n=0,i=0,a=!1;for(let r=0;r0){a=!0;continue}n++}}return a||i>2||i>0&&(n+i)%4!==0||n%4===1?m2(t):OK(n)},f2=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let i=t.slice(5,n),a=t.slice(n+1);if(/;base64/i.test(i))return e(a);let s=0;for(let o=0,l=a.length;o=55296&&c<=56319&&o+1=56320&&u<=57343?(s+=4,o++):s+=3}else s+=3}return s};function kK(t){let e=typeof t=="string"?t.indexOf("#"):-1;return f2(e===-1?t:t.slice(0,e),TK)}function MK(t){return f2(t,m2)}var m_={flush:Vi.constants.Z_SYNC_FLUSH,finishFlush:Vi.constants.Z_SYNC_FLUSH},EK={flush:Vi.constants.BROTLI_OPERATION_FLUSH,finishFlush:Vi.constants.BROTLI_OPERATION_FLUSH},qK={flush:Vi.constants.ZSTD_e_flush,finishFlush:Vi.constants.ZSTD_e_flush},w2=C.isFunction(Vi.createBrotliDecompress),v2=C.isFunction(Vi.createZstdDecompress),C2="gzip, compress, deflate"+(w2?", br":""),_K=C2+(v2?", zstd":""),f_=typeof process<"u"&&process.nextTick?process.nextTick.bind(process):C.asap,{http:HK,https:WK}=v9,AA=/https:?/,w_=Symbol("axios.http.socketListener"),ad=Symbol("axios.http.currentReq");function RK(t){let e=this[ad];e&&!e.destroyed&&e.destroy(t)}var A2=Symbol("axios.http.installedTunnel"),IK=new Map,v_=new WeakMap,C_={22:21,24:5};function zK(t=process.versions&&process.versions.node){if(!t)return!1;let[e,n]=t.split(".").map(i=>Number(i));return!Number.isInteger(e)||!Number.isInteger(n)?!1:e>24?!0:C_[e]!=null&&n>=C_[e]}function A_(t,e=process.versions&&process.versions.node){if(!zK(e))return!1;let n=t&&t.options;return!!(n&&C.hasOwnProp(n,"proxyEnv")&&n.proxyEnv!=null)}function DK(t,e,n){return AA.test(t.protocol)?n||R_.globalAgent:e||W_.globalAgent}function GK(t,e){let n=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),i=e?v_.get(e)||v_.set(e,new Map).get(e):IK,a=i.get(n);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;if(a=new H_(r),e&&e.options){let s={...e.options},o=a.callback;a.callback=function(c,u){return o.call(this,c,{...s,...u})}}return a[A2]=!0,i.set(n,a),a}var b_=Ze.protocols.map(t=>t+":"),x_=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},y_=(t,[e,n])=>(t.on("end",n).on("error",n),e),NK=new pA;function UK(t,e,n){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.auth&&t.beforeRedirects.auth(t),t.beforeRedirects.sensitiveHeaders&&t.beforeRedirects.sensitiveHeaders(t,n),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,n)}function $K(t,e){t&&Object.keys(t).forEach(n=>{e.has(n.toLowerCase())&&delete t[n]})}function BK(t,e){if(!e)return!1;try{return new URL(e.url).origin===new URL(t.href).origin}catch{return!1}}function b2(t,e,n,i,a,r,s=!0){let o=e,l=DK(t,r,a);if(!o&&o!==!1&&s&&!A_(l)){let c=X8(n);c&&(xK(n)||(o=new URL(c)))}if(i&&t.headers)for(let c of Object.keys(t.headers))c.toLowerCase()==="proxy-authorization"&&delete t.headers[c];if(i&&t.agent&&t.agent[A2]&&(t.agent=void 0),o){let c=o instanceof URL,u=m=>c||C.hasOwnProp(o,m)?o[m]:void 0,p=u("username"),h=u("password"),g=C.hasOwnProp(o,"auth")?o.auth:void 0;if(p&&(g=(p||"")+":"+(h||"")),g){let m=typeof g=="object",w=m&&C.hasOwnProp(g,"username")?g.username:void 0,f=m&&C.hasOwnProp(g,"password")?g.password:void 0;if(!!(w||f))g=(w||"")+":"+(f||"");else if(m)throw new j("Invalid proxy authorization",j.ERR_BAD_OPTION,{proxy:o})}if(AA.test(t.protocol)){if(!(a instanceof H_)){let m=u("hostname")||u("host"),w=u("port"),f=u("protocol"),A=f?f.includes(":")?f:`${f}:`:"http:",b=m&&m.includes(":")&&!m.startsWith("[")?`[${m}]`:m,x=new URL(`${A}//${b}${w?":"+w:""}`),S={protocol:x.protocol,hostname:x.hostname.replace(/^\[|\]$/g,""),port:x.port,auth:g&&typeof g=="string"?g:void 0};x.protocol==="https:"&&(S.ALPNProtocols=["http/1.1"]);let T=GK(S,a);t.agent=T,t.agents&&(t.agents.https=T)}}else{if(g){let A=Buffer.from(g,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+A}let m=!1;for(let A of Object.keys(t.headers))if(A.toLowerCase()==="host"){m=!0;break}m||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let w=u("hostname")||u("host");t.hostname=w,t.host=w,t.port=u("port"),t.path=n;let f=u("protocol");f&&(t.protocol=f.includes(":")?f:`${f}:`)}}return t.beforeRedirects.proxy=function(u){b2(u,e,u.href,!0,a,r,s)},!!(o||e!==!1&&s&&A_(l))}var LK=typeof process<"u"&&C.kindOf(process)==="process",FK=t=>new Promise((e,n)=>{let i,a,r=(l,c)=>{a||(a=!0,i&&i(l,c))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),n(l)};t(s,o,l=>i=l).catch(o)}),VK=({address:t,family:e})=>{if(!C.isString(t))throw new j("address must be a string",j.ERR_BAD_OPTION_VALUE);return{address:t,family:e||(t.indexOf(".")<0?6:4)}},P_=(t,e)=>VK(C.isObject(t)?t:{address:t,family:e}),j_=new WeakMap,JK=t=>{let e=j_.get(t);if(e)return e;let n=oK(t,i=>C.isArray(i)?i:[i]);return e=(i,a,r)=>{n(i,a,(s,o,l)=>{if(s)return r(s);let c;try{c=C.isArray(o)?o.map(u=>P_(u)):[P_(o,l)]}catch(u){return r(u)}a.all?r(s,c):r(s,c[0].address,c[0].family)})},j_.set(t,e),e},KK={request(t,e){let n=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:i,headers:a}=t,r=NK.getSession(n,i),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:c}=I_.constants,u={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(h,g)=>{g.charAt(0)!==":"&&(u[g]=h)});let p=r.request(u);return p.once("response",h=>{let g=p;h=Object.assign({},h);let d=h[c];delete h[c],g.headers=h,g.statusCode=+d,e(g)}),p}},ZK=LK&&function(e){return FK(async function(i,a,r){let s=G=>C.getSafeProp(e,G),o=s("transitional")||gd,l=s("data"),c=s("lookup"),u=s("family"),p=s("httpVersion");p===void 0&&(p=1);let h=p,g=s("http2Options"),d=s("httpAgent"),m=s("httpsAgent"),w=s("proxy"),f=s("responseType"),A=s("responseEncoding"),b=s("socketPath"),x=s("method").toUpperCase(),S=s("maxRedirects"),T=s("maxBodyLength"),M=s("maxContentLength"),V=s("decompress"),N,_=!1,W,le;try{p=+p}catch{throw new j("Invalid protocol version: value is not a number",j.ERR_BAD_OPTION_VALUE,e)}if(Number.isNaN(p))throw new j(`Invalid protocol version: '${h}' is not a number`,j.ERR_BAD_OPTION_VALUE,e);if(p!==1&&p!==2)throw new j(`Unsupported protocol version '${p}'`,j.ERR_BAD_OPTION_VALUE,e);let Pe=p===2;c&&(c=JK(c));let Te=new C9.EventEmitter;function tn(G){try{Te.emit("abort",!G||G.type?new Vt(null,e,W):G)}catch{}}function O(){le&&(clearTimeout(le),le=null)}function z(){let G=s("timeout"),U=G?"timeout of "+G+"ms exceeded":"timeout exceeded",Ee=s("timeoutErrorMessage");return Ee&&(U=Ee),new j(U,o.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,W)}Te.once("abort",a);let Ce=()=>{O(),e.cancelToken&&e.cancelToken.unsubscribe(tn),e.signal&&e.signal.removeEventListener("abort",tn),Te.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(tn),e.signal&&(e.signal.aborted?tn():e.signal.addEventListener("abort",tn))),r((G,U)=>{if(N=!0,O(),U){_=!0,Ce();return}let{data:Ee}=G;if(Ee instanceof fi.Readable||Ee instanceof fi.Duplex){let On=fi.finished(Ee,()=>{On(),Ce()})}else Ce()});let cn=CA(s("baseURL"),s("url"),s("allowAbsoluteUrls"),e),Z=b?"http://localhost":Ze.hasBrowserEnv?Ze.origin:void 0,ge=new URL(cn,Z),Me=ge.protocol||b_[0];if(Me==="data:"){if(M>-1){let U=String(s("url")||cn||"");if(MK(U)>M)return a(new j("maxContentLength size of "+M+" exceeded",j.ERR_BAD_RESPONSE,e))}let G;if(x!=="GET")return Us(i,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=nK(s("url"),f==="blob",{Blob:e.env&&e.env.Blob})}catch(U){throw j.from(U,j.ERR_BAD_REQUEST,e)}return f==="text"?(G=G.toString(A),(!A||A==="utf8")&&(G=C.stripBOM(G))):f==="stream"&&(G=fi.Readable.from(G)),Us(i,a,{data:G,status:200,statusText:"OK",headers:new rn,config:e})}if(b_.indexOf(Me)===-1)return a(new j("Unsupported protocol "+Me,j.ERR_BAD_REQUEST,e));let Re=rn.from(e.headers).normalize();Re.set("User-Agent","axios/"+Fl,!1);let{onUploadProgress:Bn,onDownloadProgress:Hi}=e,Wi=e.maxRate,me,He;if(C.isSpecCompliantForm(l)){let G=Re.getContentType(/boundary=([-_\w\d]{10,70})/i);l=sK(l,U=>{Re.set(U)},{tag:`axios-${Fl}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(l)&&C.isFunction(l.getHeaders)&&l.getHeaders!==Object.prototype.getHeaders){if(s2(Re,l.getHeaders(),s("formDataHeaderPolicy")),!Re.hasContentLength())try{let G=await hA.promisify(l.getLength).call(l);Number.isFinite(G)&&G>=0&&Re.setContentLength(G)}catch{}}else if(C.isBlob(l)||C.isFile(l))l.size&&Re.setContentType(l.type||"application/octet-stream"),Re.setContentLength(l.size||0),l=fi.Readable.from(o2(l));else if(l&&!C.isStream(l)){if(!Buffer.isBuffer(l))if(C.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else if(C.isString(l))l=Buffer.from(l,"utf-8");else return a(new j("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",j.ERR_BAD_REQUEST,e));if(Re.setContentLength(l.length,!1),T>-1&&l.length>T)return a(new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,e))}let Ht=C.toFiniteNumber(Re.getContentLength());C.isArray(Wi)?(me=Wi[0],He=Wi[1]):me=He=Wi,l&&(Bn||me)&&(C.isStream(l)||(l=fi.Readable.from(l,{objectMode:!1})),l=fi.pipeline([l,new ud({maxRate:C.toFiniteNumber(me)})],C.noop),Bn&&l.on("progress",y_(l,cd(Ht,$s(pd(Bn,f_),!1,3)))));let Ri,Yt=s("auth");if(Yt){let G=C.getSafeProp(Yt,"username")||"",U=C.getSafeProp(Yt,"password")||"";Ri=G+":"+U}if(!Ri&&(ge.username||ge.password)){let G=x_(ge.username),U=x_(ge.password);Ri=G+":"+U}Ri&&Re.delete("authorization");let jn;try{jn=wA(ge.pathname+ge.search,s("params"),s("paramsSerializer")).replace(/^\?/,"")}catch(G){return a(j.from(G,j.ERR_BAD_REQUEST,e,null,null,{url:s("url"),exists:!0}))}Re.set("Accept-Encoding",C.hasOwnProp(o,"advertiseZstdAcceptEncoding")&&o.advertiseZstdAcceptEncoding===!0?_K:C2,!1),Pe&&c&&(g=Object.assign(Object.create(null),g,{lookup:c}));let Ae=Object.assign(Object.create(null),{path:jn,method:x,headers:fA(Re),agents:{http:d,https:m},auth:Ri,protocol:Me,family:u,beforeRedirect:UK,beforeRedirects:Object.create(null),http2Options:g,createConnection:void 0});!C.isUndefined(c)&&(Ae.lookup=c);let Sn=!1;if(b){if(typeof b!="string")return a(new j("socketPath must be a string",j.ERR_BAD_OPTION_VALUE,e));let G=s("allowedSocketPaths");if(G!=null){let U=Array.isArray(G)?G:[G],Ee=e_.resolve(b);if(!U.some(qe=>typeof qe=="string"&&e_.resolve(qe)===Ee))return a(new j(`socketPath "${b}" is not permitted by allowedSocketPaths`,j.ERR_BAD_OPTION_VALUE,e))}Ae.socketPath=b}else Ae.hostname=ge.hostname.startsWith("[")?ge.hostname.slice(1,-1):ge.hostname,Ae.port=ge.port,Sn=b2(Ae,w,Me+"//"+ge.hostname+(ge.port?":"+ge.port:"")+Ae.path,!1,m,d,!Pe);let gt,Ii=!1,pn=!1,Q=AA.test(Ae.protocol);if(Ae.agent==null&&(Ae.agent=Q?m:d),Pe){if(Sn)return a(new j("HTTP/2 requests with a proxy are not supported",j.ERR_NOT_SUPPORT,e));gt=KK}else{let G=s("transport");if(G)gt=G;else if(S===0)gt=Q?R_:W_,Ii=!0;else{pn=!0,Ae.sensitiveHeaders=[],S&&(Ae.maxRedirects=S);let U=s("beforeRedirect");if(U&&(Ae.beforeRedirects.config=U),Ri){let On=ge.origin,qe=Ri;Ae.beforeRedirects.auth=function(ei){try{new URL(ei.href).origin===On&&(ei.auth=qe)}catch{}}}let Ee=s("sensitiveHeaders");if(Ee!=null){if(!C.isArray(Ee))return a(new j("sensitiveHeaders must be an array of strings",j.ERR_BAD_OPTION_VALUE,e));let On=new Set;for(let qe of Ee){if(!C.isString(qe))return a(new j("sensitiveHeaders must be an array of strings",j.ERR_BAD_OPTION_VALUE,e));On.add(qe.toLowerCase())}On.size&&(Ae.sensitiveHeaders=Array.from(On),Ae.beforeRedirects.sensitiveHeaders=function(Yn,ei){BK(Yn,ei)||$K(Yn.headers,On)})}gt=Q?WK:HK}}T>-1?Ae.maxBodyLength=T:Ae.maxBodyLength=1/0,Ae.insecureHTTPParser=!!s("insecureHTTPParser"),W=gt.request(Ae,function(U){if(O(),W.destroyed)return;let Ee=[U],On=C.toFiniteNumber(U.headers["content-length"]);if(Hi||He){let Tn=new ud({maxRate:C.toFiniteNumber(He)});Hi&&Tn.on("progress",y_(Tn,cd(On,$s(pd(Hi,f_),!0,3)))),Ee.push(Tn)}let qe=U,Yn=U.req||W;if(V!==!1&&U.headers["content-encoding"])switch((x==="HEAD"||U.statusCode===204)&&delete U.headers["content-encoding"],(U.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Ee.push(Vi.createUnzip(m_)),delete U.headers["content-encoding"];break;case"deflate":Ee.push(new cA),Ee.push(Vi.createUnzip(m_)),delete U.headers["content-encoding"];break;case"br":w2&&(Ee.push(Vi.createBrotliDecompress(EK)),delete U.headers["content-encoding"]);break;case"zstd":v2&&(Ee.push(Vi.createZstdDecompress(qK)),delete U.headers["content-encoding"]);break}qe=Ee.length>1?fi.pipeline(Ee,C.noop):Ee[0];let ei={status:U.statusCode,statusText:U.statusMessage,headers:new rn(U.headers),config:e,request:Yn};if(f==="stream"){if(M>-1){let Tn=M,Mu=qe;async function*oo(){let fn=0;for await(let Yy of Mu){if(fn+=Yy.length,fn>Tn)throw new j("maxContentLength size of "+Tn+" exceeded",j.ERR_BAD_RESPONSE,e,Yn);yield Yy}}qe=fi.Readable.from(oo(),{objectMode:!1})}ei.data=qe,Us(i,a,ei)}else{let Tn=[],Mu=0;qe.on("data",function(fn){Tn.push(fn),Mu+=fn.length,M>-1&&Mu>M&&(_=!0,qe.destroy(),tn(new j("maxContentLength size of "+M+" exceeded",j.ERR_BAD_RESPONSE,e,Yn)))}),qe.on("aborted",function(){if(_)return;let fn=new j("stream has been aborted",j.ERR_BAD_RESPONSE,e,Yn,ei);qe.destroy(fn),a(fn)}),qe.on("error",function(fn){_||a(j.from(fn,null,e,Yn,ei))}),qe.on("end",function(){try{let fn=Tn.length===1?Tn[0]:Buffer.concat(Tn);f!=="arraybuffer"&&(fn=fn.toString(A),(!A||A==="utf8")&&(fn=C.stripBOM(fn))),ei.data=fn}catch(fn){return a(j.from(fn,null,e,ei.request,ei))}Us(i,a,ei)})}Te.once("abort",Tn=>{qe.destroyed||(qe.emit("error",Tn),qe.destroy())})}),Te.once("abort",G=>{W.close?W.close():W.destroy(G)}),W.on("error",function(U){a(j.from(U,null,e,W))});let Xe=new Set;if(W.on("socket",function(U){typeof U.setKeepAlive=="function"&&U.setKeepAlive(!0,1e3*60),U[w_]||(U.on("error",RK),U[w_]=!0),U[ad]=W,Xe.add(U)}),W.once("close",function(){O();for(let U of Xe)U[ad]===W&&(U[ad]=null);Xe.clear()}),s("timeout")){let G=parseInt(s("timeout"),10);if(Number.isNaN(G)){tn(new j("error trying to parse `config.timeout` to int",j.ERR_BAD_OPTION_VALUE,e,W));return}let U=function(){N||tn(z())};Ii&&G>0&&(le=setTimeout(U,G)),W.setTimeout(G,U)}else W.setTimeout(0);if(C.isStream(l)){let G=!1,U=!1;l.on("end",()=>{G=!0}),l.once("error",On=>{U=!0,W.destroy(On)}),l.on("close",()=>{!G&&!U&&tn(new Vt("Request stream has been aborted",e,W))});let Ee=l;if(T>-1&&!pn){let On=T,qe=0;Ee=fi.pipeline([l,new fi.Transform({transform(Yn,ei,Tn){if(qe+=Yn.length,qe>On)return Tn(new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,e,W));Tn(null,Yn)}})],C.noop),Ee.on("error",Yn=>{W.destroyed||W.destroy(Yn)})}Ee.pipe(W)}else l&&W.write(l),W.end()})},QK=Ze.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Ze.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Ze.origin),Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent)):()=>!0,XK=Ze.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 rn?{...t}:t,YK=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function jr(t,e){t=t||{},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,p,h,g){return C.isPlainObject(u)&&C.isPlainObject(p)?C.merge.call({caseless:g},u,p):C.isPlainObject(p)?C.merge({},p):C.isArray(p)?p.slice():p}function a(u,p,h,g){if(C.isUndefined(p)){if(!C.isUndefined(u))return i(void 0,u,h,g)}else return i(u,p,h,g)}function r(u,p){if(!C.isUndefined(p))return i(void 0,p)}function s(u,p){if(C.isUndefined(p)){if(!C.isUndefined(u))return i(void 0,u)}else return i(void 0,p)}function o(u){let p=C.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!C.isUndefined(p))if(C.isPlainObject(p)){if(C.hasOwnProp(p,u))return p[u]}else return;let h=C.hasOwnProp(t,"transitional")?t.transitional:void 0;if(C.isPlainObject(h)&&C.hasOwnProp(h,u))return h[u]}function l(u,p,h){if(C.hasOwnProp(e,h))return i(u,p);if(C.hasOwnProp(t,h))return i(void 0,u)}let c={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage: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:l,headers:(u,p,h)=>a(S_(u),S_(p),h,!0)};return C.forEach(YK({...t,...e}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;let h=C.hasOwnProp(c,p)?c[p]:a,g=C.hasOwnProp(t,p)?t[p]:void 0,d=C.hasOwnProp(e,p)?e[p]:void 0,m=h(g,d,p);C.isUndefined(m)&&h!==l||(n[p]=m)}),C.hasOwnProp(e,"validateStatus")&&C.isUndefined(e.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(C.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.validateStatus),n}var eZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function x2(t){let e=jr({},t),n=h=>C.hasOwnProp(e,h)?e[h]:void 0,i=n("data"),a=n("withXSRFToken"),r=n("xsrfHeaderName"),s=n("xsrfCookieName"),o=n("headers"),l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),p=n("url");if(e.headers=o=rn.from(o),e.url=wA(CA(c,p,u,e),n("params"),n("paramsSerializer")),l){let h=C.getSafeProp(l,"username")||"",g=C.getSafeProp(l,"password")||"";try{o.set("Authorization","Basic "+btoa(h+":"+(g?eZ(g):"")))}catch(d){throw j.from(d,j.ERR_BAD_OPTION_VALUE,t)}}if(C.isFormData(i)){let h=C.getSafeProp(i,"getHeaders");Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv||C.isReactNative(i)?o.setContentType(void 0):C.isFunction(h)&&s2(o,h.call(i),n("formDataHeaderPolicy"))}if(Ze.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&QK(e.url))){let g=r&&s&&XK.read(s);g&&o.set(r,g)}return e}var nZ=typeof XMLHttpRequest<"u",iZ=nZ&&function(t){return new Promise(function(n,i){let a=x2(t),r=a.data,s=rn.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:c}=a,u,p,h,g,d,m;function w(){g&&g(),d&&d(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function A(x){if(!f)return;if(f.status===0&&(td(r2(a.url))||td(Ze.origin))!=="file"&&!(f.responseURL&&f.responseURL.startsWith("file:"))){i(new j("Request aborted",j.ECONNABORTED,t,f)),w(),f=null;return}try{x?m&&m(x):d&&d()}catch(V){setTimeout(()=>{throw V})}if(!f)return;let S=rn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),M={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:t,request:f};Us(function(N){n(N),w()},function(N){i(N),w()},M),f=null}"onloadend"in f?f.onloadend=A:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(A)},f.onabort=function(){f&&(i(new j("Request aborted",j.ECONNABORTED,t,f)),w(),f=null)},f.onerror=function(S){let T=S&&S.message?S.message:"Network Error",M=new j(T,j.ERR_NETWORK,t,f);M.event=S||null,i(M),w(),f=null},f.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",T=a.transitional||gd;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),i(new j(S,T.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,t,f)),w(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(fA(s),function(S,T){f.setRequestHeader(T,S)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),c&&([h,d,m]=$s(c,!0),f.addEventListener("progress",h)),l&&f.upload&&([p,g]=$s(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(u=x=>{f&&(i(!x||x.type?new Vt(null,t,f):x),f.abort(),w(),f=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));let b=td(a.url);if(b&&!Ze.protocols.includes(b)){i(new j("Unsupported protocol "+b+":",j.ERR_BAD_REQUEST,t)),w();return}f.send(r||null)})},tZ=(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 c=l instanceof Error?l:this.reason;n.abort(c instanceof j?c:new Vt(c instanceof Error?c.message:c))}},r=e&&setTimeout(()=>{r=null,a(new j(`timeout of ${e}ms exceeded`,j.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=>{if(!i){if(l.aborted){a.call(l);return}l.addEventListener("abort",a,{once:!0})}});let{signal:o}=n;return o.unsubscribe=()=>C.asap(s),o},aZ=function*(t,e){let n=t.byteLength;if(n{let a=rZ(t,e),r=0,s,o=l=>{s||(s=!0,i&&i(l))};return new ReadableStream({async pull(l){try{let{done:c,value:u}=await a.next();if(c){o(),l.close();return}let p=u.byteLength;if(n){let h=r+=p;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw o(c),c}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},T_=64*1024,oZ={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ed}=C,lZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),k_=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},M_=(t,...e)=>{try{return!!t(...e)}catch{return!1}},uZ=t=>{let e=t.indexOf("://"),n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},cZ=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?ed(a):typeof fetch=="function",l=ed(r),c=ed(s);if(!o)return!1;let u=o&&ed(n),p=o&&(typeof i=="function"?(f=>A=>f.encode(A))(new i):async f=>new Uint8Array(await new r(f).arrayBuffer())),h=l&&u&&M_(()=>{let f=!1,A=new r(Ze.origin,{body:new n,method:"POST",get duplex(){return f=!0,"half"}}),b=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),f&&!b}),g=c&&u&&M_(()=>C.isReadableStream(new s("").body)),d={stream:g&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(A,b)=>{let x=A&&A[f];if(x)return x.call(A);throw new j(`Response type '${f}' is not supported`,j.ERR_NOT_SUPPORT,b)})});let m=async f=>{if(f==null)return 0;if(C.isBlob(f))return f.size;if(C.isSpecCompliantForm(f))return(await new r(Ze.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(C.isArrayBufferView(f)||C.isArrayBuffer(f))return f.byteLength;if(C.isURLSearchParams(f)&&(f=f+""),C.isString(f))return(await p(f)).byteLength},w=async(f,A)=>{let b=C.toFiniteNumber(f.getContentLength());return b??m(A)};return async f=>{let{url:A,method:b,data:x,signal:S,cancelToken:T,timeout:M,onDownloadProgress:V,onUploadProgress:N,responseType:_,headers:W,withCredentials:le="same-origin",fetchOptions:Pe,maxContentLength:Te,maxBodyLength:tn,maxRedirects:O}=x2(f),z=C.isNumber(Te)&&Te>-1,Ce=C.isNumber(tn)&&tn>-1,cn=me=>C.hasOwnProp(f,me)?f[me]:void 0,Z=a||fetch;_=_?(_+"").toLowerCase():"text";let ge=tZ([S,T&&T.toAbortSignal()],M),Me=null,Re=ge&&ge.unsubscribe&&(()=>{ge.unsubscribe()}),Bn,Hi=null,Wi=()=>new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,f,Me);try{let me,He=cn("auth");if(He){let Q=C.getSafeProp(He,"username")||"",Xe=C.getSafeProp(He,"password")||"";me={username:Q,password:Xe}}if(uZ(A)){let Q=new URL(A,Ze.origin);if(!me&&(Q.username||Q.password)){let Xe=k_(Q.username),G=k_(Q.password);me={username:Xe,password:G}}(Q.username||Q.password)&&(Q.username="",Q.password="",A=Q.href)}if(me&&(W.delete("authorization"),W.set("Authorization","Basic "+btoa(lZ((me.username||"")+":"+(me.password||""))))),z&&typeof A=="string"&&A.startsWith("data:")&&kK(A)>Te)throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me);if(Ce&&b!=="get"&&b!=="head"){let Q=await m(x);if(typeof Q=="number"&&isFinite(Q)&&(Bn=Q,Q>tn))throw Wi()}let Ht=Ce&&(C.isReadableStream(x)||C.isStream(x)),Ri=(Q,Xe,G)=>O_(Q,T_,U=>{if(Ce&&U>tn)throw Hi=Wi();Xe&&Xe(U)},G);if(h&&b!=="get"&&b!=="head"&&(N||Ht)){if(Bn=Bn??await w(W,x),Bn!==0||Ht){let Q=new r(A,{method:"POST",body:x,duplex:"half"}),Xe;if(C.isFormData(x)&&(Xe=Q.headers.get("content-type"))&&W.setContentType(Xe),Q.body){let[G,U]=N&&cd(Bn,$s(pd(N)))||[];x=Ri(Q.body,G,U)}}}else if(Ht&&!l&&u&&b!=="get"&&b!=="head")x=Ri(x);else if(Ht&&l&&!h&&b!=="get"&&b!=="head")throw new j("Stream request bodies are not supported by the current fetch implementation",j.ERR_NOT_SUPPORT,f,Me);C.isString(le)||(le=le?"include":"omit");let Yt=l&&"credentials"in r.prototype;if(C.isFormData(x)){let Q=W.getContentType();Q&&/^multipart\/form-data/i.test(Q)&&!/boundary=/i.test(Q)&&W.delete("content-type")}W.set("User-Agent","axios/"+Fl,!1);let jn=Pe==null?Pe:Object.assign(Object.create(null),Pe);jn&&(delete jn.body,delete jn.headers,delete jn.method,delete jn.signal,delete jn.duplex,delete jn.credentials);let Ae=Object.assign(Object.create(null),jn,{signal:ge,method:b.toUpperCase(),headers:fA(W.normalize()),body:x,duplex:"half",credentials:Yt?le:void 0});l&&(C.forEach(oZ,(Q,Xe)=>{Ae[Xe]===void 0&&(Ae[Xe]=Q)}),Ae.signal===void 0&&(Ae.signal=null),Ae.body===void 0&&(Ae.body=null)),O===0&&(Ae.redirect="manual",jn&&(jn.redirect="manual")),Me=l&&new r(A,Ae);let Sn=await(l?Z(Me,jn):Z(A,Ae)),gt=rn.from(Sn.headers);if(z){let Q=C.toFiniteNumber(gt.getContentLength());if(Q!=null&&Q>Te)throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me)}let Ii=g&&(_==="stream"||_==="response");if(g&&Sn.body&&(V||z||Ii&&Re)){let Q={};["status","statusText","headers"].forEach(qe=>{Q[qe]=Sn[qe]});let Xe=C.toFiniteNumber(gt.getContentLength()),[G,U]=V&&cd(Xe,$s(pd(V),!0))||[],Ee=0,On=qe=>{if(z&&(Ee=qe,Ee>Te))throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me);G&&G(qe)};Sn=new s(O_(Sn.body,T_,On,()=>{U&&U(),Re&&Re()}),Q)}_=_||"text";let pn=await d[C.findKey(d,_)||"text"](Sn,f);if(z&&!g&&!Ii){let Q;if(pn!=null&&(typeof pn.byteLength=="number"?Q=pn.byteLength:typeof pn.size=="number"?Q=pn.size:typeof pn=="string"&&(Q=typeof i=="function"?new i().encode(pn).byteLength:pn.length)),typeof Q=="number"&&Q>Te)throw new j("maxContentLength size of "+Te+" exceeded",j.ERR_BAD_RESPONSE,f,Me)}return!Ii&&Re&&Re(),await new Promise((Q,Xe)=>{Us(Q,Xe,{data:pn,headers:rn.from(Sn.headers),status:Sn.status,statusText:Sn.statusText,config:f,request:Me})})}catch(me){if(Re&&Re(),ge&&ge.aborted&&ge.reason instanceof j){let He=ge.reason;throw He.config=f,Me&&(He.request=Me),me!==He&&Object.defineProperty(He,"cause",{__proto__:null,value:me,writable:!0,enumerable:!1,configurable:!0}),He}if(Hi)throw Me&&!Hi.request&&(Hi.request=Me),Hi;if(me instanceof j)throw Me&&!me.request&&(me.request=Me),me;if(me&&me.name==="TypeError"&&/Load failed|fetch/i.test(me.message)){let He=new j("Network Error",j.ERR_NETWORK,f,Me,me&&me.response);throw Object.defineProperty(He,"cause",{__proto__:null,value:me.cause||me,writable:!0,enumerable:!1,configurable:!0}),He}throw j.from(me,me&&me.code,f,Me,me&&me.response)}}},pZ=new Map,y2=t=>{let e=t&&t.env||{},{fetch:n,Request:i,Response:a}=e,r=[i,a,n],s=r.length,o=s,l,c,u=pZ;for(;o--;)l=r[o],c=u.get(l),c===void 0&&u.set(l,c=o?new Map:cZ(e)),u=c;return c};y2();var bA={http:ZK,xhr:iZ,fetch:{get:y2}};C.forEach(bA,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var E_=t=>`- ${t}`,dZ=t=>C.isFunction(t)||t===null||t===!1;function hZ(t,e){t=C.isArray(t)?t:[t];let{length:n}=t,i,a,r={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),o=n?s.length>1?`since : +`+s.map(E_).join(` +`):" "+E_(s[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+o,j.ERR_NOT_SUPPORT)}return a}var P2={getAdapter:hZ,adapters:bA};function tA(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vt(null,t)}function aA(t){let e=C.toSafeFlatObject(t);return tA(e),e.headers=rn.from(C.getSafeProp(e,"headers")),e.data=YC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),P2.getAdapter(e.adapter||Zl.adapter,e)(e).then(function(a){tA(e),e.response=a;try{a.data=YC.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=rn.from(a.headers),a},function(a){if(!a2(a)&&(tA(e),a&&a.response)){e.response=a.response;try{a.response.data=YC.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=rn.from(a.response.headers)}return Promise.reject(a)})}var md={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{md[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});var q_={};md.transitional=function(e,n,i){function a(r,s){return"[Axios v"+Fl+"] Transitional option '"+r+"'"+s+(i?". "+i:"")}return(r,s,o)=>{if(e===!1)throw new j(a(s," has been removed"+(n?" in "+n:"")),j.ERR_DEPRECATED);return n&&!q_[s]&&(q_[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}};md.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function gZ(t,e,n){if(typeof t!="object"||t===null)throw new j("options must be an object",j.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 j("option "+r+" must be "+l,j.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new j("Unknown option "+r,j.ERR_BAD_OPTION)}}var rd={assertOptions:gZ,validators:md},Un=rd.validators,Ft=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ld,response:new ld}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error)try{let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=a.stack,s="";if(typeof r=="string"){let o=r.indexOf(` `);s=o===-1?"":r.slice(o+1)}if(!i.stack)i.stack=s;else if(s){let o=s.indexOf(` `),l=o===-1?-1:s.indexOf(` `,o+1),c=l===-1?"":s.slice(l+1);String(i.stack).endsWith(c)||(i.stack+=` -`+s)}}catch{}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ar(this.defaults,n);let{transitional:i,paramsSerializer:a,headers:r}=n;i!==void 0&&nd.assertOptions(i,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean),legacyInterceptorReqResOrdering:Un.transitional(Un.boolean),advertiseZstdAcceptEncoding:Un.transitional(Un.boolean),validateStatusUndefinedResolves:Un.transitional(Un.boolean)},!1),a!=null&&(C.isFunction(a)?n.paramsSerializer={serialize:a}:nd.assertOptions(a,{encode:Un.function,serialize:Un.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),nd.assertOptions(n,{baseUrl:Un.spelling("baseURL"),withXsrfToken:Un.spelling("withXSRFToken")},!0),n.method=(C.getSafeProp(n,"method")||C.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=r&&C.merge(r.common,r[n.method]);r&&C.forEach(Y_.concat("common"),d=>{delete r[d]}),n.headers=rn.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 w=n.transitional||cd;w&&w.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,p=0,h;if(!l){let d=[nA.bind(this),void 0];for(d.unshift(...o),d.push(...c),h=d.length,u=Promise.resolve(n);pnA.call(this,g)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=nA.call(this,g)}catch(d){u=Promise.reject(d)}for(p=0,h=c.length;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 Ft(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 rZ(t){return function(n){return t.apply(null,n)}}function sZ(t){return C.isObject(t)&&t.isAxiosError===!0}var id={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(id).forEach(([t,e])=>{id[e]===void 0&&(id[e]=t)});function A2(t){let e=new Lt(t),n=__(Lt.prototype.request,e);return C.extend(n,Lt.prototype,e,{allOwnKeys:!0}),C.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return A2(Ar(t,a))},n}var on=A2(Fl);on.Axios=Lt;on.CanceledError=Ft;on.CancelToken=uA;on.isCancel=X_;on.VERSION=Ul;on.toFormData=ud;on.AxiosError=j;on.Cancel=on.CanceledError;on.all=function(e){return Promise.all(e)};on.spread=rZ;on.isAxiosError=sZ;on.mergeConfig=Ar;on.AxiosHeaders=rn;on.formToJSON=t=>Q_(C.isHTMLForm(t)?new FormData(t):t);on.getAdapter=C2.getAdapter;on.HttpStatusCode=id;on.default=on;b2.exports=on});var wi=v((upe,y2)=>{"use strict";var CA=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts) +`+s)}}catch{}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=jr(this.defaults,n);let{transitional:i,paramsSerializer:a,headers:r}=n;i!==void 0&&rd.assertOptions(i,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean),legacyInterceptorReqResOrdering:Un.transitional(Un.boolean),advertiseZstdAcceptEncoding:Un.transitional(Un.boolean),validateStatusUndefinedResolves:Un.transitional(Un.boolean)},!1),a!=null&&(C.isFunction(a)?n.paramsSerializer={serialize:a}:rd.assertOptions(a,{encode:Un.function,serialize:Un.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rd.assertOptions(n,{baseUrl:Un.spelling("baseURL"),withXsrfToken:Un.spelling("withXSRFToken")},!0),n.method=(C.getSafeProp(n,"method")||C.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=r&&C.merge(r.common,r[n.method]);r&&C.forEach(t2.concat("common"),d=>{delete r[d]}),n.headers=rn.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 w=n.transitional||gd;w&&w.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,p=0,h;if(!l){let d=[aA.bind(this),void 0];for(d.unshift(...o),d.push(...c),h=d.length,u=Promise.resolve(n);paA.call(this,g)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=aA.call(this,g)}catch(d){u=Promise.reject(d)}for(p=0,h=c.length;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 Vt(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 mZ(t){return function(n){return t.apply(null,n)}}function fZ(t){return C.isObject(t)&&t.isAxiosError===!0}var sd={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(sd).forEach(([t,e])=>{sd[e]===void 0&&(sd[e]=t)});function j2(t){let e=new Ft(t),n=z_(Ft.prototype.request,e);return C.extend(n,Ft.prototype,e,{allOwnKeys:!0}),C.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return j2(jr(t,a))},n}var on=j2(Zl);on.Axios=Ft;on.CanceledError=Vt;on.CancelToken=dA;on.isCancel=a2;on.VERSION=Fl;on.toFormData=hd;on.AxiosError=j;on.Cancel=on.CanceledError;on.all=function(e){return Promise.all(e)};on.spread=mZ;on.isAxiosError=fZ;on.mergeConfig=jr;on.AxiosHeaders=rn;on.formToJSON=t=>i2(C.isHTMLForm(t)?new FormData(t):t);on.getAdapter=P2.getAdapter;on.HttpStatusCode=sd;on.default=on;S2.exports=on});var vi=v((Spe,T2)=>{"use strict";var xA=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)}};y2.exports=t=>{if(t.length>2)throw new CA(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var O2=v((cpe,S2)=>{var j2={};S2.exports=j2;var P2={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(P2).forEach(function(t){var e=P2[t],n=j2[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var k2=v((ppe,T2)=>{"use strict";T2.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 oZ=require("os"),ot=k2(),Zn=process.env,Ns=void 0;ot("no-color")||ot("no-colors")||ot("color=false")?Ns=!1:(ot("color")||ot("colors")||ot("color=true")||ot("color=always"))&&(Ns=!0);"FORCE_COLOR"in Zn&&(Ns=Zn.FORCE_COLOR.length===0||parseInt(Zn.FORCE_COLOR,10)!==0);function lZ(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function uZ(t){if(Ns===!1)return 0;if(ot("color=16m")||ot("color=full")||ot("color=truecolor"))return 3;if(ot("color=256"))return 2;if(t&&!t.isTTY&&Ns!==!0)return 0;var e=Ns?1:0;if(process.platform==="win32"){var n=oZ.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 AA(t){var e=uZ(t);return lZ(e)}M2.exports={supportsColor:AA,stdout:AA(process.stdout),stderr:AA(process.stderr)}});var _2=v((hpe,q2)=>{q2.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 W2=v((gpe,H2)=>{H2.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 c=Math.floor(Math.random()*l);return c}function s(l){var c=!1;return a.filter(function(u){c=u===l}),c}function o(l,c){var u="",p,h;c=c||{},c.up=typeof c.up<"u"?c.up:!0,c.mid=typeof c.mid<"u"?c.mid:!0,c.down=typeof c.down<"u"?c.down:!0,c.size=typeof c.size<"u"?c.size:"maxi",l=l.split("");for(h in l)if(!s(h)){switch(u=u+l[h],p={up:0,down:0,mid:0},c.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 g=["up","mid","down"];for(var d in g)for(var m=g[d],w=0;w<=p[m];w++)c[m]&&(u=u+i[m][r(i[m].length)])}return u}return o(e,n)}});var I2=v((mpe,R2)=>{R2.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 D2=v((fpe,z2)=>{z2.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var N2=v((wpe,G2)=>{G2.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 $2=v((vpe,U2)=>{U2.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 K2=v((Ape,J2)=>{var he={};J2.exports=he;he.themes={};var cZ=require("util"),br=he.styles=O2(),L2=Object.defineProperties,pZ=new RegExp(/[\r\n]+/g);he.supportsColor=E2().supportsColor;typeof he.enabled>"u"&&(he.enabled=he.supportsColor()!==!1);he.enable=function(){he.enabled=!0};he.disable=function(){he.enabled=!1};he.stripColors=he.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var Cpe=he.stylize=function(e,n){if(!he.enabled)return e+"";var i=br[n];return!i&&n in he?he[n](e):i.open+e+i.close},dZ=/[|\\{}()[\]^$+*?.]/g,hZ=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(dZ,"\\$&")};function F2(t){var e=function n(){return mZ.apply(n,arguments)};return e._styles=t,e.__proto__=gZ,e}var V2=(function(){var t={};return br.grey=br.gray,Object.keys(br).forEach(function(e){br[e].closeRe=new RegExp(hZ(br[e].close),"g"),t[e]={get:function(){return F2(this._styles.concat(e))}}}),t})(),gZ=L2(function(){},V2);function mZ(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:cZ.inspect(s)}).join(" ");if(!he.enabled||!e)return e;for(var n=e.indexOf(` -`)!=-1,i=this._styles,a=i.length;a--;){var r=br[i[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,n&&(e=e.replace(pZ,function(s){return r.close+s+r.open}))}return e}he.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){he[n]=function(i){if(typeof t[n]=="object"){var a=i;for(var r in t[n])a=he[t[n][r]](a);return a}return he[t[n]](i)}})(e)};function fZ(){var t={};return Object.keys(V2).forEach(function(e){t[e]={get:function(){return F2([e])}}}),t}var wZ=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};he.trap=_2();he.zalgo=W2();he.maps={};he.maps.america=I2()(he);he.maps.zebra=D2()(he);he.maps.rainbow=N2()(he);he.maps.random=$2()(he);for(B2 in he.maps)(function(t){he[t]=function(e){return wZ(he.maps[t],e)}})(B2);var B2;L2(he,fZ())});var bA=v((bpe,Z2)=>{var vZ=K2();Z2.exports=vZ});var Q2=v(xA=>{"use strict";xA.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};xA.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Y2=v(yA=>{"use strict";yA.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};yA.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var X2=v(PA=>{"use strict";PA.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};PA.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var eH=v(dd=>{"use strict";Object.defineProperty(dd,"cli",{value:Q2()});Object.defineProperty(dd,"npm",{value:Y2()});Object.defineProperty(dd,"syslog",{value:X2()})});var ln=v(Vl=>{"use strict";Object.defineProperty(Vl,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(Vl,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(Vl,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(Vl,"configs",{value:eH()})});var md=v((Ope,gd)=>{"use strict";var OA=bA(),{LEVEL:jA,MESSAGE:SA}=ln();OA.enabled=!0;var nH=/\s+/,hd=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]=nH.test(e[a])?e[a].split(nH):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 OA[t.allColors[e]](i);for(let a=0,r=t.allColors[e].length;anew hd(t);gd.exports.Colorizer=gd.exports.Format=hd});var tH=v((Tpe,iH)=>{"use strict";var{Colorizer:CZ}=md();iH.exports=t=>(CZ.addColors(t.colors||t),t)});var rH=v((kpe,aH)=>{"use strict";var AZ=wi();aH.exports=AZ(t=>(t.message=` ${t.message}`,t))});var lH=v((Mpe,oH)=>{"use strict";var bZ=wi(),{LEVEL:sH,MESSAGE:TA}=ln();oH.exports=bZ((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[sH]:t[sH]||t.level,message:t.message,[TA]:t[TA]||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[TA]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var MA=v((Epe,wd)=>{"use strict";var{configs:xZ,LEVEL:uH,MESSAGE:kA}=ln(),fd=class t{constructor(e={levels:xZ.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[uH]]}${e.message}`,e[kA]&&(e[kA]=`${this.paddings[e[uH]]}${e[kA]}`),e}};wd.exports=t=>new fd(t);wd.exports.Padder=wd.exports.Format=fd});var cH=v((qpe,EA)=>{"use strict";var{Colorizer:yZ}=md(),{Padder:PZ}=MA(),{configs:jZ,MESSAGE:SZ}=ln(),vd=class{constructor(e={}){e.levels||(e.levels=jZ.cli.levels),this.colorizer=new yZ(e),this.padder=new PZ(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[SZ]=`${e.level}:${e.message}`,e}};EA.exports=t=>new vd(t);EA.exports.Format=vd});var dH=v((_pe,qA)=>{"use strict";var OZ=wi();function pH(t){if(t.every(TZ))return e=>{let n=e;for(let i=0;i{let e=OZ(pH(t)),n=e();return n.Format=e.Format,n};qA.exports.cascade=pH});var Kl=v((RA,mH)=>{"use strict";var{hasOwnProperty:Jl}=Object.prototype,yr=WA();yr.configure=WA;yr.stringify=yr;yr.default=yr;RA.stringify=yr;RA.configure=WA;mH.exports=yr;var kZ=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Aa(t){return t.length<5e3&&!kZ.test(t)?`"${t}"`:JSON.stringify(t)}function _A(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 MZ=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function HA(t){return MZ.call(t)!==void 0&&t.length!==0}function hH(t,e,n){t.length= 1`)}return n===void 0?1/0:n}function xr(t){return t===1?"1 item":`${t} items`}function HZ(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function WZ(t){if(Jl.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 WA(t){t={...t};let e=WZ(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=EZ(t),i=_Z(t,"bigint"),a=qZ(t),r=typeof a=="function"?a:void 0,s=gH(t,"maximumDepth"),o=gH(t,"maximumBreadth");function l(g,d,m,w,f,A){let b=d[g];switch(typeof b=="object"&&b!==null&&typeof b.toJSON=="function"&&(b=b.toJSON(g)),b=w.call(d,g,b),typeof b){case"string":return Aa(b);case"object":{if(b===null)return"null";if(m.indexOf(b)!==-1)return n;let x="",S=",",T=A;if(Array.isArray(b)){if(b.length===0)return"[]";if(s{if(t.length>2)throw new xA(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var q2=v((Ope,E2)=>{var M2={};E2.exports=M2;var k2={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(k2).forEach(function(t){var e=k2[t],n=M2[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var H2=v((Tpe,_2)=>{"use strict";_2.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 wZ=require("os"),ct=H2(),Zn=process.env,Fs=void 0;ct("no-color")||ct("no-colors")||ct("color=false")?Fs=!1:(ct("color")||ct("colors")||ct("color=true")||ct("color=always"))&&(Fs=!0);"FORCE_COLOR"in Zn&&(Fs=Zn.FORCE_COLOR.length===0||parseInt(Zn.FORCE_COLOR,10)!==0);function vZ(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function CZ(t){if(Fs===!1)return 0;if(ct("color=16m")||ct("color=full")||ct("color=truecolor"))return 3;if(ct("color=256"))return 2;if(t&&!t.isTTY&&Fs!==!0)return 0;var e=Fs?1:0;if(process.platform==="win32"){var n=wZ.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 yA(t){var e=CZ(t);return vZ(e)}W2.exports={supportsColor:yA,stdout:yA(process.stdout),stderr:yA(process.stderr)}});var z2=v((Mpe,I2)=>{I2.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 G2=v((Epe,D2)=>{D2.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 c=Math.floor(Math.random()*l);return c}function s(l){var c=!1;return a.filter(function(u){c=u===l}),c}function o(l,c){var u="",p,h;c=c||{},c.up=typeof c.up<"u"?c.up:!0,c.mid=typeof c.mid<"u"?c.mid:!0,c.down=typeof c.down<"u"?c.down:!0,c.size=typeof c.size<"u"?c.size:"maxi",l=l.split("");for(h in l)if(!s(h)){switch(u=u+l[h],p={up:0,down:0,mid:0},c.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 g=["up","mid","down"];for(var d in g)for(var m=g[d],w=0;w<=p[m];w++)c[m]&&(u=u+i[m][r(i[m].length)])}return u}return o(e,n)}});var U2=v((qpe,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 B2=v((_pe,$2)=>{$2.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var F2=v((Hpe,L2)=>{L2.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 J2=v((Wpe,V2)=>{V2.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 eH=v((Ipe,Y2)=>{var he={};Y2.exports=he;he.themes={};var AZ=require("util"),Sr=he.styles=q2(),Z2=Object.defineProperties,bZ=new RegExp(/[\r\n]+/g);he.supportsColor=R2().supportsColor;typeof he.enabled>"u"&&(he.enabled=he.supportsColor()!==!1);he.enable=function(){he.enabled=!0};he.disable=function(){he.enabled=!1};he.stripColors=he.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var Rpe=he.stylize=function(e,n){if(!he.enabled)return e+"";var i=Sr[n];return!i&&n in he?he[n](e):i.open+e+i.close},xZ=/[|\\{}()[\]^$+*?.]/g,yZ=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(xZ,"\\$&")};function Q2(t){var e=function n(){return jZ.apply(n,arguments)};return e._styles=t,e.__proto__=PZ,e}var X2=(function(){var t={};return Sr.grey=Sr.gray,Object.keys(Sr).forEach(function(e){Sr[e].closeRe=new RegExp(yZ(Sr[e].close),"g"),t[e]={get:function(){return Q2(this._styles.concat(e))}}}),t})(),PZ=Z2(function(){},X2);function jZ(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:AZ.inspect(s)}).join(" ");if(!he.enabled||!e)return e;for(var n=e.indexOf(` +`)!=-1,i=this._styles,a=i.length;a--;){var r=Sr[i[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,n&&(e=e.replace(bZ,function(s){return r.close+s+r.open}))}return e}he.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){he[n]=function(i){if(typeof t[n]=="object"){var a=i;for(var r in t[n])a=he[t[n][r]](a);return a}return he[t[n]](i)}})(e)};function SZ(){var t={};return Object.keys(X2).forEach(function(e){t[e]={get:function(){return Q2([e])}}}),t}var OZ=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};he.trap=z2();he.zalgo=G2();he.maps={};he.maps.america=U2()(he);he.maps.zebra=B2()(he);he.maps.rainbow=F2()(he);he.maps.random=J2()(he);for(K2 in he.maps)(function(t){he[t]=function(e){return OZ(he.maps[t],e)}})(K2);var K2;Z2(he,SZ())});var PA=v((zpe,nH)=>{var TZ=eH();nH.exports=TZ});var iH=v(jA=>{"use strict";jA.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};jA.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var tH=v(SA=>{"use strict";SA.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};SA.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var aH=v(OA=>{"use strict";OA.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};OA.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var rH=v(fd=>{"use strict";Object.defineProperty(fd,"cli",{value:iH()});Object.defineProperty(fd,"npm",{value:tH()});Object.defineProperty(fd,"syslog",{value:aH()})});var ln=v(Ql=>{"use strict";Object.defineProperty(Ql,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(Ql,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(Ql,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(Ql,"configs",{value:rH()})});var Cd=v((Bpe,vd)=>{"use strict";var MA=PA(),{LEVEL:TA,MESSAGE:kA}=ln();MA.enabled=!0;var sH=/\s+/,wd=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]=sH.test(e[a])?e[a].split(sH):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 MA[t.allColors[e]](i);for(let a=0,r=t.allColors[e].length;anew wd(t);vd.exports.Colorizer=vd.exports.Format=wd});var lH=v((Lpe,oH)=>{"use strict";var{Colorizer:kZ}=Cd();oH.exports=t=>(kZ.addColors(t.colors||t),t)});var cH=v((Fpe,uH)=>{"use strict";var MZ=vi();uH.exports=MZ(t=>(t.message=` ${t.message}`,t))});var hH=v((Vpe,dH)=>{"use strict";var EZ=vi(),{LEVEL:pH,MESSAGE:EA}=ln();dH.exports=EZ((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[pH]:t[pH]||t.level,message:t.message,[EA]:t[EA]||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[EA]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var _A=v((Jpe,bd)=>{"use strict";var{configs:qZ,LEVEL:gH,MESSAGE:qA}=ln(),Ad=class t{constructor(e={levels:qZ.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[gH]]}${e.message}`,e[qA]&&(e[qA]=`${this.paddings[e[gH]]}${e[qA]}`),e}};bd.exports=t=>new Ad(t);bd.exports.Padder=bd.exports.Format=Ad});var mH=v((Kpe,HA)=>{"use strict";var{Colorizer:_Z}=Cd(),{Padder:HZ}=_A(),{configs:WZ,MESSAGE:RZ}=ln(),xd=class{constructor(e={}){e.levels||(e.levels=WZ.cli.levels),this.colorizer=new _Z(e),this.padder=new HZ(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[RZ]=`${e.level}:${e.message}`,e}};HA.exports=t=>new xd(t);HA.exports.Format=xd});var wH=v((Zpe,WA)=>{"use strict";var IZ=vi();function fH(t){if(t.every(zZ))return e=>{let n=e;for(let i=0;i{let e=IZ(fH(t)),n=e();return n.Format=e.Format,n};WA.exports.cascade=fH});var Yl=v((DA,AH)=>{"use strict";var{hasOwnProperty:Xl}=Object.prototype,Tr=zA();Tr.configure=zA;Tr.stringify=Tr;Tr.default=Tr;DA.stringify=Tr;DA.configure=zA;AH.exports=Tr;var DZ=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function xa(t){return t.length<5e3&&!DZ.test(t)?`"${t}"`:JSON.stringify(t)}function RA(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 GZ=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function IA(t){return GZ.call(t)!==void 0&&t.length!==0}function vH(t,e,n){t.length= 1`)}return n===void 0?1/0:n}function Or(t){return t===1?"1 item":`${t} items`}function BZ(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function LZ(t){if(Xl.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 zA(t){t={...t};let e=LZ(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=NZ(t),i=$Z(t,"bigint"),a=UZ(t),r=typeof a=="function"?a:void 0,s=CH(t,"maximumDepth"),o=CH(t,"maximumBreadth");function l(g,d,m,w,f,A){let b=d[g];switch(typeof b=="object"&&b!==null&&typeof b.toJSON=="function"&&(b=b.toJSON(g)),b=w.call(d,g,b),typeof b){case"string":return xa(b);case"object":{if(b===null)return"null";if(m.indexOf(b)!==-1)return n;let x="",S=",",T=A;if(Array.isArray(b)){if(b.length===0)return"[]";if(so){let tn=b.length-o-1;x+=`${S}"... ${xr(tn)} not stringified"`}return f!==""&&(x+=` +${A}`);let le=Math.min(b.length,o),Pe=0;for(;Peo){let tn=b.length-o-1;x+=`${S}"... ${Or(tn)} not stringified"`}return f!==""&&(x+=` ${T}`),m.pop(),`[${x}]`}let M=Object.keys(b),V=M.length;if(V===0)return"{}";if(so){let le=V-o;x+=`${_}"...":${N}"${xr(le)} not stringified"`,_=S}return f!==""&&_.length>1&&(x=` +${A}`,N=" ");let W=Math.min(V,o);a&&!IA(b)&&(M=RA(M,r)),m.push(b);for(let le=0;leo){let le=V-o;x+=`${_}"...":${N}"${Or(le)} not stringified"`,_=S}return f!==""&&_.length>1&&(x=` ${A}${x} -${T}`),m.pop(),`{${x}}`}case"number":return isFinite(b)?String(b):e?e(b):"null";case"boolean":return b===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(b);default:return e?e(b):void 0}}function c(g,d,m,w,f,A){switch(typeof d=="object"&&d!==null&&typeof d.toJSON=="function"&&(d=d.toJSON(g)),typeof d){case"string":return Aa(d);case"object":{if(d===null)return"null";if(m.indexOf(d)!==-1)return n;let b=A,x="",S=",";if(Array.isArray(d)){if(d.length===0)return"[]";if(so){let W=d.length-o-1;x+=`${S}"... ${xr(W)} not stringified"`}return f!==""&&(x+=` +${A}`);let V=Math.min(d.length,o),N=0;for(;No){let W=d.length-o-1;x+=`${S}"... ${Or(W)} not stringified"`}return f!==""&&(x+=` ${b}`),m.pop(),`[${x}]`}m.push(d);let T="";f!==""&&(A+=f,S=`, -${A}`,T=" ");let M="";for(let V of w){let N=c(V,d[V],m,w,f,A);N!==void 0&&(x+=`${M}${Aa(V)}:${T}${N}`,M=S)}return f!==""&&M.length>1&&(x=` +${A}`,T=" ");let M="";for(let V of w){let N=c(V,d[V],m,w,f,A);N!==void 0&&(x+=`${M}${xa(V)}:${T}${N}`,M=S)}return f!==""&&M.length>1&&(x=` ${A}${x} -${b}`),m.pop(),`{${x}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function u(g,d,m,w,f){switch(typeof d){case"string":return Aa(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(g),typeof d!="object")return u(g,d,m,w,f);if(d===null)return"null"}if(m.indexOf(d)!==-1)return n;let A=f;if(Array.isArray(d)){if(d.length===0)return"[]";if(so){let Te=d.length-o-1;N+=`${_}"... ${xr(Te)} not stringified"`}return N+=` +${f}`,W=Math.min(d.length,o),le=0;for(;leo){let Te=d.length-o-1;N+=`${_}"... ${Or(Te)} not stringified"`}return N+=` ${A}`,m.pop(),`[${N}]`}let b=Object.keys(d),x=b.length;if(x===0)return"{}";if(so){let N=x-o;T+=`${M}"...": "${xr(N)} not stringified"`,M=S}return M!==""&&(T=` +${f}`,T="",M="",V=Math.min(x,o);IA(d)&&(T+=vH(d,S,o),b=b.slice(d.length),V-=d.length,M=S),a&&(b=RA(b,r)),m.push(d);for(let N=0;No){let N=x-o;T+=`${M}"...": "${Or(N)} not stringified"`,M=S}return M!==""&&(T=` ${f}${T} -${A}`),m.pop(),`{${T}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function p(g,d,m){switch(typeof d){case"string":return Aa(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(g),typeof d!="object")return p(g,d,m);if(d===null)return"null"}if(m.indexOf(d)!==-1)return n;let w="",f=d.length!==void 0;if(f&&Array.isArray(d)){if(d.length===0)return"[]";if(so){let N=d.length-o-1;w+=`,"... ${xr(N)} not stringified"`}return m.pop(),`[${w}]`}let A=Object.keys(d),b=A.length;if(b===0)return"{}";if(so){let T=b-o;w+=`${x}"...":"${xr(T)} not stringified"`}return m.pop(),`{${w}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function h(g,d,m){if(arguments.length>1){let w="";if(typeof m=="number"?w=" ".repeat(Math.min(m,10)):typeof m=="string"&&(w=m.slice(0,10)),d!=null){if(typeof d=="function")return l("",{"":g},[],d,w,"");if(Array.isArray(d))return c("",g,[],HZ(d),w,"")}if(w.length!==0)return u("",g,[],w,"")}return p("",g,[])}return h}});var IA=v((Hpe,fH)=>{"use strict";var RZ=wi(),{MESSAGE:IZ}=ln(),zZ=Kl();function DZ(t,e){return typeof e=="bigint"?e.toString():e}fH.exports=RZ((t,e)=>{let n=zZ.configure(e);return t[IZ]=n(t,e.replacer||DZ,e.space),t})});var vH=v((Wpe,wH)=>{"use strict";var GZ=wi();wH.exports=GZ((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var AH=v((Rpe,CH)=>{"use strict";var NZ=wi(),{MESSAGE:UZ}=ln(),$Z=Kl();CH.exports=NZ(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[UZ]=$Z(e),t})});var xH=v((Ipe,bH)=>{"use strict";var BZ=wi();function LZ(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 FZ(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}bH.exports=BZ((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?LZ(t,i,n):e.fillWith?FZ(t,e.fillWith,n):t})});var PH=v((Zl,yH)=>{"use strict";var VZ=wi(),JZ=yC();yH.exports=VZ(t=>{let e=+new Date;return Zl.diff=e-(Zl.prevTime||e),Zl.prevTime=e,t.ms=`+${JZ(Zl.diff)}`,t})});var OH=v((zpe,SH)=>{"use strict";var KZ=require("util").inspect,ZZ=wi(),{LEVEL:QZ,MESSAGE:jH,SPLAT:YZ}=ln();SH.exports=ZZ((t,e={})=>{let n=Object.assign({},t);return delete n[QZ],delete n[jH],delete n[YZ],t[jH]=KZ(n,!1,e.depth||null,e.colorize),t})});var TH=v((Dpe,Ad)=>{"use strict";var{MESSAGE:XZ}=ln(),Cd=class{constructor(e){this.template=e}transform(e){return e[XZ]=this.template(e),e}};Ad.exports=t=>new Cd(t);Ad.exports.Printf=Ad.exports.Format=Cd});var EH=v((Gpe,MH)=>{"use strict";var e7=wi(),{MESSAGE:kH}=ln(),n7=Kl();MH.exports=e7(t=>{let e=n7(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[kH]=`${t.level}:${n} ${t.message} ${e}`:t[kH]=`${t.level}:${n} ${t.message}`,t})});var HH=v((Npe,_H)=>{"use strict";var i7=require("util"),{SPLAT:qH}=ln(),t7=/%[scdjifoO%]/g,a7=/%%/g,zA=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[qH]||e.splat||[],r=i.match(a7),s=r&&r.length||0,l=n.length-s-a.length,c=l<0?a.splice(l,-1*l):[],u=c.length;if(u)for(let p=0;p1?i.splice(0):i,s=r.length;if(s)for(let o=0;onew zA(t)});var RH=v((bd,WH)=>{(function(t,e){typeof bd=="object"&&typeof WH<"u"?e(bd):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(bd,(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(O,z){for(var Ce=[],cn=0,Z=O.length;cn-1?Z:null}};function u(O){for(var z=[],Ce=1;Ce3?0:(O-O%10!==10?1:0)*O%10]}},w=u({},m),f=function(O){return w=u(w,O)},A=function(O){return O.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(O,z){for(z===void 0&&(z=2),O=String(O);O.length0?"-":"+")+b(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)},Z:function(O){var z=O.getTimezoneOffset();return(z>0?"-":"+")+b(Math.floor(Math.abs(z)/60),2)+":"+b(Math.abs(z)%60,2)}},S=function(O){return+O-1},T=[null,n],M=[null,s],V=["isPm",s,function(O,z){var Ce=O.toLowerCase();return Ce===z.amPm[0]?0:Ce===z.amPm[1]?1:null}],N=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(O){var z=(O+"").match(/([+-]|\d\d)/gi);if(z){var Ce=+z[1]*60+parseInt(z[2],10);return z[0]==="+"?Ce:-Ce}return 0}],_={D:["day",n],DD:["day",i],Do:["day",n+s,function(O){return parseInt(O,10)}],M:["month",n,S],MM:["month",i,S],YY:["year",i,function(O){var z=new Date,Ce=+(""+z.getFullYear()).substr(0,2);return+(""+(+O>68?Ce-1:Ce)+O)}],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(O){return+O*100}],SS:["millisecond",i,function(O){return+O*10}],SSS:["millisecond",a],d:T,dd:T,ddd:M,dddd:M,MMM:["month",s,c("monthNamesShort")],MMMM:["month",s,c("monthNames")],a:V,A:V,ZZ:N,Z:N},W={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"},le=function(O){return u(W,O)},Pe=function(O,z,Ce){if(z===void 0&&(z=W.default),Ce===void 0&&(Ce={}),typeof O=="number"&&(O=new Date(O)),Object.prototype.toString.call(O)!=="[object Date]"||isNaN(O.getTime()))throw new Error("Invalid Date pass to format");z=W[z]||z;var cn=[];z=z.replace(o,function(ge,Me){return cn.push(Me),"@@@"});var Z=u(u({},w),Ce);return z=z.replace(e,function(ge){return x[ge](O,Z)}),z.replace(/@@@/g,function(){return cn.shift()})};function Te(O,z,Ce){if(Ce===void 0&&(Ce={}),typeof z!="string")throw new Error("Invalid format in fecha parse");if(z=W[z]||z,O.length>1e3)return null;var cn=new Date,Z={year:cn.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ge=[],Me=[],Re=z.replace(o,function(Wi,pn){return Me.push(A(pn)),"@@@"}),Bn={},qi={};Re=A(Re).replace(e,function(Wi){var pn=_[Wi],Q=pn[0],Ye=pn[1],G=pn[3];if(Bn[Q])throw new Error("Invalid format. "+Q+" specified twice in format");return Bn[Q]=!0,G&&(qi[G]=!0),ge.push(pn),"("+Ye+")"}),Object.keys(qi).forEach(function(Wi){if(!Bn[Wi])throw new Error("Invalid format. "+Wi+" is required in specified format")}),Re=Re.replace(/@@@/g,function(){return Me.shift()});var _i=O.match(new RegExp(Re,"i"));if(!_i)return null;for(var me=u(u({},w),Ce),He=1;He<_i.length;He++){var _t=ge[He-1],Hi=_t[0],Qt=_t[2],jn=Qt?Qt(_i[He],me):+_i[He];if(jn==null)return null;Z[Hi]=jn}Z.isPm===1&&Z.hour!=null&&+Z.hour!=12?Z.hour=+Z.hour+12:Z.isPm===0&&+Z.hour==12&&(Z.hour=0);var Ae;if(Z.timezoneOffset==null){Ae=new Date(Z.year,Z.month,Z.day,Z.hour,Z.minute,Z.second,Z.millisecond);for(var Sn=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],He=0,ht=Sn.length;He11||Z.month<0||Z.day>31||Z.day<1||Z.hour>23||Z.hour<0||Z.minute>59||Z.minute<0||Z.second>59||Z.second<0)return null;return Ae}var tn={format:Pe,parse:Te,defaultI18n:m,setGlobalDateI18n:f,setGlobalDateMasks:le};t.assign=u,t.default=tn,t.format=Pe,t.parse=Te,t.defaultI18n=m,t.setGlobalDateI18n=f,t.setGlobalDateMasks=le,Object.defineProperty(t,"__esModule",{value:!0})}))});var zH=v((Upe,IH)=>{"use strict";var r7=RH(),s7=wi();IH.exports=s7((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():r7.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var GH=v(($pe,DH)=>{"use strict";var DA=bA(),o7=wi(),{MESSAGE:GA}=ln();DH.exports=o7((t,e)=>(e.level!==!1&&(t.level=DA.strip(t.level)),e.message!==!1&&(t.message=DA.strip(String(t.message))),e.raw!==!1&&t[GA]&&(t[GA]=DA.strip(String(t[GA]))),t))});var UA=v(NA=>{"use strict";var l7=NA.format=wi();NA.levels=tH();function Hn(t,e){Object.defineProperty(l7,t,{get(){return e()},configurable:!0})}Hn("align",function(){return rH()});Hn("errors",function(){return lH()});Hn("cli",function(){return cH()});Hn("combine",function(){return dH()});Hn("colorize",function(){return md()});Hn("json",function(){return IA()});Hn("label",function(){return vH()});Hn("logstash",function(){return AH()});Hn("metadata",function(){return xH()});Hn("ms",function(){return PH()});Hn("padLevels",function(){return MA()});Hn("prettyPrint",function(){return OH()});Hn("printf",function(){return TH()});Hn("simple",function(){return EH()});Hn("splat",function(){return HH()});Hn("timestamp",function(){return zH()});Hn("uncolorize",function(){return GH()})});var $A=v(xd=>{"use strict";var{format:NH}=require("util");xd.warn={deprecated(t){return()=>{throw new Error(NH("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([NH("{ %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]=xd.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=xd.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var UH=v((Fpe,u7)=>{u7.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 BH=v((Vpe,$H)=>{$H.exports=require("util").deprecate});var BA=v((Jpe,LH)=>{LH.exports=require("stream")});var FA=v((Kpe,VH)=>{"use strict";function c7(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(LA,this,t)):process.nextTick(LA,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(yd,n):(n._writableState.errorEmitted=!0,process.nextTick(FH,n,r)):process.nextTick(FH,n,r):e?(process.nextTick(yd,n),e(r)):process.nextTick(yd,n)}),this)}function FH(t,e){LA(t,e),yd(t)}function yd(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function p7(){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 LA(t,e){t.emit("error",e)}function d7(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}VH.exports={destroy:c7,undestroy:p7,errorOrDestroy:d7}});var ba=v((Zpe,ZH)=>{"use strict";var KH={};function Vi(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,KH[t]=a}function JH(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 h7(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function g7(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function m7(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Vi("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Vi("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&h7(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(g7(t," argument"))a=`The ${t} ${i} ${JH(e,"type")}`;else{let r=m7(t,".")?"property":"argument";a=`The "${t}" ${r} ${i} ${JH(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Vi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Vi("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Vi("ERR_STREAM_PREMATURE_CLOSE","Premature close");Vi("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Vi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Vi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Vi("ERR_STREAM_WRITE_AFTER_END","write after end");Vi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Vi("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Vi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ZH.exports.codes=KH});var VA=v((Qpe,QH)=>{"use strict";var f7=ba().codes.ERR_INVALID_OPT_VALUE;function w7(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function v7(t,e,n,i){var a=w7(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=i?n:"highWaterMark";throw new f7(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}QH.exports={getHighWaterMark:v7}});var YH=v((Ype,JA)=>{typeof Object.create=="function"?JA.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:JA.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 Us=v((Xpe,ZA)=>{try{if(KA=require("util"),typeof KA.inherits!="function")throw"";ZA.exports=KA.inherits}catch{ZA.exports=YH()}var KA});var aW=v((ede,tW)=>{"use strict";function XH(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 eW(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 Pd.alloc(0);for(var i=Pd.allocUnsafe(n>>>0),a=this.head,r=0;a;)S7(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=Pd.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:j7,value:function(n,i){return QA(this,eW(eW({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var oW=v((YA,sW)=>{var jd=require("buffer"),jt=jd.Buffer;function rW(t,e){for(var n in t)e[n]=t[n]}jt.from&&jt.alloc&&jt.allocUnsafe&&jt.allocUnsafeSlow?sW.exports=jd:(rW(jd,YA),YA.Buffer=Pr);function Pr(t,e,n){return jt(t,e,n)}Pr.prototype=Object.create(jt.prototype);rW(jt,Pr);Pr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return jt(t,e,n)};Pr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=jt(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Pr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return jt(t)};Pr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return jd.SlowBuffer(t)}});var nb=v(uW=>{"use strict";var eb=oW().Buffer,lW=eb.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 O7(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 T7(t){var e=O7(t);if(typeof e!="string"&&(eb.isEncoding===lW||!lW(t)))throw new Error("Unknown encoding: "+t);return e||t}uW.StringDecoder=Ql;function Ql(t){this.encoding=T7(t);var e;switch(this.encoding){case"utf16le":this.text=H7,this.end=W7,e=4;break;case"utf8":this.fillLast=E7,e=4;break;case"base64":this.text=R7,this.end=I7,e=3;break;default:this.write=z7,this.end=D7;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=eb.allocUnsafe(e)}Ql.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 k7(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 M7(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 E7(t){var e=this.lastTotal-this.lastNeed,n=M7(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 q7(t,e){var n=k7(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 _7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function H7(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 W7(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 R7(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 I7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function z7(t){return t.toString(this.encoding)}function D7(t){return t&&t.length?this.write(t):""}});var Sd=v((ide,dW)=>{"use strict";var cW=ba().codes.ERR_STREAM_PREMATURE_CLOSE;function G7(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 Od;function xa(t,e,n){return e=$7(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $7(t){var e=B7(t,"string");return typeof e=="symbol"?e:String(e)}function B7(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 L7=Sd(),ya=Symbol("lastResolve"),jr=Symbol("lastReject"),Yl=Symbol("error"),Td=Symbol("ended"),Sr=Symbol("lastPromise"),ib=Symbol("handlePromise"),Or=Symbol("stream");function Pa(t,e){return{value:t,done:e}}function F7(t){var e=t[ya];if(e!==null){var n=t[Or].read();n!==null&&(t[Sr]=null,t[ya]=null,t[jr]=null,e(Pa(n,!1)))}}function V7(t){process.nextTick(F7,t)}function J7(t,e){return function(n,i){t.then(function(){if(e[Td]){n(Pa(void 0,!0));return}e[ib](n,i)},i)}}var K7=Object.getPrototypeOf(function(){}),Z7=Object.setPrototypeOf((Od={get stream(){return this[Or]},next:function(){var e=this,n=this[Yl];if(n!==null)return Promise.reject(n);if(this[Td])return Promise.resolve(Pa(void 0,!0));if(this[Or].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[Yl]?o(e[Yl]):s(Pa(void 0,!0))})});var i=this[Sr],a;if(i)a=new Promise(J7(i,this));else{var r=this[Or].read();if(r!==null)return Promise.resolve(Pa(r,!1));a=new Promise(this[ib])}return this[Sr]=a,a}},xa(Od,Symbol.asyncIterator,function(){return this}),xa(Od,"return",function(){var e=this;return new Promise(function(n,i){e[Or].destroy(null,function(a){if(a){i(a);return}n(Pa(void 0,!0))})})}),Od),K7),Q7=function(e){var n,i=Object.create(Z7,(n={},xa(n,Or,{value:e,writable:!0}),xa(n,ya,{value:null,writable:!0}),xa(n,jr,{value:null,writable:!0}),xa(n,Yl,{value:null,writable:!0}),xa(n,Td,{value:e._readableState.endEmitted,writable:!0}),xa(n,ib,{value:function(r,s){var o=i[Or].read();o?(i[Sr]=null,i[ya]=null,i[jr]=null,r(Pa(o,!1))):(i[ya]=r,i[jr]=s)},writable:!0}),n));return i[Sr]=null,L7(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=i[jr];r!==null&&(i[Sr]=null,i[ya]=null,i[jr]=null,r(a)),i[Yl]=a;return}var s=i[ya];s!==null&&(i[Sr]=null,i[ya]=null,i[jr]=null,s(Pa(void 0,!0))),i[Td]=!0}),e.on("readable",V7.bind(null,i)),i};hW.exports=Q7});var vW=v((ade,wW)=>{"use strict";function mW(t,e,n,i,a,r,s){try{var o=t[r](s),l=o.value}catch(c){n(c);return}o.done?e(l):Promise.resolve(l).then(i,a)}function Y7(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var r=t.apply(e,n);function s(l){mW(r,i,a,s,o,"next",l)}function o(l){mW(r,i,a,s,o,"throw",l)}s(void 0)})}}function fW(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 X7(t){for(var e=1;e{"use strict";TW.exports=Oe;var $s;Oe.ReadableState=xW;var rde=require("events").EventEmitter,bW=function(e,n){return e.listeners(n).length},eu=BA(),kd=require("buffer").Buffer,rQ=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function sQ(t){return kd.from(t)}function oQ(t){return kd.isBuffer(t)||t instanceof rQ}var tb=require("util"),ce;tb&&tb.debuglog?ce=tb.debuglog("stream"):ce=function(){};var lQ=aW(),cb=FA(),uQ=VA(),cQ=uQ.getHighWaterMark,Md=ba().codes,pQ=Md.ERR_INVALID_ARG_TYPE,dQ=Md.ERR_STREAM_PUSH_AFTER_EOF,hQ=Md.ERR_METHOD_NOT_IMPLEMENTED,gQ=Md.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Bs,ab,rb;Us()(Oe,eu);var Xl=cb.errorOrDestroy,sb=["error","close","destroy","pause","resume"];function mQ(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 xW(t,e,n){$s=$s||Tr(),t=t||{},typeof n!="boolean"&&(n=e instanceof $s),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=cQ(this,t,"readableHighWaterMark",n),this.buffer=new lQ,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&&(Bs||(Bs=nb().StringDecoder),this.decoder=new Bs(t.encoding),this.encoding=t.encoding)}function Oe(t){if($s=$s||Tr(),!(this instanceof Oe))return new Oe(t);var e=this instanceof $s;this._readableState=new xW(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),eu.call(this)}Object.defineProperty(Oe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Oe.prototype.destroy=cb.destroy;Oe.prototype._undestroy=cb.undestroy;Oe.prototype._destroy=function(t,e){e(t)};Oe.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=kd.from(t,e),e=""),i=!0),yW(this,t,e,!1,i)};Oe.prototype.unshift=function(t){return yW(this,t,null,!0,!1)};function yW(t,e,n,i,a){ce("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,vQ(t,r);else{var s;if(a||(s=fQ(r,e)),s)Xl(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==kd.prototype&&(e=sQ(e)),i)r.endEmitted?Xl(t,new gQ):ob(t,r,e,!0);else if(r.ended)Xl(t,new dQ);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!n?(e=r.decoder.write(e),r.objectMode||e.length!==0?ob(t,r,e,!1):ub(t,r)):ob(t,r,e,!1)}else i||(r.reading=!1,ub(t,r))}return!r.ended&&(r.length=CW?t=CW:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function AW(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=wQ(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Oe.prototype.read=function(t){ce("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 ce("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?lb(this):Ed(this),null;if(t=AW(t,e),t===0&&e.ended)return e.length===0&&lb(this),null;var i=e.needReadable;ce("need readable",i),(e.length===0||e.length-t0?a=SW(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&&lb(this)),a!==null&&this.emit("data",a),a};function vQ(t,e){if(ce("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?Ed(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,PW(t)))}}function Ed(t){var e=t._readableState;ce("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ce("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(PW,t))}function PW(t){var e=t._readableState;ce("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,pb(t)}function ub(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(CQ,t,e))}function CQ(t,e){for(;!e.reading&&!e.ended&&(e.length1&&OW(i.pipes,t)!==-1)&&!c&&(ce("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(w){ce("onerror",w),m(),t.removeListener("error",h),bW(t,"error")===0&&Xl(t,w)}mQ(t,"error",h);function g(){t.removeListener("finish",d),m()}t.once("close",g);function d(){ce("onfinish"),t.removeListener("close",g),m()}t.once("finish",d);function m(){ce("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(ce("pipe resume"),n.resume()),t};function AQ(t){return function(){var n=t._readableState;ce("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&bW(t,"data")&&(n.flowing=!0,pb(t))}}Oe.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,ce("on readable",i.length,i.reading),i.length?Ed(this):i.reading||process.nextTick(bQ,this)),n};Oe.prototype.addListener=Oe.prototype.on;Oe.prototype.removeListener=function(t,e){var n=eu.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(jW,this),n};Oe.prototype.removeAllListeners=function(t){var e=eu.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(jW,this),e};function jW(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 bQ(t){ce("readable nexttick read 0"),t.read(0)}Oe.prototype.resume=function(){var t=this._readableState;return t.flowing||(ce("resume"),t.flowing=!t.readableListening,xQ(this,t)),t.paused=!1,this};function xQ(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(yQ,t,e))}function yQ(t,e){ce("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),pb(t),e.flowing&&!e.reading&&t.read(0)}Oe.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pb(t){var e=t._readableState;for(ce("flow",e.flowing);e.flowing&&t.read()!==null;);}Oe.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(ce("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(ce("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 lb(t){var e=t._readableState;ce("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(PQ,e,t))}function PQ(t,e){if(ce("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"&&(Oe.from=function(t,e){return rb===void 0&&(rb=vW()),rb(Oe,t,e)});function OW(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};MW.exports=St;var kW=db(),gb=Hd();Us()(St,kW);for(hb=jQ(gb.prototype),qd=0;qd{"use strict";RW.exports=en;function qW(t){var e=this;this.next=null,this.entry=null,this.finish=function(){eY(e,t)}}var Ls;en.WritableState=iu;var TQ={deprecate:BH()},_W=BA(),Rd=require("buffer").Buffer,kQ=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function MQ(t){return Rd.from(t)}function EQ(t){return Rd.isBuffer(t)||t instanceof kQ}var fb=FA(),qQ=VA(),_Q=qQ.getHighWaterMark,ja=ba().codes,HQ=ja.ERR_INVALID_ARG_TYPE,WQ=ja.ERR_METHOD_NOT_IMPLEMENTED,RQ=ja.ERR_MULTIPLE_CALLBACK,IQ=ja.ERR_STREAM_CANNOT_PIPE,zQ=ja.ERR_STREAM_DESTROYED,DQ=ja.ERR_STREAM_NULL_VALUES,GQ=ja.ERR_STREAM_WRITE_AFTER_END,NQ=ja.ERR_UNKNOWN_ENCODING,Fs=fb.errorOrDestroy;Us()(en,_W);function UQ(){}function iu(t,e,n){Ls=Ls||Tr(),t=t||{},typeof n!="boolean"&&(n=e instanceof Ls),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=_Q(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){KQ(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 qW(this)}iu.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(iu.prototype,"buffer",{get:TQ.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Wd;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Wd=Function.prototype[Symbol.hasInstance],Object.defineProperty(en,Symbol.hasInstance,{value:function(e){return Wd.call(this,e)?!0:this!==en?!1:e&&e._writableState instanceof iu}})):Wd=function(e){return e instanceof this};function en(t){Ls=Ls||Tr();var e=this instanceof Ls;if(!e&&!Wd.call(en,this))return new en(t);this._writableState=new iu(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)),_W.call(this)}en.prototype.pipe=function(){Fs(this,new IQ)};function $Q(t,e){var n=new GQ;Fs(t,n),process.nextTick(e,n)}function BQ(t,e,n,i){var a;return n===null?a=new DQ:typeof n!="string"&&!e.objectMode&&(a=new HQ("chunk",["string","Buffer"],n)),a?(Fs(t,a),process.nextTick(i,a),!1):!0}en.prototype.write=function(t,e,n){var i=this._writableState,a=!1,r=!i.objectMode&&EQ(t);return r&&!Rd.isBuffer(t)&&(t=MQ(t)),typeof e=="function"&&(n=e,e=null),r?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=UQ),i.ending?$Q(this,n):(r||BQ(this,i,t,n))&&(i.pendingcb++,a=FQ(this,i,r,t,e,n)),a};en.prototype.cork=function(){this._writableState.corked++};en.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&HW(this,t))};en.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 NQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(en.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function LQ(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Rd.from(e,n)),e}Object.defineProperty(en.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function FQ(t,e,n,i,a,r){if(!n){var s=LQ(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 nY=require("util"),IW=Hd(),{LEVEL:zW}=ln(),tu=DW.exports=function(e={}){IW.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())})};nY.inherits(tu,IW);tu.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[zW]]){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)};tu.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[zW]])&&(this.handleExceptions||n.exception!==!0))};tu.prototype._nop=function(){}});var Cb=v((cde,NW)=>{"use strict";var iY=require("util"),{LEVEL:vb}=ln(),GW=wb(),au=NW.exports=function(e={}){if(GW.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))};iY.inherits(au,GW);au.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[vb]])&&this.transport.log(e[vb],e.message,e,this._nop),i(null)};au.prototype._writev=function(e,n){for(let i=0;i{"use strict";Ab.exports=wb();Ab.exports.LegacyTransportStream=Cb()});var BW=v((hde,$W)=>{"use strict";var tY=require("os"),{LEVEL:UW,MESSAGE:Js}=ln(),aY=Vs();$W.exports=class extends aY{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:tY.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[UW]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Js]}${this.eol}`):this._consoleError(e[Js]),n&&n();return}else if(this.consoleWarnLevels[e[UW]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Js]}${this.eol}`):this._consoleWarn(e[Js]),n&&n();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Js]}${this.eol}`):this._consoleLog(e[Js]),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 zd=v((Id,LW)=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.default=rY;function rY(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}LW.exports=Id.default});var VW=v((Dd,FW)=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};FW.exports=Dd.default});var ZW=v(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.fallback=JW;Sa.wrap=KW;var sY=Sa.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,oY=Sa.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,lY=Sa.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function JW(t){setTimeout(t,0)}function KW(t){return(e,...n)=>t(()=>e(...n))}var ru;sY?ru=queueMicrotask:oY?ru=setImmediate:lY?ru=process.nextTick:ru=JW;Sa.default=KW(ru)});var nR=v((Gd,eR)=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.default=gY;var uY=VW(),cY=XW(uY),pY=ZW(),dY=XW(pY),hY=kr();function XW(t){return t&&t.__esModule?t:{default:t}}function gY(t){return(0,hY.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return QW(i,n)}:(0,cY.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return QW(i,n);n(null,i)})}function QW(t,e){return t.then(n=>{YW(e,null,n)},n=>{YW(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function YW(t,e,n){try{t(e,n)}catch(i){(0,dY.default)(a=>{throw a},i)}}eR.exports=Gd.default});var kr=v(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.isAsyncIterable=Vt.isAsyncGenerator=Vt.isAsync=void 0;var mY=nR(),fY=wY(mY);function wY(t){return t&&t.__esModule?t:{default:t}}function iR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function vY(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function CY(t){return typeof t[Symbol.asyncIterator]=="function"}function AY(t){if(typeof t!="function")throw new Error("expected a function");return iR(t)?(0,fY.default)(t):t}Vt.default=AY;Vt.isAsync=iR;Vt.isAsyncGenerator=vY;Vt.isAsyncIterable=CY});var Ks=v((Nd,tR)=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=bY;function bY(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}tR.exports=Nd.default});var rR=v((Ud,aR)=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var xY=zd(),yY=bb(xY),PY=kr(),jY=bb(PY),SY=Ks(),OY=bb(SY);function bb(t){return t&&t.__esModule?t:{default:t}}Ud.default=(0,OY.default)((t,e,n)=>{var i=(0,yY.default)(e)?[]:{};t(e,(a,r,s)=>{(0,jY.default)(a)((o,...l)=>{l.length<2&&([l]=l),i[r]=l,s(o)})},a=>n(a,i))},3);aR.exports=Ud.default});var xb=v(($d,sR)=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.default=TY;function TY(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}sR.exports=$d.default});var lR=v((Bd,oR)=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};oR.exports=Bd.default});var pR=v((Ld,cR)=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.default=RY;var kY=zd(),MY=uR(kY),EY=lR(),qY=uR(EY);function uR(t){return t&&t.__esModule?t:{default:t}}function _Y(t){var e=-1,n=t.length;return function(){return++e{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.default=IY;function IY(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}dR.exports=Fd.default});var Jd=v((Vd,hR)=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var zY={};Vd.default=zY;hR.exports=Vd.default});var mR=v((Kd,gR)=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.default=UY;var DY=Jd(),GY=NY(DY);function NY(t){return t&&t.__esModule?t:{default:t}}function UY(t,e,n,i){let a=!1,r=!1,s=!1,o=0,l=0;function c(){o>=e||s||a||(s=!0,t.next().then(({value:h,done:g})=>{if(!(r||a)){if(s=!1,g){a=!0,o<=0&&i(null);return}o++,n(h,l,u),l++,c()}}).catch(p))}function u(h,g){if(o-=1,!r){if(h)return p(h);if(h===!1){a=!0,r=!0;return}if(g===GY.default||a&&o<=0)return a=!0,i(null);c()}}function p(h){r||(s=!1,a=!0,i(h))}c()}gR.exports=Kd.default});var CR=v((Zd,vR)=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var $Y=xb(),BY=su($Y),LY=pR(),FY=su(LY),VY=yb(),JY=su(VY),fR=kr(),KY=mR(),wR=su(KY),ZY=Jd(),QY=su(ZY);function su(t){return t&&t.__esModule?t:{default:t}}Zd.default=t=>(e,n,i)=>{if(i=(0,BY.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,fR.isAsyncGenerator)(e))return(0,wR.default)(e,t,n,i);if((0,fR.isAsyncIterable)(e))return(0,wR.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,FY.default)(e),r=!1,s=!1,o=0,l=!1;function c(p,h){if(!s)if(o-=1,p)r=!0,i(p);else if(p===!1)r=!0,s=!0;else{if(h===QY.default||r&&o<=0)return r=!0,i(null);l||u()}}function u(){for(l=!0;o{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var YY=CR(),XY=Pb(YY),eX=kr(),nX=Pb(eX),iX=Ks(),tX=Pb(iX);function Pb(t){return t&&t.__esModule?t:{default:t}}function aX(t,e,n,i){return(0,XY.default)(e)(t,(0,nX.default)(n),i)}Qd.default=(0,tX.default)(aX,4);AR.exports=Qd.default});var yR=v((Yd,xR)=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var rX=jb(),sX=bR(rX),oX=Ks(),lX=bR(oX);function bR(t){return t&&t.__esModule?t:{default:t}}function uX(t,e,n){return(0,sX.default)(t,1,e,n)}Yd.default=(0,lX.default)(uX,3);xR.exports=Yd.default});var SR=v((Xd,jR)=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.default=gX;var cX=rR(),pX=PR(cX),dX=yR(),hX=PR(dX);function PR(t){return t&&t.__esModule?t:{default:t}}function gX(t,e){return(0,pX.default)(hX.default,t,e)}jR.exports=Xd.default});var Sb=v((fde,TR)=>{"use strict";TR.exports=Jt;var eh=ba().codes,mX=eh.ERR_METHOD_NOT_IMPLEMENTED,fX=eh.ERR_MULTIPLE_CALLBACK,wX=eh.ERR_TRANSFORM_ALREADY_TRANSFORMING,vX=eh.ERR_TRANSFORM_WITH_LENGTH_0,nh=Tr();Us()(Jt,nh);function CX(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new fX);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";MR.exports=ou;var kR=Sb();Us()(ou,kR);function ou(t){if(!(this instanceof ou))return new ou(t);kR.call(this,t)}ou.prototype._transform=function(t,e,n){n(null,t)}});var RR=v((vde,WR)=>{"use strict";var Ob;function bX(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var HR=ba().codes,xX=HR.ERR_MISSING_ARGS,yX=HR.ERR_STREAM_DESTROYED;function qR(t){if(t)throw t}function PX(t){return t.setHeader&&typeof t.abort=="function"}function jX(t,e,n,i){i=bX(i);var a=!1;t.on("close",function(){a=!0}),Ob===void 0&&(Ob=Sd()),Ob(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,PX(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(s||new yX("pipe"))}}}function _R(t){t()}function SX(t,e){return t.pipe(e)}function OX(t){return!t.length||typeof t[t.length-1]!="function"?qR:t.pop()}function TX(){for(var t=arguments.length,e=new Array(t),n=0;n0;return jX(s,l,c,function(u){a||(a=u),u&&r.forEach(_R),!l&&(r.forEach(_R),i(a))})});return e.reduce(SX)}WR.exports=TX});var Mr=v((Ji,uu)=>{var lu=require("stream");process.env.READABLE_STREAM==="disable"&&lu?(uu.exports=lu.Readable,Object.assign(uu.exports,lu),uu.exports.Stream=lu):(Ji=uu.exports=db(),Ji.Stream=lu||Ji,Ji.Readable=Ji,Ji.Writable=Hd(),Ji.Duplex=Tr(),Ji.Transform=Sb(),Ji.PassThrough=ER(),Ji.finished=Sd(),Ji.pipeline=RR())});var Hb=v((Cde,zR)=>{var Zs=[],cu=[],Tb=function(){};function Mb(t){return~Zs.indexOf(t)?!1:(Zs.push(t),!0)}function Eb(t){Tb=t}function kX(t){for(var e=[],n=0;n{var qX=Hb(),_X=qX(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)});DR.exports=_X});var FR=v((bde,LR)=>{"use strict";var Ot={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]},UR=Object.create(null);for(let t in Ot)Object.hasOwn(Ot,t)&&(UR[Ot[t]]=t);var mn={to:{},get:{}};mn.get=function(t){let e=t.slice(0,3).toLowerCase(),n,i;switch(e){case"hsl":{n=mn.get.hsl(t),i="hsl";break}case"hwb":{n=mn.get.hwb(t),i="hwb";break}default:{n=mn.get.rgb(t),i="rgb";break}}return n?{model:i,value:n}:null};mn.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,c;if(o=t.match(n)){for(c=o[2],o=o[1],l=0;l<3;l++){let u=l*2;s[l]=Number.parseInt(o.slice(u,u+2),16)}c&&(s[3]=Number.parseInt(c,16)/255)}else if(o=t.match(e)){for(o=o[1],c=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);c&&(s[3]=Number.parseInt(c+c,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(Ot,o[1])?(s=Ot[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Oa(s[l],0,255);return s[3]=Oa(s[3],0,1),s};mn.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=Oa(Number.parseFloat(n[2]),0,100),s=Oa(Number.parseFloat(n[3]),0,100),o=Oa(Number.isNaN(i)?1:i,0,1);return[a,r,s,o]}return null};mn.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=Oa(Number.parseFloat(n[2]),0,100),s=Oa(Number.parseFloat(n[3]),0,100),o=Oa(Number.isNaN(i)?1:i,0,1);return[a,r,s,o]}return null};mn.to.hex=function(...t){return"#"+ih(t[0])+ih(t[1])+ih(t[2])+(t[3]<1?ih(Math.round(t[3]*255)):"")};mn.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]+")"};mn.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]+")"};mn.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]+")"};mn.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};mn.to.keyword=function(...t){return UR[t.slice(0,3)]};function Oa(t,e,n){return Math.min(Math.max(e,t),n)}function ih(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var $R={};for(let t of Object.keys(Ot))$R[Ot[t]]=t;var R={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"]}},Kt=(6/29)**3;function Qs(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function Ys(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(R)){if(!("channels"in R[t]))throw new Error("missing channels property: "+t);if(!("labels"in R[t]))throw new Error("missing channel labels property: "+t);if(R[t].labels.length!==R[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=R[t];delete R[t].channels,delete R[t].labels,Object.defineProperty(R[t],"channels",{value:e}),Object.defineProperty(R[t],"labels",{value:n})}R.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 c=(a+r)/2;return r===a?l=0:c<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,c*100]};R.rgb.hsv=function(t){let e,n,i,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,c=Math.max(s,o,l),u=c-Math.min(s,o,l),p=function(h){return(c-h)/6/u+1/2};if(u===0)a=0,r=0;else{switch(r=u/c,e=p(s),n=p(o),i=p(l),c){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,c*100]};R.rgb.hwb=function(t){let e=t[0],n=t[1],i=t[2],a=R.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]};R.rgb.oklab=function(t){let e=Ys(t[0]/255),n=Ys(t[1]/255),i=Ys(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,c=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,c*100]};R.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 HX(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}R.rgb.keyword=function(t){let e=$R[t];if(e)return e;let n=Number.POSITIVE_INFINITY,i;for(let a of Object.keys(Ot)){let r=Ot[a],s=HX(t,r);sKt?n**(1/3):7.787*n+16/116,i=i>Kt?i**(1/3):7.787*i+16/116,a=a>Kt?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]};R.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 c=0;c<3;c++)a=e+1/3*-(c-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[c]=r*255;return l};R.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]};R.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]}};R.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]};R.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),c,u,p;switch(s){default:case 6:case 0:{c=o,u=l,p=n;break}case 1:{c=l,u=o,p=n;break}case 2:{c=n,u=o,p=l;break}case 3:{c=n,u=l,p=o;break}case 4:{c=l,u=n,p=o;break}case 5:{c=o,u=n,p=l;break}}return[c*255,u*255,p*255]};R.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]};R.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=Qs(a),r=Qs(r),s=Qs(s),[a*255,r*255,s*255]};R.xyz.lab=function(t){let e=t[0],n=t[1],i=t[2];e/=95.047,n/=100,i/=108.883,e=e>Kt?e**(1/3):7.787*e+16/116,n=n>Kt?n**(1/3):7.787*n+16/116,i=i>Kt?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]};R.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,c=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,c*100]};R.oklab.oklch=function(t){return R.lab.lch(t)};R.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,c=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,c*100]};R.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=Qs(4.0767416621*a-3.3077115913*r+.2309699292*s),l=Qs(-1.2684380046*a+2.6097574011*r-.3413193965*s),c=Qs(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,c*255]};R.oklch.oklab=function(t){return R.lch.lab(t)};R.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,c=s**3;return r=o>Kt?o:(r-16/116)/7.787,a=l>Kt?l:(a-16/116)/7.787,s=c>Kt?c:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};R.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]};R.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]};R.rgb.ansi16=function(t,e=null){let[n,i,a]=t,r=e===null?R.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};R.hsv.ansi16=function(t){return R.rgb.ansi16(R.hsv.rgb(t),t[2])};R.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)};R.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]};R.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]};R.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};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};R.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};R.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};R.gray.hsl=function(t){return[0,0,t[0]]};R.gray.hsv=R.gray.hsl;R.gray.hwb=function(t){return[0,100,t[0]]};R.gray.cmyk=function(t){return[0,0,0,t[0]]};R.gray.lab=function(t){return[t[0],0,0]};R.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};R.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function WX(){let t={},e=Object.keys(R);for(let{length:n}=e,i=0;i0;){let i=n.pop(),a=Object.keys(R[i]);for(let{length:r}=a,s=0;s1&&(n=i),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function UX(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=xn[this.model].channels;let a=Array.prototype.slice.call(t,0,i);this.color=Ib(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 Wb))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Wb[r];let{labels:s}=xn[this.model],o=[];for(n=0;n(t%360+360)%360),saturationl:nn("hsl",1,hn(100)),lightness:nn("hsl",2,hn(100)),saturationv:nn("hsv",1,hn(100)),value:nn("hsv",2,hn(100)),chroma:nn("hcg",1,hn(100)),gray:nn("hcg",2,hn(100)),white:nn("hwb",1,hn(100)),wblack:nn("hwb",2,hn(100)),cyan:nn("cmyk",0,hn(100)),magenta:nn("cmyk",1,hn(100)),yellow:nn("cmyk",2,hn(100)),black:nn("cmyk",3,hn(100)),x:nn("xyz",0,hn(95.047)),y:nn("xyz",1,hn(100)),z:nn("xyz",2,hn(108.833)),l:nn("lab",0,hn(100)),a:nn("lab",1),b:nn("lab",2),keyword(t){return t!==void 0?new gn(t):xn[this.model].keyword(this.color)},hex(t){return t!==void 0?new gn(t):mn.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new gn(t);let e=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),mn.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 gn.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 gn.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(xn)){if(BR.includes(t))continue;let{channels:e}=xn[t];gn.prototype[t]=function(...n){return this.model===t?new gn(this):n.length>0?new gn(n,t):new gn([...LX(xn[this.model][t].raw(this.color)),this.valpha],t)},gn[t]=function(...n){let i=n[0];return typeof i=="number"&&(i=Ib(n,e)),new gn(i,t)}}function $X(t,e){return Number(t.toFixed(e))}function BX(t){return function(e){return $X(e,t)}}function nn(t,e,n){t=Array.isArray(t)?t:[t];for(let i of t)(Rb[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 hn(t){return function(e){return Math.max(0,Math.min(t,e))}}function LX(t){return Array.isArray(t)?t:[t]}function Ib(t,e){for(let n=0;n{"use strict";function lt(t,e){if(e)return new lt(t).style(e);if(!(this instanceof lt))return new lt(t);this.text=t}lt.prototype.prefix="\x1B[";lt.prototype.suffix="m";lt.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)]};lt.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)};lt.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};lt.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};lt.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};VR.exports=lt});var ZR=v((yde,KR)=>{var KX=FR(),ZX=JR();KR.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?ZX(i+":",KX(i)):i+":";return e[0]=a+" "+e[0],e}});var YR=v((Pde,QR)=>{"use strict";QR.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a{var QX=YR();XR.exports=function(e){return function(i){try{return QX(i,e())}catch{}return!1}}});var iI=v((Sde,nI)=>{var YX=eI();nI.exports=YX(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var aI=v((Ode,tI)=>{tI.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var sI=v((Tde,rI)=>{var XX=Hb(),eee=require("tty").isatty(1),th=XX(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:eee,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});th.modify(ZR());th.use(iI());th.set(aI());rI.exports=th});var pu=v((kde,zb)=>{process.env.NODE_ENV==="production"?zb.exports=GR():zb.exports=sI()});var lI=v((Mde,oI)=>{"use strict";var Db=require("fs"),{StringDecoder:nee}=require("string_decoder"),{Stream:iee}=Mr();function tee(){}oI.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new nee("utf8"),a=new iee,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")},Db.open(t.file,"a+","0644",(l,c)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function u(){if(a.destroyed){Db.close(c,tee);return}return Db.read(c,n,0,n.length,s,(p,h)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!h)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(u,1e3);let g=i.write(n.slice(0,h));e||a.emit("data",g),g=(r+g).split(/\n+/);let d=g.length-1,m=0;for(;mt.start)&&(e?e(null,g[m]):a.emit("line",g[m])),o++;return r=g[d],s+=h,u()})})()}),e?a.destroy:a}});var dI=v((qde,pI)=>{"use strict";var vi=require("fs"),yn=require("path"),uI=SR(),aee=require("zlib"),{MESSAGE:ree}=ln(),{Stream:see,PassThrough:cI}=Mr(),oee=Vs(),ut=pu()("winston:file"),lee=require("os"),uee=lI();pI.exports=class extends oee{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 cI,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?yn.basename(e.filename):"winston.log",this.dirname=e.dirname||yn.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=yn.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:lee.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[ree]}${this.eol}`,a=Buffer.byteLength(i);function r(){if(this._size+=a,this._pendingSize-=a,ut("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()})),ut("written",s,this._drain),this.finishIfEnding(),s}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=yn.join(this.dirname,this.filename),a="",r=[],s=0,o=vi.createReadStream(i,{encoding:"utf8"});o.on("error",h=>{if(o.readable&&o.destroy(),!!n)return h.code!=="ENOENT"?n(h):n(null,r)}),o.on("data",h=>{h=(a+h).split(/\n+/);let g=h.length-1,d=0;for(;d=e.start)&&l(h[d]),s++;a=h[g]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),n&&n(null,r)});function l(h,g){try{let d=JSON.parse(h);u(d)&&c(d)}catch(d){g||o.emit("error",d)}}function c(h){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(h=e.fields.reduce((g,d)=>(g[d]=h[d],g),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(h)}function u(h){if(!h||typeof h!="object")return;let g=new Date(h.timestamp);if(!(e.from&&ge.until||e.level&&e.level!==h.level))return!0}function p(h){return h=h||{},h.rows=h.rows||h.limit||10,h.start=h.start||0,h.until=h.until||new Date,typeof h.until!="object"&&(h.until=new Date(h.until)),h.from=h.from||h.until-1440*60*1e3,typeof h.from!="object"&&(h.from=new Date(h.from)),h.order=h.order||"desc",h}}stream(e={}){let n=yn.join(this.dirname,this.filename),i=new see,a={file:n,start:e.start};return i.destroy=uee(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);ut("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=yn.join(this.dirname,n);vi.stat(i,(a,r)=>{if(a&&a.code==="ENOENT")return ut("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return ut(`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=yn.join(this.dirname,this.filename);ut("create stream start",n,this.options);let i=vi.createWriteStream(n,this.options).on("error",a=>ut(a)).on("close",()=>ut("close",i.path,i.bytesWritten)).on("open",()=>{ut("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new cI,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return ut("create stream ok",n),i}_incFile(e){ut("_incFile",this.filename);let n=yn.extname(this._basename),i=yn.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(yn.join(this.dirname,`${i}${s}${n}`),yn.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)),uI(a,e)}_getFile(){let e=yn.extname(this._basename),n=yn.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 c=`${n}${o-1}${e}${r}`,u=yn.join(this.dirname,c);vi.exists(u,p=>{if(!p)return l(null);c=`${n}${o}${e}${r}`,vi.rename(u,yn.join(this.dirname,c),l)})}.bind(this,s));uI(a,()=>{vi.rename(yn.join(this.dirname,`${n}${e}${r}`),yn.join(this.dirname,`${n}1${e}${r}`),i)})}_compressFile(e,n,i){vi.access(e,vi.F_OK,a=>{if(a)return i();var r=aee.createGzip(),s=vi.createReadStream(e),o=vi.createWriteStream(n);o.on("finish",()=>{vi.unlink(e,i)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){vi.existsSync(e)||vi.mkdirSync(e,{recursive:!0})}}});var gI=v((Hde,hI)=>{"use strict";var cee=require("http"),pee=require("https"),{Stream:dee}=Mr(),hee=Vs(),{configure:gee}=Kl();hI.exports=class extends hee{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 dee;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,c=0;for(;cn.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?pee:cee).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=gee({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var Gb=v((Wde,mI)=>{"use strict";var Tt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Tt.writable=t=>Tt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Tt.readable=t=>Tt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Tt.duplex=t=>Tt.writable(t)&&Tt.readable(t);Tt.transform=t=>Tt.duplex(t)&&typeof t._transform=="function";mI.exports=Tt});var wI=v((Ide,fI)=>{"use strict";var mee=Gb(),{MESSAGE:fee}=ln(),wee=require("os"),vee=Vs();fI.exports=class extends vee{constructor(e={}){if(super(e),!e.stream||!mee(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:wee.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[fee]}${this.eol}`),n&&n()}}});var vI=v(du=>{"use strict";Object.defineProperty(du,"Console",{configurable:!0,enumerable:!0,get(){return BW()}});Object.defineProperty(du,"File",{configurable:!0,enumerable:!0,get(){return dI()}});Object.defineProperty(du,"Http",{configurable:!0,enumerable:!0,get(){return gI()}});Object.defineProperty(du,"Stream",{configurable:!0,enumerable:!0,get(){return wI()}})});var rh=v(hu=>{"use strict";var ah=UA(),{configs:Nb}=ln();hu.cli=ah.levels(Nb.cli);hu.npm=ah.levels(Nb.npm);hu.syslog=ah.levels(Nb.syslog);hu.addColors=ah.levels});var AI=v((sh,CI)=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var Cee=zd(),Aee=Er(Cee),bee=Jd(),xee=Er(bee),yee=jb(),Pee=Er(yee),jee=xb(),See=Er(jee),Oee=yb(),Tee=Er(Oee),kee=kr(),Mee=Er(kee),Eee=Ks(),qee=Er(Eee);function Er(t){return t&&t.__esModule?t:{default:t}}function _ee(t,e,n){n=(0,See.default)(n);var i=0,a=0,{length:r}=t,s=!1;r===0&&n(null);function o(l,c){l===!1&&(s=!0),s!==!0&&(l?n(l):(++a===r||c===xee.default)&&n(null))}for(;i{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.default=Ree;function Ree(t){return(e,n,i)=>t(e,i)}bI.exports=oh.default});var ch=v((uh,yI)=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var Iee=AI(),zee=lh(Iee),Dee=xI(),Gee=lh(Dee),Nee=kr(),Uee=lh(Nee),$ee=Ks(),Bee=lh($ee);function lh(t){return t&&t.__esModule?t:{default:t}}function Lee(t,e,n){return(0,zee.default)(t,(0,Gee.default)((0,Uee.default)(e)),n)}uh.default=(0,Bee.default)(Lee,3);yI.exports=uh.default});var jI=v((Gde,PI)=>{"use strict";var Fee=Object.prototype.toString;PI.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=Fee.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Ub=v((Nde,SI)=>{"use strict";var Vee=jI();SI.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=Vee(e),a}});var $b=v(mu=>{mu.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||mu.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};mu.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,c=null,u=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 h=r.indexOf(".Module");h>0&&(o=o.substr(h+1),r=r.substr(0,h))}l=null}s&&(l=r,c=s),s===""&&(c=null,o=null);var g={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:c,columnNumber:parseInt(a[4],10)||null,native:u};return e._createParsedCallSite(g)}}).filter(function(i){return!!i})};function gu(t){for(var e in t)this[e]=t[e]}var Jee=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],Kee=["topLevel","eval","native","constructor"];Jee.forEach(function(t){gu.prototype[t]=null,gu.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Kee.forEach(function(t){gu.prototype[t]=!1,gu.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});mu._createParsedCallSite=function(t){return new gu(t)}});var TI=v((Bde,OI)=>{"use strict";var{Writable:Zee}=Mr();OI.exports=class extends Zee{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 Lb=v((Fde,EI)=>{"use strict";var kI=require("os"),Qee=ch(),Bb=pu()("winston:exception"),Yee=Ub(),MI=$b(),Xee=TI();EI.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:kI.loadavg(),uptime:kI.uptime()}}getTrace(e){return(e?MI.parse(e):MI.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 Xee(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(){Bb("doExit",a),Bb("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!i||i.length===0)return process.nextTick(s);Qee(i,(o,l)=>{let c=Yee(l),u=o.transport||o;function p(h){return()=>{Bb(h),c()}}u._ending=!0,u.once("finish",p("finished")),u.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 _I=v((Jde,qI)=>{"use strict";var{Writable:ene}=Mr();qI.exports=class extends ene{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 Vb=v((Zde,RI)=>{"use strict";var HI=require("os"),nne=ch(),Fb=pu()("winston:rejection"),ine=Ub(),WI=$b(),tne=_I();RI.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:HI.loadavg(),uptime:HI.uptime()}}getTrace(e){return(e?WI.parse(e):WI.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 tne(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(){Fb("doExit",a),Fb("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!i||i.length===0)return process.nextTick(s);nne(i,(o,l)=>{let c=ine(l),u=o.transport||o;function p(h){return()=>{Fb(h),c()}}u._ending=!0,u.once("finish",p("finished")),u.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 zI=v((Qde,II)=>{"use strict";var Jb=class{constructor(e){let n=ph();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=Jb});var ph=v((Yde,UI)=>{"use strict";var{Stream:ane,Transform:rne}=Mr(),DI=ch(),{LEVEL:kt,SPLAT:GI}=ln(),NI=Gb(),sne=Lb(),one=Vb(),lne=Cb(),une=zI(),{warn:cne}=$A(),pne=rh(),dne=/%[scdjifoO%]/g,dh=class extends rne{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:c,formatters:u,padLevels:p,rewriters:h,stripColors:g,exceptionHandlers:d,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||IA()(),this.defaultMeta=i||null,this.levels=a||this.levels||pne.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new sne(this),this.rejections=new one(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(w=>this.add(w))),l||c||u||p||h||g)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(` -`));d&&this.exceptions.handle(d),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=fu(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((n,i)=>{let a=fu(this.levels,i.level);return a!==null&&a>n?a:n},e)}isLevelEnabled(e){let n=fu(this.levels,e);if(n===null)return!1;let i=fu(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(r=>{let s=fu(this.levels,r.level);return s===null&&(s=i),s>=n})!==-1}log(e,n,...i){if(arguments.length===1)return e[kt]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[kt]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[kt]: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(dne))){let s=Object.assign({},this.defaultMeta,a,{[kt]:e,[GI]: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,{[kt]:e,[GI]:i,level:e,message:n})),this}_transform(e,n,i){if(this.silent)return i();e[kt]||(e[kt]=e.level),!this.levels[e[kt]]&&this.levels[e[kt]]!==0&&console.error("[winston] Unknown logger level: %s",e[kt]),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();DI(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!NI(e)||e.log.length>2?new lne({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(!NI(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(){cne.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,(c,u)=>{if(c)return l(c);typeof o.formatResults=="function"&&(u=o.formatResults(u,e.format)),l(null,u)})}function s(o,l){r(o,(c,u)=>{l&&(u=c||u,u&&(i[o.name]=u),l()),l=null})}DI(this.transports.filter(o=>!!o.query),s,()=>n(null,i))}stream(e={}){let n=new ane,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 une(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 fu(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(dh.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});UI.exports=dh});var Kb=v((Xde,$I)=>{"use strict";var{LEVEL:hne}=ln(),gne=rh(),mne=ph(),fne=pu()("winston:create-logger");function wne(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}$I.exports=function(t={}){t.levels=t.levels||gne.npm.levels;class e extends mne{constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(fne('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[hne]=i,r._addDefaultMeta(o),r.write(o),this||n}return a.length===0?(r.log(i,""),r):r.log(i,...a)},e.prototype[wne(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var LI=v((nhe,BI)=>{"use strict";var vne=Kb();BI.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=vne(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 VI=v(Ge=>{"use strict";var FI=UA(),{warn:wu}=$A();Ge.version=UH().version;Ge.transports=vI();Ge.config=rh();Ge.addColors=FI.levels;Ge.format=FI.format;Ge.createLogger=Kb();Ge.Logger=ph();Ge.ExceptionHandler=Lb();Ge.RejectionHandler=Vb();Ge.Container=LI();Ge.Transport=Vs();Ge.loggers=new Ge.Container;var Mt=Ge.createLogger();Object.keys(Ge.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Ge[t]=(...e)=>Mt[t](...e));Object.defineProperty(Ge,"level",{get(){return Mt.level},set(t){Mt.level=t}});Object.defineProperty(Ge,"exceptions",{get(){return Mt.exceptions}});Object.defineProperty(Ge,"rejections",{get(){return Mt.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Ge,t,{get(){return Mt[t]},set(e){Mt[t]=e}})});Object.defineProperty(Ge,"default",{get(){return{exceptionHandlers:Mt.exceptionHandlers,rejectionHandlers:Mt.rejectionHandlers,transports:Mt.transports}}});wu.deprecated(Ge,"setLevels");wu.forFunctions(Ge,"useFormat",["cli"]);wu.forProperties(Ge,"useFormat",["padLevels","stripColors"]);wu.forFunctions(Ge,"deprecated",["addRewriter","addFilter","clone","extend"]);wu.forProperties(Ge,"deprecated",["emitErrs","levelLength"])});var QI=v((the,ZI)=>{var vu=require("path"),JI=require("fs"),KI=parseInt("0777",8);ZI.exports=Xs.mkdirp=Xs.mkdirP=Xs;function Xs(t,e,n,i){typeof e=="function"?(n=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||JI;a===void 0&&(a=KI),i||(i=null);var s=n||function(){};t=vu.resolve(t),r.mkdir(t,a,function(o){if(!o)return i=i||t,s(null,i);switch(o.code){case"ENOENT":if(vu.dirname(t)===t)return s(o);Xs(vu.dirname(t),e,function(l,c){l?s(l,c):Xs(t,e,s,c)});break;default:r.stat(t,function(l,c){l||!c.isDirectory()?s(o,i):s(null,i)});break}})}Xs.sync=function t(e,n,i){(!n||typeof n!="object")&&(n={mode:n});var a=n.mode,r=n.fs||JI;a===void 0&&(a=KI),i||(i=null),e=vu.resolve(e);try{r.mkdirSync(e,a),i=i||e}catch(o){switch(o.code){case"ENOENT":i=t(vu.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 Zb=v((ahe,YI)=>{function Cne(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function Ane(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function bne(t,e,n){this.name=this.constructor.name,this.message=`Source contains parsing errors. +${A}`),m.pop(),`{${T}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function p(g,d,m){switch(typeof d){case"string":return xa(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(g),typeof d!="object")return p(g,d,m);if(d===null)return"null"}if(m.indexOf(d)!==-1)return n;let w="",f=d.length!==void 0;if(f&&Array.isArray(d)){if(d.length===0)return"[]";if(so){let N=d.length-o-1;w+=`,"... ${Or(N)} not stringified"`}return m.pop(),`[${w}]`}let A=Object.keys(d),b=A.length;if(b===0)return"{}";if(so){let T=b-o;w+=`${x}"...":"${Or(T)} not stringified"`}return m.pop(),`{${w}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function h(g,d,m){if(arguments.length>1){let w="";if(typeof m=="number"?w=" ".repeat(Math.min(m,10)):typeof m=="string"&&(w=m.slice(0,10)),d!=null){if(typeof d=="function")return l("",{"":g},[],d,w,"");if(Array.isArray(d))return c("",g,[],BZ(d),w,"")}if(w.length!==0)return u("",g,[],w,"")}return p("",g,[])}return h}});var GA=v((Qpe,bH)=>{"use strict";var FZ=vi(),{MESSAGE:VZ}=ln(),JZ=Yl();function KZ(t,e){return typeof e=="bigint"?e.toString():e}bH.exports=FZ((t,e)=>{let n=JZ.configure(e);return t[VZ]=n(t,e.replacer||KZ,e.space),t})});var yH=v((Xpe,xH)=>{"use strict";var ZZ=vi();xH.exports=ZZ((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var jH=v((Ype,PH)=>{"use strict";var QZ=vi(),{MESSAGE:XZ}=ln(),YZ=Yl();PH.exports=QZ(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[XZ]=YZ(e),t})});var OH=v((ede,SH)=>{"use strict";var e7=vi();function n7(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 i7(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}SH.exports=e7((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?n7(t,i,n):e.fillWith?i7(t,e.fillWith,n):t})});var kH=v((eu,TH)=>{"use strict";var t7=vi(),a7=SC();TH.exports=t7(t=>{let e=+new Date;return eu.diff=e-(eu.prevTime||e),eu.prevTime=e,t.ms=`+${a7(eu.diff)}`,t})});var qH=v((nde,EH)=>{"use strict";var r7=require("util").inspect,s7=vi(),{LEVEL:o7,MESSAGE:MH,SPLAT:l7}=ln();EH.exports=s7((t,e={})=>{let n=Object.assign({},t);return delete n[o7],delete n[MH],delete n[l7],t[MH]=r7(n,!1,e.depth||null,e.colorize),t})});var _H=v((ide,Pd)=>{"use strict";var{MESSAGE:u7}=ln(),yd=class{constructor(e){this.template=e}transform(e){return e[u7]=this.template(e),e}};Pd.exports=t=>new yd(t);Pd.exports.Printf=Pd.exports.Format=yd});var RH=v((tde,WH)=>{"use strict";var c7=vi(),{MESSAGE:HH}=ln(),p7=Yl();WH.exports=c7(t=>{let e=p7(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[HH]=`${t.level}:${n} ${t.message} ${e}`:t[HH]=`${t.level}:${n} ${t.message}`,t})});var DH=v((ade,zH)=>{"use strict";var d7=require("util"),{SPLAT:IH}=ln(),h7=/%[scdjifoO%]/g,g7=/%%/g,NA=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[IH]||e.splat||[],r=i.match(g7),s=r&&r.length||0,l=n.length-s-a.length,c=l<0?a.splice(l,-1*l):[],u=c.length;if(u)for(let p=0;p1?i.splice(0):i,s=r.length;if(s)for(let o=0;onew NA(t)});var NH=v((jd,GH)=>{(function(t,e){typeof jd=="object"&&typeof GH<"u"?e(jd):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(jd,(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(O,z){for(var Ce=[],cn=0,Z=O.length;cn-1?Z:null}};function u(O){for(var z=[],Ce=1;Ce3?0:(O-O%10!==10?1:0)*O%10]}},w=u({},m),f=function(O){return w=u(w,O)},A=function(O){return O.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(O,z){for(z===void 0&&(z=2),O=String(O);O.length0?"-":"+")+b(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)},Z:function(O){var z=O.getTimezoneOffset();return(z>0?"-":"+")+b(Math.floor(Math.abs(z)/60),2)+":"+b(Math.abs(z)%60,2)}},S=function(O){return+O-1},T=[null,n],M=[null,s],V=["isPm",s,function(O,z){var Ce=O.toLowerCase();return Ce===z.amPm[0]?0:Ce===z.amPm[1]?1:null}],N=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(O){var z=(O+"").match(/([+-]|\d\d)/gi);if(z){var Ce=+z[1]*60+parseInt(z[2],10);return z[0]==="+"?Ce:-Ce}return 0}],_={D:["day",n],DD:["day",i],Do:["day",n+s,function(O){return parseInt(O,10)}],M:["month",n,S],MM:["month",i,S],YY:["year",i,function(O){var z=new Date,Ce=+(""+z.getFullYear()).substr(0,2);return+(""+(+O>68?Ce-1:Ce)+O)}],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(O){return+O*100}],SS:["millisecond",i,function(O){return+O*10}],SSS:["millisecond",a],d:T,dd:T,ddd:M,dddd:M,MMM:["month",s,c("monthNamesShort")],MMMM:["month",s,c("monthNames")],a:V,A:V,ZZ:N,Z:N},W={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"},le=function(O){return u(W,O)},Pe=function(O,z,Ce){if(z===void 0&&(z=W.default),Ce===void 0&&(Ce={}),typeof O=="number"&&(O=new Date(O)),Object.prototype.toString.call(O)!=="[object Date]"||isNaN(O.getTime()))throw new Error("Invalid Date pass to format");z=W[z]||z;var cn=[];z=z.replace(o,function(ge,Me){return cn.push(Me),"@@@"});var Z=u(u({},w),Ce);return z=z.replace(e,function(ge){return x[ge](O,Z)}),z.replace(/@@@/g,function(){return cn.shift()})};function Te(O,z,Ce){if(Ce===void 0&&(Ce={}),typeof z!="string")throw new Error("Invalid format in fecha parse");if(z=W[z]||z,O.length>1e3)return null;var cn=new Date,Z={year:cn.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ge=[],Me=[],Re=z.replace(o,function(Ii,pn){return Me.push(A(pn)),"@@@"}),Bn={},Hi={};Re=A(Re).replace(e,function(Ii){var pn=_[Ii],Q=pn[0],Xe=pn[1],G=pn[3];if(Bn[Q])throw new Error("Invalid format. "+Q+" specified twice in format");return Bn[Q]=!0,G&&(Hi[G]=!0),ge.push(pn),"("+Xe+")"}),Object.keys(Hi).forEach(function(Ii){if(!Bn[Ii])throw new Error("Invalid format. "+Ii+" is required in specified format")}),Re=Re.replace(/@@@/g,function(){return Me.shift()});var Wi=O.match(new RegExp(Re,"i"));if(!Wi)return null;for(var me=u(u({},w),Ce),He=1;He11||Z.month<0||Z.day>31||Z.day<1||Z.hour>23||Z.hour<0||Z.minute>59||Z.minute<0||Z.second>59||Z.second<0)return null;return Ae}var tn={format:Pe,parse:Te,defaultI18n:m,setGlobalDateI18n:f,setGlobalDateMasks:le};t.assign=u,t.default=tn,t.format=Pe,t.parse=Te,t.defaultI18n=m,t.setGlobalDateI18n=f,t.setGlobalDateMasks=le,Object.defineProperty(t,"__esModule",{value:!0})}))});var $H=v((rde,UH)=>{"use strict";var m7=NH(),f7=vi();UH.exports=f7((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():m7.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var LH=v((sde,BH)=>{"use strict";var UA=PA(),w7=vi(),{MESSAGE:$A}=ln();BH.exports=w7((t,e)=>(e.level!==!1&&(t.level=UA.strip(t.level)),e.message!==!1&&(t.message=UA.strip(String(t.message))),e.raw!==!1&&t[$A]&&(t[$A]=UA.strip(String(t[$A]))),t))});var LA=v(BA=>{"use strict";var v7=BA.format=vi();BA.levels=lH();function Hn(t,e){Object.defineProperty(v7,t,{get(){return e()},configurable:!0})}Hn("align",function(){return cH()});Hn("errors",function(){return hH()});Hn("cli",function(){return mH()});Hn("combine",function(){return wH()});Hn("colorize",function(){return Cd()});Hn("json",function(){return GA()});Hn("label",function(){return yH()});Hn("logstash",function(){return jH()});Hn("metadata",function(){return OH()});Hn("ms",function(){return kH()});Hn("padLevels",function(){return _A()});Hn("prettyPrint",function(){return qH()});Hn("printf",function(){return _H()});Hn("simple",function(){return RH()});Hn("splat",function(){return DH()});Hn("timestamp",function(){return $H()});Hn("uncolorize",function(){return LH()})});var FA=v(Sd=>{"use strict";var{format:FH}=require("util");Sd.warn={deprecated(t){return()=>{throw new Error(FH("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([FH("{ %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]=Sd.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=Sd.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var VH=v((ude,C7)=>{C7.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 KH=v((cde,JH)=>{JH.exports=require("util").deprecate});var VA=v((pde,ZH)=>{ZH.exports=require("stream")});var KA=v((dde,XH)=>{"use strict";function A7(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(JA,this,t)):process.nextTick(JA,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(Od,n):(n._writableState.errorEmitted=!0,process.nextTick(QH,n,r)):process.nextTick(QH,n,r):e?(process.nextTick(Od,n),e(r)):process.nextTick(Od,n)}),this)}function QH(t,e){JA(t,e),Od(t)}function Od(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function b7(){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 JA(t,e){t.emit("error",e)}function x7(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}XH.exports={destroy:A7,undestroy:b7,errorOrDestroy:x7}});var ya=v((hde,nW)=>{"use strict";var eW={};function Ki(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,eW[t]=a}function YH(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 y7(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function P7(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function j7(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Ki("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ki("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&y7(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(P7(t," argument"))a=`The ${t} ${i} ${YH(e,"type")}`;else{let r=j7(t,".")?"property":"argument";a=`The "${t}" ${r} ${i} ${YH(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Ki("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ki("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Ki("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ki("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Ki("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ki("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ki("ERR_STREAM_WRITE_AFTER_END","write after end");Ki("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ki("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Ki("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");nW.exports.codes=eW});var ZA=v((gde,iW)=>{"use strict";var S7=ya().codes.ERR_INVALID_OPT_VALUE;function O7(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function T7(t,e,n,i){var a=O7(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=i?n:"highWaterMark";throw new S7(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}iW.exports={getHighWaterMark:T7}});var tW=v((mde,QA)=>{typeof Object.create=="function"?QA.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:QA.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 Vs=v((fde,YA)=>{try{if(XA=require("util"),typeof XA.inherits!="function")throw"";YA.exports=XA.inherits}catch{YA.exports=tW()}var XA});var uW=v((wde,lW)=>{"use strict";function aW(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 rW(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 Td.alloc(0);for(var i=Td.allocUnsafe(n>>>0),a=this.head,r=0;a;)R7(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=Td.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:W7,value:function(n,i){return eb(this,rW(rW({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var dW=v((nb,pW)=>{var kd=require("buffer"),St=kd.Buffer;function cW(t,e){for(var n in t)e[n]=t[n]}St.from&&St.alloc&&St.allocUnsafe&&St.allocUnsafeSlow?pW.exports=kd:(cW(kd,nb),nb.Buffer=kr);function kr(t,e,n){return St(t,e,n)}kr.prototype=Object.create(St.prototype);cW(St,kr);kr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return St(t,e,n)};kr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=St(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};kr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return St(t)};kr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return kd.SlowBuffer(t)}});var ab=v(gW=>{"use strict";var tb=dW().Buffer,hW=tb.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 I7(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 z7(t){var e=I7(t);if(typeof e!="string"&&(tb.isEncoding===hW||!hW(t)))throw new Error("Unknown encoding: "+t);return e||t}gW.StringDecoder=nu;function nu(t){this.encoding=z7(t);var e;switch(this.encoding){case"utf16le":this.text=B7,this.end=L7,e=4;break;case"utf8":this.fillLast=N7,e=4;break;case"base64":this.text=F7,this.end=V7,e=3;break;default:this.write=J7,this.end=K7;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=tb.allocUnsafe(e)}nu.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 D7(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 G7(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 N7(t){var e=this.lastTotal-this.lastNeed,n=G7(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 U7(t,e){var n=D7(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 $7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function B7(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 L7(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 F7(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 V7(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function J7(t){return t.toString(this.encoding)}function K7(t){return t&&t.length?this.write(t):""}});var Md=v((Cde,wW)=>{"use strict";var mW=ya().codes.ERR_STREAM_PREMATURE_CLOSE;function Z7(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 Ed;function Pa(t,e,n){return e=Y7(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y7(t){var e=eQ(t,"string");return typeof e=="symbol"?e:String(e)}function eQ(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 nQ=Md(),ja=Symbol("lastResolve"),Mr=Symbol("lastReject"),iu=Symbol("error"),qd=Symbol("ended"),Er=Symbol("lastPromise"),rb=Symbol("handlePromise"),qr=Symbol("stream");function Sa(t,e){return{value:t,done:e}}function iQ(t){var e=t[ja];if(e!==null){var n=t[qr].read();n!==null&&(t[Er]=null,t[ja]=null,t[Mr]=null,e(Sa(n,!1)))}}function tQ(t){process.nextTick(iQ,t)}function aQ(t,e){return function(n,i){t.then(function(){if(e[qd]){n(Sa(void 0,!0));return}e[rb](n,i)},i)}}var rQ=Object.getPrototypeOf(function(){}),sQ=Object.setPrototypeOf((Ed={get stream(){return this[qr]},next:function(){var e=this,n=this[iu];if(n!==null)return Promise.reject(n);if(this[qd])return Promise.resolve(Sa(void 0,!0));if(this[qr].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[iu]?o(e[iu]):s(Sa(void 0,!0))})});var i=this[Er],a;if(i)a=new Promise(aQ(i,this));else{var r=this[qr].read();if(r!==null)return Promise.resolve(Sa(r,!1));a=new Promise(this[rb])}return this[Er]=a,a}},Pa(Ed,Symbol.asyncIterator,function(){return this}),Pa(Ed,"return",function(){var e=this;return new Promise(function(n,i){e[qr].destroy(null,function(a){if(a){i(a);return}n(Sa(void 0,!0))})})}),Ed),rQ),oQ=function(e){var n,i=Object.create(sQ,(n={},Pa(n,qr,{value:e,writable:!0}),Pa(n,ja,{value:null,writable:!0}),Pa(n,Mr,{value:null,writable:!0}),Pa(n,iu,{value:null,writable:!0}),Pa(n,qd,{value:e._readableState.endEmitted,writable:!0}),Pa(n,rb,{value:function(r,s){var o=i[qr].read();o?(i[Er]=null,i[ja]=null,i[Mr]=null,r(Sa(o,!1))):(i[ja]=r,i[Mr]=s)},writable:!0}),n));return i[Er]=null,nQ(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=i[Mr];r!==null&&(i[Er]=null,i[ja]=null,i[Mr]=null,r(a)),i[iu]=a;return}var s=i[ja];s!==null&&(i[Er]=null,i[ja]=null,i[Mr]=null,s(Sa(void 0,!0))),i[qd]=!0}),e.on("readable",tQ.bind(null,i)),i};vW.exports=oQ});var yW=v((bde,xW)=>{"use strict";function AW(t,e,n,i,a,r,s){try{var o=t[r](s),l=o.value}catch(c){n(c);return}o.done?e(l):Promise.resolve(l).then(i,a)}function lQ(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var r=t.apply(e,n);function s(l){AW(r,i,a,s,o,"next",l)}function o(l){AW(r,i,a,s,o,"throw",l)}s(void 0)})}}function bW(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 uQ(t){for(var e=1;e{"use strict";_W.exports=Oe;var Js;Oe.ReadableState=OW;var xde=require("events").EventEmitter,SW=function(e,n){return e.listeners(n).length},au=VA(),_d=require("buffer").Buffer,mQ=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function fQ(t){return _d.from(t)}function wQ(t){return _d.isBuffer(t)||t instanceof mQ}var sb=require("util"),ce;sb&&sb.debuglog?ce=sb.debuglog("stream"):ce=function(){};var vQ=uW(),hb=KA(),CQ=ZA(),AQ=CQ.getHighWaterMark,Hd=ya().codes,bQ=Hd.ERR_INVALID_ARG_TYPE,xQ=Hd.ERR_STREAM_PUSH_AFTER_EOF,yQ=Hd.ERR_METHOD_NOT_IMPLEMENTED,PQ=Hd.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ks,ob,lb;Vs()(Oe,au);var tu=hb.errorOrDestroy,ub=["error","close","destroy","pause","resume"];function jQ(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 OW(t,e,n){Js=Js||_r(),t=t||{},typeof n!="boolean"&&(n=e instanceof Js),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=AQ(this,t,"readableHighWaterMark",n),this.buffer=new vQ,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&&(Ks||(Ks=ab().StringDecoder),this.decoder=new Ks(t.encoding),this.encoding=t.encoding)}function Oe(t){if(Js=Js||_r(),!(this instanceof Oe))return new Oe(t);var e=this instanceof Js;this._readableState=new OW(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),au.call(this)}Object.defineProperty(Oe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Oe.prototype.destroy=hb.destroy;Oe.prototype._undestroy=hb.undestroy;Oe.prototype._destroy=function(t,e){e(t)};Oe.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=_d.from(t,e),e=""),i=!0),TW(this,t,e,!1,i)};Oe.prototype.unshift=function(t){return TW(this,t,null,!0,!1)};function TW(t,e,n,i,a){ce("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,TQ(t,r);else{var s;if(a||(s=SQ(r,e)),s)tu(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==_d.prototype&&(e=fQ(e)),i)r.endEmitted?tu(t,new PQ):cb(t,r,e,!0);else if(r.ended)tu(t,new xQ);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!n?(e=r.decoder.write(e),r.objectMode||e.length!==0?cb(t,r,e,!1):db(t,r)):cb(t,r,e,!1)}else i||(r.reading=!1,db(t,r))}return!r.ended&&(r.length=PW?t=PW:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function jW(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=OQ(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Oe.prototype.read=function(t){ce("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 ce("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?pb(this):Wd(this),null;if(t=jW(t,e),t===0&&e.ended)return e.length===0&&pb(this),null;var i=e.needReadable;ce("need readable",i),(e.length===0||e.length-t0?a=EW(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&&pb(this)),a!==null&&this.emit("data",a),a};function TQ(t,e){if(ce("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?Wd(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,kW(t)))}}function Wd(t){var e=t._readableState;ce("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ce("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(kW,t))}function kW(t){var e=t._readableState;ce("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,gb(t)}function db(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(kQ,t,e))}function kQ(t,e){for(;!e.reading&&!e.ended&&(e.length1&&qW(i.pipes,t)!==-1)&&!c&&(ce("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(w){ce("onerror",w),m(),t.removeListener("error",h),SW(t,"error")===0&&tu(t,w)}jQ(t,"error",h);function g(){t.removeListener("finish",d),m()}t.once("close",g);function d(){ce("onfinish"),t.removeListener("close",g),m()}t.once("finish",d);function m(){ce("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(ce("pipe resume"),n.resume()),t};function MQ(t){return function(){var n=t._readableState;ce("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&SW(t,"data")&&(n.flowing=!0,gb(t))}}Oe.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,ce("on readable",i.length,i.reading),i.length?Wd(this):i.reading||process.nextTick(EQ,this)),n};Oe.prototype.addListener=Oe.prototype.on;Oe.prototype.removeListener=function(t,e){var n=au.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(MW,this),n};Oe.prototype.removeAllListeners=function(t){var e=au.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(MW,this),e};function MW(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 EQ(t){ce("readable nexttick read 0"),t.read(0)}Oe.prototype.resume=function(){var t=this._readableState;return t.flowing||(ce("resume"),t.flowing=!t.readableListening,qQ(this,t)),t.paused=!1,this};function qQ(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(_Q,t,e))}function _Q(t,e){ce("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),gb(t),e.flowing&&!e.reading&&t.read(0)}Oe.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function gb(t){var e=t._readableState;for(ce("flow",e.flowing);e.flowing&&t.read()!==null;);}Oe.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(ce("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(ce("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 pb(t){var e=t._readableState;ce("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(HQ,e,t))}function HQ(t,e){if(ce("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"&&(Oe.from=function(t,e){return lb===void 0&&(lb=yW()),lb(Oe,t,e)});function qW(t,e){for(var n=0,i=t.length;n{"use strict";var WQ=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};WW.exports=Ot;var HW=mb(),wb=zd();Vs()(Ot,HW);for(fb=WQ(wb.prototype),Rd=0;Rd{"use strict";NW.exports=en;function IW(t){var e=this;this.next=null,this.entry=null,this.finish=function(){cX(e,t)}}var Zs;en.WritableState=su;var zQ={deprecate:KH()},zW=VA(),Gd=require("buffer").Buffer,DQ=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function GQ(t){return Gd.from(t)}function NQ(t){return Gd.isBuffer(t)||t instanceof DQ}var Cb=KA(),UQ=ZA(),$Q=UQ.getHighWaterMark,Oa=ya().codes,BQ=Oa.ERR_INVALID_ARG_TYPE,LQ=Oa.ERR_METHOD_NOT_IMPLEMENTED,FQ=Oa.ERR_MULTIPLE_CALLBACK,VQ=Oa.ERR_STREAM_CANNOT_PIPE,JQ=Oa.ERR_STREAM_DESTROYED,KQ=Oa.ERR_STREAM_NULL_VALUES,ZQ=Oa.ERR_STREAM_WRITE_AFTER_END,QQ=Oa.ERR_UNKNOWN_ENCODING,Qs=Cb.errorOrDestroy;Vs()(en,zW);function XQ(){}function su(t,e,n){Zs=Zs||_r(),t=t||{},typeof n!="boolean"&&(n=e instanceof Zs),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=$Q(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){rX(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 IW(this)}su.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(su.prototype,"buffer",{get:zQ.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Dd;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Dd=Function.prototype[Symbol.hasInstance],Object.defineProperty(en,Symbol.hasInstance,{value:function(e){return Dd.call(this,e)?!0:this!==en?!1:e&&e._writableState instanceof su}})):Dd=function(e){return e instanceof this};function en(t){Zs=Zs||_r();var e=this instanceof Zs;if(!e&&!Dd.call(en,this))return new en(t);this._writableState=new su(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)),zW.call(this)}en.prototype.pipe=function(){Qs(this,new VQ)};function YQ(t,e){var n=new ZQ;Qs(t,n),process.nextTick(e,n)}function eX(t,e,n,i){var a;return n===null?a=new KQ:typeof n!="string"&&!e.objectMode&&(a=new BQ("chunk",["string","Buffer"],n)),a?(Qs(t,a),process.nextTick(i,a),!1):!0}en.prototype.write=function(t,e,n){var i=this._writableState,a=!1,r=!i.objectMode&&NQ(t);return r&&!Gd.isBuffer(t)&&(t=GQ(t)),typeof e=="function"&&(n=e,e=null),r?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=XQ),i.ending?YQ(this,n):(r||eX(this,i,t,n))&&(i.pendingcb++,a=iX(this,i,r,t,e,n)),a};en.prototype.cork=function(){this._writableState.corked++};en.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&DW(this,t))};en.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 QQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(en.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function nX(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Gd.from(e,n)),e}Object.defineProperty(en.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function iX(t,e,n,i,a,r){if(!n){var s=nX(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 pX=require("util"),UW=zd(),{LEVEL:$W}=ln(),ou=BW.exports=function(e={}){UW.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())})};pX.inherits(ou,UW);ou.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[$W]]){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)};ou.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[$W]])&&(this.handleExceptions||n.exception!==!0))};ou.prototype._nop=function(){}});var xb=v((Ode,FW)=>{"use strict";var dX=require("util"),{LEVEL:bb}=ln(),LW=Ab(),lu=FW.exports=function(e={}){if(LW.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))};dX.inherits(lu,LW);lu.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[bb]])&&this.transport.log(e[bb],e.message,e,this._nop),i(null)};lu.prototype._writev=function(e,n){for(let i=0;i{"use strict";yb.exports=Ab();yb.exports.LegacyTransportStream=xb()});var KW=v((Mde,JW)=>{"use strict";var hX=require("os"),{LEVEL:VW,MESSAGE:Ys}=ln(),gX=Xs();JW.exports=class extends gX{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:hX.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[VW]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ys]}${this.eol}`):this._consoleError(e[Ys]),n&&n();return}else if(this.consoleWarnLevels[e[VW]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ys]}${this.eol}`):this._consoleWarn(e[Ys]),n&&n();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Ys]}${this.eol}`):this._consoleLog(e[Ys]),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 Ud=v((Nd,ZW)=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=mX;function mX(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}ZW.exports=Nd.default});var XW=v(($d,QW)=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};QW.exports=$d.default});var nR=v(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.fallback=YW;Ta.wrap=eR;var fX=Ta.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,wX=Ta.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,vX=Ta.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function YW(t){setTimeout(t,0)}function eR(t){return(e,...n)=>t(()=>e(...n))}var uu;fX?uu=queueMicrotask:wX?uu=setImmediate:vX?uu=process.nextTick:uu=YW;Ta.default=eR(uu)});var sR=v((Bd,rR)=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.default=PX;var CX=XW(),AX=aR(CX),bX=nR(),xX=aR(bX),yX=Hr();function aR(t){return t&&t.__esModule?t:{default:t}}function PX(t){return(0,yX.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return iR(i,n)}:(0,AX.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return iR(i,n);n(null,i)})}function iR(t,e){return t.then(n=>{tR(e,null,n)},n=>{tR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function tR(t,e,n){try{t(e,n)}catch(i){(0,xX.default)(a=>{throw a},i)}}rR.exports=Bd.default});var Hr=v(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.isAsyncIterable=Jt.isAsyncGenerator=Jt.isAsync=void 0;var jX=sR(),SX=OX(jX);function OX(t){return t&&t.__esModule?t:{default:t}}function oR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function TX(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function kX(t){return typeof t[Symbol.asyncIterator]=="function"}function MX(t){if(typeof t!="function")throw new Error("expected a function");return oR(t)?(0,SX.default)(t):t}Jt.default=MX;Jt.isAsync=oR;Jt.isAsyncGenerator=TX;Jt.isAsyncIterable=kX});var eo=v((Ld,lR)=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.default=EX;function EX(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}lR.exports=Ld.default});var cR=v((Fd,uR)=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var qX=Ud(),_X=Pb(qX),HX=Hr(),WX=Pb(HX),RX=eo(),IX=Pb(RX);function Pb(t){return t&&t.__esModule?t:{default:t}}Fd.default=(0,IX.default)((t,e,n)=>{var i=(0,_X.default)(e)?[]:{};t(e,(a,r,s)=>{(0,WX.default)(a)((o,...l)=>{l.length<2&&([l]=l),i[r]=l,s(o)})},a=>n(a,i))},3);uR.exports=Fd.default});var jb=v((Vd,pR)=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.default=zX;function zX(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}pR.exports=Vd.default});var hR=v((Jd,dR)=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};dR.exports=Jd.default});var fR=v((Kd,mR)=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.default=FX;var DX=Ud(),GX=gR(DX),NX=hR(),UX=gR(NX);function gR(t){return t&&t.__esModule?t:{default:t}}function $X(t){var e=-1,n=t.length;return function(){return++e{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.default=VX;function VX(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}wR.exports=Zd.default});var Xd=v((Qd,vR)=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var JX={};Qd.default=JX;vR.exports=Qd.default});var AR=v((Yd,CR)=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.default=XX;var KX=Xd(),ZX=QX(KX);function QX(t){return t&&t.__esModule?t:{default:t}}function XX(t,e,n,i){let a=!1,r=!1,s=!1,o=0,l=0;function c(){o>=e||s||a||(s=!0,t.next().then(({value:h,done:g})=>{if(!(r||a)){if(s=!1,g){a=!0,o<=0&&i(null);return}o++,n(h,l,u),l++,c()}}).catch(p))}function u(h,g){if(o-=1,!r){if(h)return p(h);if(h===!1){a=!0,r=!0;return}if(g===ZX.default||a&&o<=0)return a=!0,i(null);c()}}function p(h){r||(s=!1,a=!0,i(h))}c()}CR.exports=Yd.default});var PR=v((eh,yR)=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var YX=jb(),eY=cu(YX),nY=fR(),iY=cu(nY),tY=Sb(),aY=cu(tY),bR=Hr(),rY=AR(),xR=cu(rY),sY=Xd(),oY=cu(sY);function cu(t){return t&&t.__esModule?t:{default:t}}eh.default=t=>(e,n,i)=>{if(i=(0,eY.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,bR.isAsyncGenerator)(e))return(0,xR.default)(e,t,n,i);if((0,bR.isAsyncIterable)(e))return(0,xR.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,iY.default)(e),r=!1,s=!1,o=0,l=!1;function c(p,h){if(!s)if(o-=1,p)r=!0,i(p);else if(p===!1)r=!0,s=!0;else{if(h===oY.default||r&&o<=0)return r=!0,i(null);l||u()}}function u(){for(l=!0;o{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var lY=PR(),uY=Ob(lY),cY=Hr(),pY=Ob(cY),dY=eo(),hY=Ob(dY);function Ob(t){return t&&t.__esModule?t:{default:t}}function gY(t,e,n,i){return(0,uY.default)(e)(t,(0,pY.default)(n),i)}nh.default=(0,hY.default)(gY,4);jR.exports=nh.default});var TR=v((ih,OR)=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var mY=Tb(),fY=SR(mY),wY=eo(),vY=SR(wY);function SR(t){return t&&t.__esModule?t:{default:t}}function CY(t,e,n){return(0,fY.default)(t,1,e,n)}ih.default=(0,vY.default)(CY,3);OR.exports=ih.default});var ER=v((th,MR)=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.default=PY;var AY=cR(),bY=kR(AY),xY=TR(),yY=kR(xY);function kR(t){return t&&t.__esModule?t:{default:t}}function PY(t,e){return(0,bY.default)(yY.default,t,e)}MR.exports=th.default});var kb=v((_de,_R)=>{"use strict";_R.exports=Kt;var ah=ya().codes,jY=ah.ERR_METHOD_NOT_IMPLEMENTED,SY=ah.ERR_MULTIPLE_CALLBACK,OY=ah.ERR_TRANSFORM_ALREADY_TRANSFORMING,TY=ah.ERR_TRANSFORM_WITH_LENGTH_0,rh=_r();Vs()(Kt,rh);function kY(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new SY);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";WR.exports=pu;var HR=kb();Vs()(pu,HR);function pu(t){if(!(this instanceof pu))return new pu(t);HR.call(this,t)}pu.prototype._transform=function(t,e,n){n(null,t)}});var NR=v((Wde,GR)=>{"use strict";var Mb;function EY(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var DR=ya().codes,qY=DR.ERR_MISSING_ARGS,_Y=DR.ERR_STREAM_DESTROYED;function IR(t){if(t)throw t}function HY(t){return t.setHeader&&typeof t.abort=="function"}function WY(t,e,n,i){i=EY(i);var a=!1;t.on("close",function(){a=!0}),Mb===void 0&&(Mb=Md()),Mb(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,HY(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(s||new _Y("pipe"))}}}function zR(t){t()}function RY(t,e){return t.pipe(e)}function IY(t){return!t.length||typeof t[t.length-1]!="function"?IR:t.pop()}function zY(){for(var t=arguments.length,e=new Array(t),n=0;n0;return WY(s,l,c,function(u){a||(a=u),u&&r.forEach(zR),!l&&(r.forEach(zR),i(a))})});return e.reduce(RY)}GR.exports=zY});var Wr=v((Zi,hu)=>{var du=require("stream");process.env.READABLE_STREAM==="disable"&&du?(hu.exports=du.Readable,Object.assign(hu.exports,du),hu.exports.Stream=du):(Zi=hu.exports=mb(),Zi.Stream=du||Zi,Zi.Readable=Zi,Zi.Writable=zd(),Zi.Duplex=_r(),Zi.Transform=kb(),Zi.PassThrough=RR(),Zi.finished=Md(),Zi.pipeline=NR())});var Ib=v((Rde,$R)=>{var no=[],gu=[],Eb=function(){};function _b(t){return~no.indexOf(t)?!1:(no.push(t),!0)}function Hb(t){Eb=t}function DY(t){for(var e=[],n=0;n{var UY=Ib(),$Y=UY(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)});BR.exports=$Y});var QR=v((zde,ZR)=>{"use strict";var Tt={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]},VR=Object.create(null);for(let t in Tt)Object.hasOwn(Tt,t)&&(VR[Tt[t]]=t);var mn={to:{},get:{}};mn.get=function(t){let e=t.slice(0,3).toLowerCase(),n,i;switch(e){case"hsl":{n=mn.get.hsl(t),i="hsl";break}case"hwb":{n=mn.get.hwb(t),i="hwb";break}default:{n=mn.get.rgb(t),i="rgb";break}}return n?{model:i,value:n}:null};mn.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,c;if(o=t.match(n)){for(c=o[2],o=o[1],l=0;l<3;l++){let u=l*2;s[l]=Number.parseInt(o.slice(u,u+2),16)}c&&(s[3]=Number.parseInt(c,16)/255)}else if(o=t.match(e)){for(o=o[1],c=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);c&&(s[3]=Number.parseInt(c+c,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(Tt,o[1])?(s=Tt[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=ka(s[l],0,255);return s[3]=ka(s[3],0,1),s};mn.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=ka(Number.parseFloat(n[2]),0,100),s=ka(Number.parseFloat(n[3]),0,100),o=ka(Number.isNaN(i)?1:i,0,1);return[a,r,s,o]}return null};mn.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=ka(Number.parseFloat(n[2]),0,100),s=ka(Number.parseFloat(n[3]),0,100),o=ka(Number.isNaN(i)?1:i,0,1);return[a,r,s,o]}return null};mn.to.hex=function(...t){return"#"+sh(t[0])+sh(t[1])+sh(t[2])+(t[3]<1?sh(Math.round(t[3]*255)):"")};mn.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]+")"};mn.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]+")"};mn.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]+")"};mn.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};mn.to.keyword=function(...t){return VR[t.slice(0,3)]};function ka(t,e,n){return Math.min(Math.max(e,t),n)}function sh(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var JR={};for(let t of Object.keys(Tt))JR[Tt[t]]=t;var R={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"]}},Zt=(6/29)**3;function io(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function to(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(R)){if(!("channels"in R[t]))throw new Error("missing channels property: "+t);if(!("labels"in R[t]))throw new Error("missing channel labels property: "+t);if(R[t].labels.length!==R[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=R[t];delete R[t].channels,delete R[t].labels,Object.defineProperty(R[t],"channels",{value:e}),Object.defineProperty(R[t],"labels",{value:n})}R.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 c=(a+r)/2;return r===a?l=0:c<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,c*100]};R.rgb.hsv=function(t){let e,n,i,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,c=Math.max(s,o,l),u=c-Math.min(s,o,l),p=function(h){return(c-h)/6/u+1/2};if(u===0)a=0,r=0;else{switch(r=u/c,e=p(s),n=p(o),i=p(l),c){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,c*100]};R.rgb.hwb=function(t){let e=t[0],n=t[1],i=t[2],a=R.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]};R.rgb.oklab=function(t){let e=to(t[0]/255),n=to(t[1]/255),i=to(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,c=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,c*100]};R.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 BY(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}R.rgb.keyword=function(t){let e=JR[t];if(e)return e;let n=Number.POSITIVE_INFINITY,i;for(let a of Object.keys(Tt)){let r=Tt[a],s=BY(t,r);sZt?n**(1/3):7.787*n+16/116,i=i>Zt?i**(1/3):7.787*i+16/116,a=a>Zt?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]};R.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 c=0;c<3;c++)a=e+1/3*-(c-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[c]=r*255;return l};R.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]};R.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]}};R.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]};R.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),c,u,p;switch(s){default:case 6:case 0:{c=o,u=l,p=n;break}case 1:{c=l,u=o,p=n;break}case 2:{c=n,u=o,p=l;break}case 3:{c=n,u=l,p=o;break}case 4:{c=l,u=n,p=o;break}case 5:{c=o,u=n,p=l;break}}return[c*255,u*255,p*255]};R.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]};R.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=io(a),r=io(r),s=io(s),[a*255,r*255,s*255]};R.xyz.lab=function(t){let e=t[0],n=t[1],i=t[2];e/=95.047,n/=100,i/=108.883,e=e>Zt?e**(1/3):7.787*e+16/116,n=n>Zt?n**(1/3):7.787*n+16/116,i=i>Zt?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]};R.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,c=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,c*100]};R.oklab.oklch=function(t){return R.lab.lch(t)};R.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,c=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,c*100]};R.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=io(4.0767416621*a-3.3077115913*r+.2309699292*s),l=io(-1.2684380046*a+2.6097574011*r-.3413193965*s),c=io(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,c*255]};R.oklch.oklab=function(t){return R.lch.lab(t)};R.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,c=s**3;return r=o>Zt?o:(r-16/116)/7.787,a=l>Zt?l:(a-16/116)/7.787,s=c>Zt?c:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};R.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]};R.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]};R.rgb.ansi16=function(t,e=null){let[n,i,a]=t,r=e===null?R.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};R.hsv.ansi16=function(t){return R.rgb.ansi16(R.hsv.rgb(t),t[2])};R.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)};R.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]};R.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]};R.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};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.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]};R.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};R.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};R.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};R.gray.hsl=function(t){return[0,0,t[0]]};R.gray.hsv=R.gray.hsl;R.gray.hwb=function(t){return[0,100,t[0]]};R.gray.cmyk=function(t){return[0,0,0,t[0]]};R.gray.lab=function(t){return[t[0],0,0]};R.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};R.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function LY(){let t={},e=Object.keys(R);for(let{length:n}=e,i=0;i0;){let i=n.pop(),a=Object.keys(R[i]);for(let{length:r}=a,s=0;s1&&(n=i),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function XY(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=xn[this.model].channels;let a=Array.prototype.slice.call(t,0,i);this.color=Gb(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 zb))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=zb[r];let{labels:s}=xn[this.model],o=[];for(n=0;n(t%360+360)%360),saturationl:nn("hsl",1,hn(100)),lightness:nn("hsl",2,hn(100)),saturationv:nn("hsv",1,hn(100)),value:nn("hsv",2,hn(100)),chroma:nn("hcg",1,hn(100)),gray:nn("hcg",2,hn(100)),white:nn("hwb",1,hn(100)),wblack:nn("hwb",2,hn(100)),cyan:nn("cmyk",0,hn(100)),magenta:nn("cmyk",1,hn(100)),yellow:nn("cmyk",2,hn(100)),black:nn("cmyk",3,hn(100)),x:nn("xyz",0,hn(95.047)),y:nn("xyz",1,hn(100)),z:nn("xyz",2,hn(108.833)),l:nn("lab",0,hn(100)),a:nn("lab",1),b:nn("lab",2),keyword(t){return t!==void 0?new gn(t):xn[this.model].keyword(this.color)},hex(t){return t!==void 0?new gn(t):mn.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new gn(t);let e=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),mn.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 gn.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 gn.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(xn)){if(KR.includes(t))continue;let{channels:e}=xn[t];gn.prototype[t]=function(...n){return this.model===t?new gn(this):n.length>0?new gn(n,t):new gn([...nee(xn[this.model][t].raw(this.color)),this.valpha],t)},gn[t]=function(...n){let i=n[0];return typeof i=="number"&&(i=Gb(n,e)),new gn(i,t)}}function YY(t,e){return Number(t.toFixed(e))}function eee(t){return function(e){return YY(e,t)}}function nn(t,e,n){t=Array.isArray(t)?t:[t];for(let i of t)(Db[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 hn(t){return function(e){return Math.max(0,Math.min(t,e))}}function nee(t){return Array.isArray(t)?t:[t]}function Gb(t,e){for(let n=0;n{"use strict";function pt(t,e){if(e)return new pt(t).style(e);if(!(this instanceof pt))return new pt(t);this.text=t}pt.prototype.prefix="\x1B[";pt.prototype.suffix="m";pt.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)]};pt.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)};pt.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};pt.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};pt.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};XR.exports=pt});var nI=v((Gde,eI)=>{var ree=QR(),see=YR();eI.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?see(i+":",ree(i)):i+":";return e[0]=a+" "+e[0],e}});var tI=v((Nde,iI)=>{"use strict";iI.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a{var oee=tI();aI.exports=function(e){return function(i){try{return oee(i,e())}catch{}return!1}}});var oI=v(($de,sI)=>{var lee=rI();sI.exports=lee(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var uI=v((Bde,lI)=>{lI.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var pI=v((Lde,cI)=>{var uee=Ib(),cee=require("tty").isatty(1),oh=uee(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:cee,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});oh.modify(nI());oh.use(oI());oh.set(uI());cI.exports=oh});var mu=v((Fde,Nb)=>{process.env.NODE_ENV==="production"?Nb.exports=LR():Nb.exports=pI()});var hI=v((Vde,dI)=>{"use strict";var Ub=require("fs"),{StringDecoder:pee}=require("string_decoder"),{Stream:dee}=Wr();function hee(){}dI.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new pee("utf8"),a=new dee,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")},Ub.open(t.file,"a+","0644",(l,c)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function u(){if(a.destroyed){Ub.close(c,hee);return}return Ub.read(c,n,0,n.length,s,(p,h)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!h)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(u,1e3);let g=i.write(n.slice(0,h));e||a.emit("data",g),g=(r+g).split(/\n+/);let d=g.length-1,m=0;for(;mt.start)&&(e?e(null,g[m]):a.emit("line",g[m])),o++;return r=g[d],s+=h,u()})})()}),e?a.destroy:a}});var wI=v((Kde,fI)=>{"use strict";var Ci=require("fs"),yn=require("path"),gI=ER(),gee=require("zlib"),{MESSAGE:mee}=ln(),{Stream:fee,PassThrough:mI}=Wr(),wee=Xs(),dt=mu()("winston:file"),vee=require("os"),Cee=hI();fI.exports=class extends wee{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 mI,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?yn.basename(e.filename):"winston.log",this.dirname=e.dirname||yn.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=yn.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:vee.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[mee]}${this.eol}`,a=Buffer.byteLength(i);function r(){if(this._size+=a,this._pendingSize-=a,dt("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()})),dt("written",s,this._drain),this.finishIfEnding(),s}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=yn.join(this.dirname,this.filename),a="",r=[],s=0,o=Ci.createReadStream(i,{encoding:"utf8"});o.on("error",h=>{if(o.readable&&o.destroy(),!!n)return h.code!=="ENOENT"?n(h):n(null,r)}),o.on("data",h=>{h=(a+h).split(/\n+/);let g=h.length-1,d=0;for(;d=e.start)&&l(h[d]),s++;a=h[g]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),n&&n(null,r)});function l(h,g){try{let d=JSON.parse(h);u(d)&&c(d)}catch(d){g||o.emit("error",d)}}function c(h){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(h=e.fields.reduce((g,d)=>(g[d]=h[d],g),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(h)}function u(h){if(!h||typeof h!="object")return;let g=new Date(h.timestamp);if(!(e.from&&ge.until||e.level&&e.level!==h.level))return!0}function p(h){return h=h||{},h.rows=h.rows||h.limit||10,h.start=h.start||0,h.until=h.until||new Date,typeof h.until!="object"&&(h.until=new Date(h.until)),h.from=h.from||h.until-1440*60*1e3,typeof h.from!="object"&&(h.from=new Date(h.from)),h.order=h.order||"desc",h}}stream(e={}){let n=yn.join(this.dirname,this.filename),i=new fee,a={file:n,start:e.start};return i.destroy=Cee(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);dt("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=yn.join(this.dirname,n);Ci.stat(i,(a,r)=>{if(a&&a.code==="ENOENT")return dt("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return dt(`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=yn.join(this.dirname,this.filename);dt("create stream start",n,this.options);let i=Ci.createWriteStream(n,this.options).on("error",a=>dt(a)).on("close",()=>dt("close",i.path,i.bytesWritten)).on("open",()=>{dt("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new mI,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return dt("create stream ok",n),i}_incFile(e){dt("_incFile",this.filename);let n=yn.extname(this._basename),i=yn.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(yn.join(this.dirname,`${i}${s}${n}`),yn.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)),gI(a,e)}_getFile(){let e=yn.extname(this._basename),n=yn.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 c=`${n}${o-1}${e}${r}`,u=yn.join(this.dirname,c);Ci.exists(u,p=>{if(!p)return l(null);c=`${n}${o}${e}${r}`,Ci.rename(u,yn.join(this.dirname,c),l)})}.bind(this,s));gI(a,()=>{Ci.rename(yn.join(this.dirname,`${n}${e}${r}`),yn.join(this.dirname,`${n}1${e}${r}`),i)})}_compressFile(e,n,i){Ci.access(e,Ci.F_OK,a=>{if(a)return i();var r=gee.createGzip(),s=Ci.createReadStream(e),o=Ci.createWriteStream(n);o.on("finish",()=>{Ci.unlink(e,i)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Ci.existsSync(e)||Ci.mkdirSync(e,{recursive:!0})}}});var CI=v((Qde,vI)=>{"use strict";var Aee=require("http"),bee=require("https"),{Stream:xee}=Wr(),yee=Xs(),{configure:Pee}=Yl();vI.exports=class extends yee{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 xee;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,c=0;for(;cn.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?bee:Aee).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=Pee({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var $b=v((Xde,AI)=>{"use strict";var kt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";kt.writable=t=>kt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";kt.readable=t=>kt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";kt.duplex=t=>kt.writable(t)&&kt.readable(t);kt.transform=t=>kt.duplex(t)&&typeof t._transform=="function";AI.exports=kt});var xI=v((ehe,bI)=>{"use strict";var jee=$b(),{MESSAGE:See}=ln(),Oee=require("os"),Tee=Xs();bI.exports=class extends Tee{constructor(e={}){if(super(e),!e.stream||!jee(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:Oee.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[See]}${this.eol}`),n&&n()}}});var yI=v(fu=>{"use strict";Object.defineProperty(fu,"Console",{configurable:!0,enumerable:!0,get(){return KW()}});Object.defineProperty(fu,"File",{configurable:!0,enumerable:!0,get(){return wI()}});Object.defineProperty(fu,"Http",{configurable:!0,enumerable:!0,get(){return CI()}});Object.defineProperty(fu,"Stream",{configurable:!0,enumerable:!0,get(){return xI()}})});var uh=v(wu=>{"use strict";var lh=LA(),{configs:Bb}=ln();wu.cli=lh.levels(Bb.cli);wu.npm=lh.levels(Bb.npm);wu.syslog=lh.levels(Bb.syslog);wu.addColors=lh.levels});var jI=v((ch,PI)=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var kee=Ud(),Mee=Rr(kee),Eee=Xd(),qee=Rr(Eee),_ee=Tb(),Hee=Rr(_ee),Wee=jb(),Ree=Rr(Wee),Iee=Sb(),zee=Rr(Iee),Dee=Hr(),Gee=Rr(Dee),Nee=eo(),Uee=Rr(Nee);function Rr(t){return t&&t.__esModule?t:{default:t}}function $ee(t,e,n){n=(0,Ree.default)(n);var i=0,a=0,{length:r}=t,s=!1;r===0&&n(null);function o(l,c){l===!1&&(s=!0),s!==!0&&(l?n(l):(++a===r||c===qee.default)&&n(null))}for(;i{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.default=Fee;function Fee(t){return(e,n,i)=>t(e,i)}SI.exports=ph.default});var gh=v((hh,TI)=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var Vee=jI(),Jee=dh(Vee),Kee=OI(),Zee=dh(Kee),Qee=Hr(),Xee=dh(Qee),Yee=eo(),ene=dh(Yee);function dh(t){return t&&t.__esModule?t:{default:t}}function nne(t,e,n){return(0,Jee.default)(t,(0,Zee.default)((0,Xee.default)(e)),n)}hh.default=(0,ene.default)(nne,3);TI.exports=hh.default});var MI=v((the,kI)=>{"use strict";var ine=Object.prototype.toString;kI.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=ine.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Lb=v((ahe,EI)=>{"use strict";var tne=MI();EI.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=tne(e),a}});var Fb=v(Cu=>{Cu.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||Cu.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};Cu.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,c=null,u=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 h=r.indexOf(".Module");h>0&&(o=o.substr(h+1),r=r.substr(0,h))}l=null}s&&(l=r,c=s),s===""&&(c=null,o=null);var g={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:c,columnNumber:parseInt(a[4],10)||null,native:u};return e._createParsedCallSite(g)}}).filter(function(i){return!!i})};function vu(t){for(var e in t)this[e]=t[e]}var ane=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],rne=["topLevel","eval","native","constructor"];ane.forEach(function(t){vu.prototype[t]=null,vu.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});rne.forEach(function(t){vu.prototype[t]=!1,vu.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Cu._createParsedCallSite=function(t){return new vu(t)}});var _I=v((ohe,qI)=>{"use strict";var{Writable:sne}=Wr();qI.exports=class extends sne{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 Jb=v((uhe,RI)=>{"use strict";var HI=require("os"),one=gh(),Vb=mu()("winston:exception"),lne=Lb(),WI=Fb(),une=_I();RI.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:HI.loadavg(),uptime:HI.uptime()}}getTrace(e){return(e?WI.parse(e):WI.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 une(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(){Vb("doExit",a),Vb("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!i||i.length===0)return process.nextTick(s);one(i,(o,l)=>{let c=lne(l),u=o.transport||o;function p(h){return()=>{Vb(h),c()}}u._ending=!0,u.once("finish",p("finished")),u.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 zI=v((phe,II)=>{"use strict";var{Writable:cne}=Wr();II.exports=class extends cne{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 Zb=v((hhe,NI)=>{"use strict";var DI=require("os"),pne=gh(),Kb=mu()("winston:rejection"),dne=Lb(),GI=Fb(),hne=zI();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:DI.loadavg(),uptime:DI.uptime()}}getTrace(e){return(e?GI.parse(e):GI.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 hne(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(){Kb("doExit",a),Kb("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!i||i.length===0)return process.nextTick(s);pne(i,(o,l)=>{let c=dne(l),u=o.transport||o;function p(h){return()=>{Kb(h),c()}}u._ending=!0,u.once("finish",p("finished")),u.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 $I=v((ghe,UI)=>{"use strict";var Qb=class{constructor(e){let n=mh();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)}};UI.exports=Qb});var mh=v((mhe,VI)=>{"use strict";var{Stream:gne,Transform:mne}=Wr(),BI=gh(),{LEVEL:Mt,SPLAT:LI}=ln(),FI=$b(),fne=Jb(),wne=Zb(),vne=xb(),Cne=$I(),{warn:Ane}=FA(),bne=uh(),xne=/%[scdjifoO%]/g,fh=class extends mne{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:c,formatters:u,padLevels:p,rewriters:h,stripColors:g,exceptionHandlers:d,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||GA()(),this.defaultMeta=i||null,this.levels=a||this.levels||bne.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new fne(this),this.rejections=new wne(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(w=>this.add(w))),l||c||u||p||h||g)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(` +`));d&&this.exceptions.handle(d),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=Au(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((n,i)=>{let a=Au(this.levels,i.level);return a!==null&&a>n?a:n},e)}isLevelEnabled(e){let n=Au(this.levels,e);if(n===null)return!1;let i=Au(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(r=>{let s=Au(this.levels,r.level);return s===null&&(s=i),s>=n})!==-1}log(e,n,...i){if(arguments.length===1)return e[Mt]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[Mt]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[Mt]: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(xne))){let s=Object.assign({},this.defaultMeta,a,{[Mt]:e,[LI]: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,{[Mt]:e,[LI]:i,level:e,message:n})),this}_transform(e,n,i){if(this.silent)return i();e[Mt]||(e[Mt]=e.level),!this.levels[e[Mt]]&&this.levels[e[Mt]]!==0&&console.error("[winston] Unknown logger level: %s",e[Mt]),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();BI(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!FI(e)||e.log.length>2?new vne({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(!FI(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(){Ane.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,(c,u)=>{if(c)return l(c);typeof o.formatResults=="function"&&(u=o.formatResults(u,e.format)),l(null,u)})}function s(o,l){r(o,(c,u)=>{l&&(u=c||u,u&&(i[o.name]=u),l()),l=null})}BI(this.transports.filter(o=>!!o.query),s,()=>n(null,i))}stream(e={}){let n=new gne,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 Cne(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 Au(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(fh.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});VI.exports=fh});var Xb=v((fhe,JI)=>{"use strict";var{LEVEL:yne}=ln(),Pne=uh(),jne=mh(),Sne=mu()("winston:create-logger");function One(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}JI.exports=function(t={}){t.levels=t.levels||Pne.npm.levels;class e extends jne{constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(Sne('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[yne]=i,r._addDefaultMeta(o),r.write(o),this||n}return a.length===0?(r.log(i,""),r):r.log(i,...a)},e.prototype[One(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var ZI=v((vhe,KI)=>{"use strict";var Tne=Xb();KI.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=Tne(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 XI=v(Ge=>{"use strict";var QI=LA(),{warn:bu}=FA();Ge.version=VH().version;Ge.transports=yI();Ge.config=uh();Ge.addColors=QI.levels;Ge.format=QI.format;Ge.createLogger=Xb();Ge.Logger=mh();Ge.ExceptionHandler=Jb();Ge.RejectionHandler=Zb();Ge.Container=ZI();Ge.Transport=Xs();Ge.loggers=new Ge.Container;var Et=Ge.createLogger();Object.keys(Ge.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Ge[t]=(...e)=>Et[t](...e));Object.defineProperty(Ge,"level",{get(){return Et.level},set(t){Et.level=t}});Object.defineProperty(Ge,"exceptions",{get(){return Et.exceptions}});Object.defineProperty(Ge,"rejections",{get(){return Et.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Ge,t,{get(){return Et[t]},set(e){Et[t]=e}})});Object.defineProperty(Ge,"default",{get(){return{exceptionHandlers:Et.exceptionHandlers,rejectionHandlers:Et.rejectionHandlers,transports:Et.transports}}});bu.deprecated(Ge,"setLevels");bu.forFunctions(Ge,"useFormat",["cli"]);bu.forProperties(Ge,"useFormat",["padLevels","stripColors"]);bu.forFunctions(Ge,"deprecated",["addRewriter","addFilter","clone","extend"]);bu.forProperties(Ge,"deprecated",["emitErrs","levelLength"])});var i1=v((Ahe,n1)=>{var xu=require("path"),YI=require("fs"),e1=parseInt("0777",8);n1.exports=ao.mkdirp=ao.mkdirP=ao;function ao(t,e,n,i){typeof e=="function"?(n=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||YI;a===void 0&&(a=e1),i||(i=null);var s=n||function(){};t=xu.resolve(t),r.mkdir(t,a,function(o){if(!o)return i=i||t,s(null,i);switch(o.code){case"ENOENT":if(xu.dirname(t)===t)return s(o);ao(xu.dirname(t),e,function(l,c){l?s(l,c):ao(t,e,s,c)});break;default:r.stat(t,function(l,c){l||!c.isDirectory()?s(o,i):s(null,i)});break}})}ao.sync=function t(e,n,i){(!n||typeof n!="object")&&(n={mode:n});var a=n.mode,r=n.fs||YI;a===void 0&&(a=e1),i||(i=null),e=xu.resolve(e);try{r.mkdirSync(e,a),i=i||e}catch(o){switch(o.code){case"ENOENT":i=t(xu.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 Yb=v((bhe,t1)=>{function kne(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function Mne(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function Ene(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 xne(t,e,n){this.name=this.constructor.name,this.message=`File contains no section headers. +`+n,Error.captureStackTrace(this,this.constructor)}function qne(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 yne(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)}YI.exports={DuplicateSectionError:Cne,NoSectionError:Ane,ParseError:bne,MissingSectionHeaderError:xne,MaximumInterpolationDepthError:yne}});var i1=v((rhe,n1)=>{var Pne=Zb(),XI=new RegExp(/%\(([\w-]+)\)s/),Qb=50;function jne(t,e,n){return e1(t,e,n,1)}function e1(t,e,n,i){let a=t.get(e,n,!0);if(i>Qb)throw new Pne.MaximumInterpolationDepthError(e,n,a,Qb);let r=XI.exec(a);for(;r!==null;){let s=r[1],o=e1(t,e,s,i+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=XI.exec(a)}return a}n1.exports={interpolate:jne,MAXIMUM_INTERPOLATION_DEPTH:Qb}});var u1=v((ohe,l1)=>{var gh=require("util"),Cu=require("fs"),t1=require("path"),a1=QI(),hh=Zb(),Sne=i1(),One=new RegExp(/^\s*\[([^\]]+)]$/),Tne=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),kne=new RegExp(/^\s*[;#]/),r1=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),Mne=gh.promisify(Cu.readFile),Ene=gh.promisify(Cu.writeFile),she=gh.promisify(Cu.stat),qne=gh.promisify(a1);function Wn(){this._sections={}}Wn.prototype.sections=function(){return Object.keys(this._sections)};Wn.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new hh.DuplicateSectionError(t);this._sections[t]={}};Wn.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Wn.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new hh.NoSectionError(t)}};Wn.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Wn.prototype.read=function(t){let e=Cu.readFileSync(t).toString("utf8").split(r1);s1.call(this,t,e)};Wn.prototype.readAsync=async function(t){let e=(await Mne(t)).toString("utf8").split(r1);s1.call(this,t,e)};Wn.prototype.get=function(t,e,n){if(this._sections.hasOwnProperty(t))return n?this._sections[t][e]:Sne.interpolate(this,t,e)};Wn.prototype.getInt=function(t,e,n){if(this._sections.hasOwnProperty(t))return n||(n=10),parseInt(this._sections[t][e],n)};Wn.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Wn.prototype.items=function(t){return this._sections[t]};Wn.prototype.set=function(t,e,n){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=n)};Wn.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Wn.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Wn.prototype.write=function(t,e=!1){if(e){let n=t1.dirname(t);a1.sync(n)}Cu.writeFileSync(t,o1.call(this))};Wn.prototype.writeAsync=async function(t,e=!1){if(e){let n=t1.dirname(t);await qne(n)}await Ene(t,o1.call(this))};function s1(t,e){let n=null;e.forEach((i,a)=>{if(!i||i.match(kne))return;let r=One.exec(i);if(r){let s=r[1];n={},this._sections[s]=n}else if(n)if(r=Tne.exec(i),r){let s=r[1];n[s]=r[2]}else throw new hh.ParseError(t,a,i);else throw new hh.MissingSectionHeaderError(t,a,i)})}function o1(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] +`+n,Error.captureStackTrace(this,this.constructor)}function _ne(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)}t1.exports={DuplicateSectionError:kne,NoSectionError:Mne,ParseError:Ene,MissingSectionHeaderError:qne,MaximumInterpolationDepthError:_ne}});var o1=v((xhe,s1)=>{var Hne=Yb(),a1=new RegExp(/%\(([\w-]+)\)s/),ex=50;function Wne(t,e,n){return r1(t,e,n,1)}function r1(t,e,n,i){let a=t.get(e,n,!0);if(i>ex)throw new Hne.MaximumInterpolationDepthError(e,n,a,ex);let r=a1.exec(a);for(;r!==null;){let s=r[1],o=r1(t,e,s,i+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=a1.exec(a)}return a}s1.exports={interpolate:Wne,MAXIMUM_INTERPOLATION_DEPTH:ex}});var g1=v((Phe,h1)=>{var vh=require("util"),yu=require("fs"),l1=require("path"),u1=i1(),wh=Yb(),Rne=o1(),Ine=new RegExp(/^\s*\[([^\]]+)]$/),zne=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),Dne=new RegExp(/^\s*[;#]/),c1=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),Gne=vh.promisify(yu.readFile),Nne=vh.promisify(yu.writeFile),yhe=vh.promisify(yu.stat),Une=vh.promisify(u1);function Wn(){this._sections={}}Wn.prototype.sections=function(){return Object.keys(this._sections)};Wn.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new wh.DuplicateSectionError(t);this._sections[t]={}};Wn.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Wn.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new wh.NoSectionError(t)}};Wn.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Wn.prototype.read=function(t){let e=yu.readFileSync(t).toString("utf8").split(c1);p1.call(this,t,e)};Wn.prototype.readAsync=async function(t){let e=(await Gne(t)).toString("utf8").split(c1);p1.call(this,t,e)};Wn.prototype.get=function(t,e,n){if(this._sections.hasOwnProperty(t))return n?this._sections[t][e]:Rne.interpolate(this,t,e)};Wn.prototype.getInt=function(t,e,n){if(this._sections.hasOwnProperty(t))return n||(n=10),parseInt(this._sections[t][e],n)};Wn.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Wn.prototype.items=function(t){return this._sections[t]};Wn.prototype.set=function(t,e,n){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=n)};Wn.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Wn.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Wn.prototype.write=function(t,e=!1){if(e){let n=l1.dirname(t);u1.sync(n)}yu.writeFileSync(t,d1.call(this))};Wn.prototype.writeAsync=async function(t,e=!1){if(e){let n=l1.dirname(t);await Une(n)}await Nne(t,d1.call(this))};function p1(t,e){let n=null;e.forEach((i,a)=>{if(!i||i.match(Dne))return;let r=Ine.exec(i);if(r){let s=r[1];n={},this._sections[s]=n}else if(n)if(r=zne.exec(i),r){let s=r[1];n[s]=r[2]}else throw new wh.ParseError(t,a,i);else throw new wh.MissingSectionHeaderError(t,a,i)})}function d1(){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}l1.exports=Wn});var p1=v((lhe,c1)=>{"use strict";var _ne=x2();function Hne(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Yb=Hne(_ne),Wne={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",eusc_de_east_1:"edee1.eusc-pure.cloud"},Au=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()}},Ta=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}},mh=class extends Au{constructor(e,n){super(),e!=null?this.setTimeout(e):this.timeout=16e3,n!=null?this.setHttpsAgent(n):this.httpsAgent,this._axiosInstance=Yb.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&Yb.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&&Yb.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 Ta))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}},Rne={levels:{none:0,error:1,debug:2,trace:3}},eo={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},qr={formats:{JSON:"json",TEXT:"text"}},Xb=class{get logLevelEnum(){return eo}get logFormatEnum(){return qr}constructor(){this.log_level=eo.level.LNone,this.log_format=qr.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=VI();this.logger=e.createLogger({levels:Rne.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===qr.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===qr.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 c=this.formatLog(e,n,i,a,r,s,o,l);if(typeof window<"u"){var u=this.calculateLogLevel(e);u>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(c):console.log(`${e.toUpperCase()}: ${c}`))}else this.logger.transports.length>0&&this.logger.log(e,c)}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 c,u=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,h=o?JSON.parse(JSON.stringify(o)):null,g=l?JSON.parse(JSON.stringify(l)):null;return r&&(u.Authorization="[REDACTED]"),this.log_request_body||(h=void 0),this.log_response_body||(g=void 0),this.log_format&&this.log_format===qr.formats.JSON?(c={level:e,date:new Date().toISOString(),method:i,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:n},u&&(c.requestHeaders=u),p&&(c.responseHeaders=p),h&&(c.requestBody=h),g&&(c.responseBody=g)):c=`${new Date().toISOString()} +`}return t}h1.exports=Wn});var f1=v((jhe,m1)=>{"use strict";var $ne=O2();function Bne(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var nx=Bne($ne),Lne={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",eusc_de_east_1:"edee1.eusc-pure.cloud"},Pu=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()}},Ma=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}},Ch=class extends Pu{constructor(e,n){super(),e!=null?this.setTimeout(e):this.timeout=16e3,n!=null?this.setHttpsAgent(n):this.httpsAgent,this._axiosInstance=nx.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&nx.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&&nx.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 Ma))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}},Fne={levels:{none:0,error:1,debug:2,trace:3}},ro={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Ir={formats:{JSON:"json",TEXT:"text"}},ix=class{get logLevelEnum(){return ro}get logFormatEnum(){return Ir}constructor(){this.log_level=ro.level.LNone,this.log_format=Ir.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=XI();this.logger=e.createLogger({levels:Fne.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Ir.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===Ir.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 c=this.formatLog(e,n,i,a,r,s,o,l);if(typeof window<"u"){var u=this.calculateLogLevel(e);u>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(c):console.log(`${e.toUpperCase()}: ${c}`))}else this.logger.transports.length>0&&this.logger.log(e,c)}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 c,u=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,h=o?JSON.parse(JSON.stringify(o)):null,g=l?JSON.parse(JSON.stringify(l)):null;return r&&(u.Authorization="[REDACTED]"),this.log_request_body||(h=void 0),this.log_response_body||(g=void 0),this.log_format&&this.log_format===Ir.formats.JSON?(c={level:e,date:new Date().toISOString(),method:i,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:n},u&&(c.requestHeaders=u),p&&(c.responseHeaders=p),h&&(c.requestBody=h),g&&(c.responseBody=g)):c=`${new Date().toISOString()} === REQUEST === ${this.formatValue("URL",decodeURIComponent(a))}${this.formatValue("Method",i)}${this.formatValue("Headers",this.formatHeaderString(u))}${this.formatValue("Body",h?JSON.stringify(h,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",g?JSON.stringify(g,null,2):"")}`,c}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 eo.level.LError;case"debug":return eo.level.LDebug;case"trace":return eo.level.LTrace;default:return eo.level.LNone}}getLogFormat(e){return e==="json"?qr.formats.JSON:qr.formats.TEXT}},ex=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.authPopupConfiguration=this._getDefaultAuthPopupConfiguration(),this.logger=new Xb,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=u1();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}_getDefaultAuthPopupConfiguration(){return{usePopup:!1,popupTimeout:12e4,notifyPopup:!1,autoClosePopup:!0,autoClosePopupDelay:3e3,popupTarget:"_blank",popupWindowFeatures:"popup=true,width=800,height=700",overridePopupUrl:void 0,overridePopupUrlParameters:void 0,overridePopupUrlAuthParameters:!1,useWindowReplace:!1,overrideWindowReplaceUri:void 0,waitForLoginPromise:!0,usePopupIdentifier:!1}}mergeWithAuthPopupConfiguration(e){let n={};return this.authPopupConfiguration?n=JSON.parse(JSON.stringify(this.authPopupConfiguration)):n=this._getDefaultAuthPopupConfiguration(),typeof e=="object"&&e&&(typeof e.usePopup=="boolean"&&e.usePopup!==null&&e.usePopup!==void 0&&(n.usePopup=e.usePopup),typeof e.popupTimeout=="number"&&e.popupTimeout!==null&&e.popupTimeout!==void 0&&(n.popupTimeout=e.popupTimeout),typeof e.autoClosePopup=="boolean"&&e.autoClosePopup!==null&&e.autoClosePopup!==void 0&&(n.autoClosePopup=e.autoClosePopup),typeof e.autoClosePopupDelay=="number"&&e.autoClosePopupDelay!==null&&e.autoClosePopupDelay!==void 0&&(n.autoClosePopupDelay=e.autoClosePopupDelay),typeof e.popupTarget=="string"&&e.popupTarget!==null&&e.popupTarget!==void 0&&(n.popupTarget=e.popupTarget),typeof e.popupWindowFeatures=="string"&&e.popupWindowFeatures!==null&&e.popupWindowFeatures!==void 0&&(n.popupWindowFeatures=e.popupWindowFeatures),typeof e.overridePopupUrl=="string"&&e.overridePopupUrl!==null&&e.overridePopupUrl!==void 0&&(n.overridePopupUrl=e.overridePopupUrl),typeof e.overridePopupUrlParameters=="object"&&e.overridePopupUrlParameters!==null&&e.overridePopupUrlParameters!==void 0&&(n.overridePopupUrlParameters=e.overridePopupUrlParameters),typeof e.overridePopupUrlAuthParameters=="boolean"&&e.overridePopupUrlAuthParameters!==null&&e.overridePopupUrlAuthParameters!==void 0&&(n.overridePopupUrlAuthParameters=e.overridePopupUrlAuthParameters),typeof e.notifyPopup=="boolean"&&e.notifyPopup!==null&&e.notifyPopup!==void 0&&(n.notifyPopup=e.notifyPopup),typeof e.waitForLoginPromise=="boolean"&&e.waitForLoginPromise!==null&&e.waitForLoginPromise!==void 0&&(n.waitForLoginPromise=e.waitForLoginPromise),typeof e.useWindowReplace=="boolean"&&e.useWindowReplace!==null&&e.useWindowReplace!==void 0&&(n.useWindowReplace=e.useWindowReplace),typeof e.overrideWindowReplaceUri=="string"&&e.overrideWindowReplaceUri!==null&&e.overrideWindowReplaceUri!==void 0&&(n.overrideWindowReplaceUri=e.overrideWindowReplaceUri),typeof e.usePopupIdentifier=="boolean"&&e.usePopupIdentifier!==null&&e.usePopupIdentifier!==void 0&&(n.usePopupIdentifier=e.usePopupIdentifier)),n}getAuthPopupConfiguration(){return this.authPopupConfiguration}setAuthPopupConfiguration(e){this.authPopupConfiguration=this._getDefaultAuthPopupConfiguration(),this.authPopupConfiguration=this.mergeWithAuthPopupConfiguration(e)}updateAuthPopupConfiguration(e){this.authPopupConfiguration=this.mergeWithAuthPopupConfiguration(e)}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]}},q=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,this._listenerAuthPopupMessage=null,typeof window<"u"&&(this._handleAuthPopupMessage=this._handleAuthPopupMessage.bind(this)),this._listenersAuthPopupStatus=[],this._authPopupWindow=null,this._checkPopupTimeout=null,this._notifyPopupInterval=null,this._popupIdentifier=null,this.onAuthPopupStatus=null;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 ex,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)}setAuthData(e){this._saveSettings(e)}clearAuthData(){this._clearSettings()}getAuthPopupConfiguration(){return this.config.getAuthPopupConfiguration()}setAuthPopupConfiguration(e){this.config.setAuthPopupConfiguration(e)}updateAuthPopupConfiguration(e){this.config.updateAuthPopupConfiguration(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 Au))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 mh(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)}addAuthPopupStatusListener(e){typeof e=="function"&&e&&(this._listenersAuthPopupStatus||(this._listenersAuthPopupStatus=[]),this._listenersAuthPopupStatus.push(e))}removeAuthPopupStatusListener(e){if(e){if(!this._listenersAuthPopupStatus||this._listenersAuthPopupStatus.length==0)return;this._listenersAuthPopupStatus=this._listenersAuthPopupStatus.filter(n=>n!==e)}}removeAllAuthPopupStatusListeners(){this._listenersAuthPopupStatus&&(this._listenersAuthPopupStatus=[])}_emitAuthPopupStatus(e,n,i){this.onAuthPopupStatus&&this.onAuthPopupStatus(e,n,i),!(!this._listenersAuthPopupStatus||this._listenersAuthPopupStatus.length==0)&&this._listenersAuthPopupStatus.forEach(a=>a(e,n,i))}_generatePopupIdentifier(e){if(e<8||e>64)throw new Error("Popup Identifier (length) must be between 8 and 64 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("")}}_startAuthPopup(e,n,i){try{i||(i={}),this._checkPopupTimeout&&clearTimeout(this._checkPopupTimeout),this._checkPopupTimeout=null,this._notifyPopupInterval&&clearInterval(this._notifyPopupInterval),this._notifyPopupInterval=null,this._listenerAuthPopupMessage&&(window.removeEventListener("message",this._listenerAuthPopupMessage),this._listenerAuthPopupMessage=null),this._authPopupWindow&&(i.autoClosePopup===!0&&!this._authPopupWindow.closed&&this._authPopupWindow.close(),this._popupIdentifier&&this._emitAuthPopupStatus("ABORTED","Previous Authorization Popup aborted.",this._popupIdentifier),this._popupIdentifier=null),this._authPopupWindow=null,this._popupIdentifier=this._generatePopupIdentifier(16),this._emitAuthPopupStatus("INIT","Authorization Popup Starting",this._popupIdentifier);let a=e;if(i.overridePopupUrl){let r=null;i.overridePopupUrlAuthParameters===!0&&n?i.overridePopupUrlParameters?r={...n,...i.overridePopupUrlParameters}:r=n:i.overridePopupUrlParameters&&(r=i.overridePopupUrlParameters),r?a=`${i.overridePopupUrl}?${new URLSearchParams(r).toString()}`:a=i.overridePopupUrl}return new Promise((r,s)=>{this._listenerAuthPopupMessage=o=>{this._handleAuthPopupMessage(o,i,r,s)},window.addEventListener("message",this._listenerAuthPopupMessage),this._authPopupWindow=window.open(a,i.popupTarget,i.popupWindowFeatures),i.notifyPopup===!0&&(this._notifyPopupInterval=setInterval(function(){if(this._authPopupWindow){let o=new URL(this.redirectUri),l={name:"gc_auth_popup",type:"notify"};i.usePopupIdentifier===!0&&this._popupIdentifier&&(l.identifier=this._popupIdentifier),this._authPopupWindow.postMessage(l,`${o.protocol}//${o.host}`)}else clearInterval(this.notifyPopupInterval),this._notifyPopupInterval=null}.bind(this),1e3)),this._checkPopupTimeout=setTimeout(function(){return this._emitAuthPopupStatus("TIMEOUT","Authorization Popup Timeout",this._popupIdentifier),this._listenerAuthPopupMessage&&(window.removeEventListener("message",this._listenerAuthPopupMessage),this._listenerAuthPopupMessage=null),i.autoClosePopup===!0&&i.autoClosePopupDelay>0?setTimeout(function(){this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close(),this._authPopupWindow=null)}.bind(this),i.autoClosePopupDelay):(i.autoClosePopup===!0&&this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close()),this._authPopupWindow=null),this._checkPopupTimeout=null,this._notifyPopupInterval&&clearInterval(this._notifyPopupInterval),this._notifyPopupInterval=null,s(new Error("Authentication Popup Timeout"))}.bind(this),i.popupTimeout)})}catch(a){throw console.error(a),a}}_extractValuesFromSearchAndHash(e,n){let i={};if(e&&e!=="?"){let a=new URLSearchParams(e),r=a.get("code");r&&(i.code=r);let s=a.get("state");s&&(i.state=s);let o=a.get("error");o&&(i.error=o);let l=a.get("error_description");l&&(i.error_description=l)}if(n&&n!=="#"){let a=new URLSearchParams(n.substring(1)),r=a.get("access_token");r&&(i.accessToken=r);let s=a.get("expires_in");s&&(i.tokenExpiryTime=new Date().getTime()+parseInt(s)*1e3,i.tokenExpiryTimeString=new Date(i.tokenExpiryTime).toUTCString());let o=a.get("state");o&&(i.state=o);let l=a.get("error");l&&(i.error=l);let c=a.get("error_description");c&&(i.error_description=c)}return i}_handleAuthPopupMessage(e,n,i,a){if(this.redirectUri.startsWith(e.origin)&&e.data&&typeof e.data=="object"){let r=JSON.parse(JSON.stringify(e.data));if(r&&r.name==="gc_auth_popup"&&r.type==="message"){if(this._checkPopupTimeout&&clearTimeout(this._checkPopupTimeout),this._checkPopupTimeout=null,this._notifyPopupInterval&&clearInterval(this._notifyPopupInterval),this._notifyPopupInterval=null,this._listenerAuthPopupMessage&&(window.removeEventListener("message",this._listenerAuthPopupMessage),this._listenerAuthPopupMessage=null),n.usePopupIdentifier===!0&&r.identifier&&r.identifier!==this._popupIdentifier)return this._emitAuthPopupStatus("Error","Invalid Popup Identifier received",this._popupIdentifier),s.accessToken=void 0,this._saveSettings(s),a(new Error("Invalid Popup Identifier received"));n.autoClosePopup===!0&&n.autoClosePopupDelay>0?setTimeout(function(){this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close(),this._authPopupWindow=null)}.bind(this),n.autoClosePopupDelay):(n.autoClosePopup===!0&&this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close()),this._authPopupWindow=null);let s={},o=null,l=null;if(r.auth&&typeof r.auth=="object"?(s=r.auth,o=`?${new URLSearchParams(s).toString()}`):(r.search&&r.search!=="?"&&(o=r.search),r.hash&&r.hash!=="#"&&(l=r.hash),s=this._extractValuesFromSearchAndHash(o,l)),!s.error&&!s.accessToken&&!s.code&&(s.error="InvalidAuthParams",s.error_description="Missing Auth Params on URL Redirect"),s.error)return this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${s.error}] ${s.error_description}`,this._popupIdentifier),s.accessToken=void 0,this._saveSettings(s),a(new Error(`Auth Error: [${s.error}] ${s.error_description}`));n.useWindowReplace===!0?(this._emitAuthPopupStatus("REDIRECTING","Authorization Popup Completed",this._popupIdentifier),this._popupIdentifier=null,n.overrideWindowReplaceUri?window.location.replace(`${n.overrideWindowReplaceUri}${o||""}${l||""}`):window.location.replace(`${window.location.origin}${window.location.pathname}${o||""}${l||""}`),i(null)):s&&s.accessToken?(this._saveSettings(s),this._testTokenAccess().then(()=>{this._emitAuthPopupStatus("AUTHENTICATED","Authorization Popup Completed",this._popupIdentifier),this._popupIdentifier=null,i(s)}).catch(c=>(this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${c.name}] ${c.message}`,this._popupIdentifier),this._popupIdentifier=null,this._saveSettings({accessToken:void 0}),a(new Error(`[${c.name}] ${c.message}`))))):s&&s.code&&(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem(`${this.settingsPrefix}_pkce_code_verifier`)),this.authorizePKCEGrant(this.clientId,this.codeVerifier,s.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{this._emitAuthPopupStatus("AUTHENTICATED","Authorization Popup Completed",this._popupIdentifier),this._popupIdentifier=null,!this.authData.state&&s.state&&(this.authData.state=s.state),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),i(this.authData)}).catch(c=>(this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${c.name}] ${c.message}`,this._popupIdentifier),this._popupIdentifier=null,this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),a(new Error(`[${c.name}] ${c.message}`))))}).catch(c=>(this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${c.name}] ${c.message}`,this._popupIdentifier),this._popupIdentifier=null,this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),a(new Error(`[${c.name}] ${c.message}`)))))}}}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:this.clientId,redirect_uri:this.redirectUri,response_type:"token"};i.state&&(l.state=i.state),i.org&&(l.org=i.org),i.provider&&(l.provider=i.provider),i.target&&(l.target=i.target),i.login_hint&&(l.login_hint=i.login_hint),i.prompt&&i.prompt=="login"&&(l.prompt=i.prompt);let c=this.config.mergeWithAuthPopupConfiguration(i.authPopupConfiguration);var u=this._buildAuthUrl("oauth/authorize",l);c.usePopup===!0?this._startAuthPopup(u,l,c).then(p=>{r(p)}).catch(p=>s(new Error(`[${p.name}] ${p.message}`))):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 Ta(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(u=>{this.config.logger.log("trace",u.status,"POST",`${a}/oauth/token`,o,u.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",u.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(u.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+u.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(u=>{u.response&&this.config.logger.log("error",u.response.status,"POST",`${a}/oauth/token`,o,u.response.headers,{grant_type:"client_credentials"},u.response.data),s(u)})})}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"),c=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:i,assertion:a});c.proxy=this.proxy;var u={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:i,assertion:a};c.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,c.headers,p.headers,u,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,c.headers,void 0,u,void 0);var h=p.data.access_token;this.setAccessToken(h),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`,c.headers,p.response.headers,u,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"},c=new URLSearchParams({grant_type:"authorization_code",code:i,code_verifier:n,client_id:e,redirect_uri:a}).toString(),u=new Ta(`${r}/oauth/token`,"POST",l,null,c,this.timeout);let p=this.getHttpClient();var h={grant_type:"authorization_code",code:i,code_verifier:n,client_id:e,redirect_uri:a};p.request(u).then(g=>{this.config.logger.log("trace",g.status,"POST",`${r}/oauth/token`,u.headers,g.headers,h,void 0),this.config.logger.log("debug",g.status,"POST",`${r}/oauth/token`,u.headers,void 0,h,void 0);var d=g.data.access_token;let m={accessToken:d};g.data.expires_in!==null&&g.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+g.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(g=>{g.response&&this.config.logger.log("error",g.response.status,"POST",`${r}/oauth/token`,u.headers,g.response.headers,h,g.response.data),o(g)})})}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"),sessionStorage.removeItem(`${this.settingsPrefix}_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(`${this.settingsPrefix}_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"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),o(new Error(`[${l.name}] ${l.message}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),o(new Error(`[${l.name}] ${l.message}`))))):this._testTokenAccess(i.skipTest).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),sessionStorage.setItem(`${this.settingsPrefix}_pkce_code_verifier`,this.codeVerifier))),this.computePKCECodeChallenge(this.codeVerifier).then(c=>{var u={client_id:this.clientId,redirect_uri:this.redirectUri,code_challenge:c,response_type:"code",code_challenge_method:"S256"};i.state&&(u.state=i.state),i.org&&(u.org=i.org),i.provider&&(u.provider=i.provider),i.target&&(u.target=i.target),i.login_hint&&(u.login_hint=i.login_hint),i.prompt&&i.prompt=="login"&&(u.prompt=i.prompt);let p=this.config.mergeWithAuthPopupConfiguration(i.authPopupConfiguration);var h=this._buildAuthUrl("oauth/authorize",u);p.usePopup===!0?this._startAuthPopup(h,u,p).then(g=>{s(g)}).catch(g=>o(new Error(`[${g.name}] ${g.message}`))):window.location.replace(h)}).catch(c=>o(new Error(`[${c.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,c=window.location;return"replaceState"in history?history.replaceState("",document.title,c.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,c.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 c={grant_type:"authorization_code",code:i,redirect_uri:a};this._handleCodeAuthorizationResponse(l,c,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 URLSearchParams(n).toString(),s=new Ta(`${i}/oauth/token`,"POST",a,null,r,this.timeout);return this.getHttpClient().request(s)}_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(e){return new Promise((n,i)=>{if(typeof e=="boolean"&&e===!0){i(new Error("Skipping Test Token"));return}if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken){i(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(()=>{n()}).catch(a=>{this._saveSettings({accessToken:void 0}),i(a)})})}_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:this.clientId};e&&(n.redirect_uri=e);var i=this._buildAuthUrl("logout",n);window.location.replace(i)}_buildAuthUrl(e,n){var i=this.config.getConfUrl("login",this.config.authUrl);return n?`${i}/${e}?${new URLSearchParams(n).toString()}`:`${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,c,u,p){return new Promise((h,g)=>{d(this);function d(m){var w=m.buildUrl(e,i),f=new Ta(w,n,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(f,l);let A=m.defaultHeaders,b=m.normalizeParams(r);if(f.headers=m.addHeaders(f.headers,A,b),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[_,W]of Object.entries(p)){if(typeof _!="string"||typeof W!="string")throw new Error(`Invalid header: "${_}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(_))throw new Error(`Invalid header name: "${_}" - must be a valid HTTP token`);for(let le=0;le=33&&Pe<=126||Pe===32||Pe===9||Pe>=128&&Pe<=255))throw new Error(`Invalid header value for "${_}": contains invalid characters`)}f.headers[_]=W}}var x=m.jsonPreferredMime(c);if(x?f.headers["Content-Type"]=x:f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json"),x==="application/x-www-form-urlencoded")f.setData(m.normalizeParams(s));else if(x=="multipart/form-data"){var S=m.normalizeParams(s);for(var T in S)if(S.hasOwnProperty(T)){var M=new FormData;M.set(T,S[T]),f.setData(M)}}else o&&f.setData(o);var V=m.jsonPreferredMime(u);V&&(f.headers.Accept=V),m.getHttpClient().request(f).then(_=>{var W=m.returnExtended===!0?{status:_.status,statusText:_.statusText,headers:_.headers,body:_.data,text:_.text,error:null}:_.data?_.data:_.text;m.config.logger.log("trace",_.status,n,w,f.headers,_.headers,o,void 0),m.config.logger.log("debug",_.status,n,w,f.headers,void 0,o,void 0),h(W)}).catch(_=>{var W=_;_.response&&_.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{d(m)}).catch(le=>{g(le)}):_.response&&(m.config.logger.log("error",_.response.status,n,w,f.headers,_.response.headers,o,_.response.data),W=m.returnExtended===!0?{status:_.response.status,statusText:_.response.statusText,headers:_.response.headers,body:_.response.data,text:_.response.text,error:_}:_.response.data?_.response.data:_.response.text),g(W)})}})}},nx=class{constructor(e){this.apiClient=e||q.instance}deleteAgenticVirtualagentJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling deleteAgenticVirtualagentJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs","DELETE",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}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)}getAgenticVirtualagent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","GET",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAgenticVirtualagentJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagentJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getAgenticVirtualagentJob';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs/{jobId}","GET",{virtualAgentId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAgenticVirtualagents(e){return e=e||{},this.apiClient.callApi("/api/v2/agentic/virtualagents","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)}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",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name,sortOrder:e.sortOrder,language:e.language,sortBy:e.sortBy},{},{},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)}patchAgenticVirtualagent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling patchAgenticVirtualagent';if(n==null)throw'Missing the required parameter "body" when calling patchAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","PATCH",{virtualAgentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postAgenticVirtualagentVersionJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling postAgenticVirtualagentVersionJobs';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling postAgenticVirtualagentVersionJobs';if(i==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagentVersionJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/versions/{versionId}/jobs","POST",{virtualAgentId:e,versionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAgenticVirtualagents(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagents';return this.apiClient.callApi("/api/v2/agentic/virtualagents","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},ix=class{constructor(e){this.apiClient=e||q.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,agentChecklistIds:this.apiClient.buildCollectionParam(e.agentChecklistIds,"multi")},{},{},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)}},tx=class{constructor(e){this.apiClient=e||q.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)}},ax=class{constructor(e){this.apiClient=e||q.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)}},rx=class{constructor(e){this.apiClient=e||q.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)}},sx=class{constructor(e){this.apiClient=e||q.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)}},ox=class{constructor(e){this.apiClient=e||q.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"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"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)}getFlowsLookup(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getFlowsLookup';return this.apiClient.callApi("/api/v2/flows/lookup","GET",{},{id:this.apiClient.buildCollectionParam(e,"multi"),pageNumber:n.pageNumber,pageSize:n.pageSize,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},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)}getFlowsValidateJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getFlowsValidateJob';return this.apiClient.callApi("/api/v2/flows/validate/jobs/{jobId}","GET",{jobId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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",{},{},{},{},e.body,["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)}postFlowsValidateJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postFlowsValidateJobs';return this.apiClient.callApi("/api/v2/flows/validate/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},lx=class{constructor(e){this.apiClient=e||q.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)}},ux=class{constructor(e){this.apiClient=e||q.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)}},cx=class{constructor(e){this.apiClient=e||q.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)}},px=class{constructor(e){this.apiClient=e||q.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)}},dx=class{constructor(e){this.apiClient=e||q.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)}},hx=class{constructor(e){this.apiClient=e||q.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)}deleteBusinessrulesDecisiontableExport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableExport';if(n==null||n==="")throw'Missing the required parameter "exportJobId" when calling deleteBusinessrulesDecisiontableExport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports/{exportJobId}","DELETE",{tableId:e,exportJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableImport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableImport';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling deleteBusinessrulesDecisiontableImport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}","DELETE",{tableId:e,importJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}deleteBusinessrulesDecisiontableVersionSnapshot(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionSnapshot';if(n==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionSnapshot';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/snapshot","DELETE",{tableId:e,tableVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getBusinessrulesDecisiontableExport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableExport';if(n==null||n==="")throw'Missing the required parameter "exportJobId" when calling getBusinessrulesDecisiontableExport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports/{exportJobId}","GET",{tableId:e,exportJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesDecisiontableExports(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableExports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports","GET",{tableId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableImport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableImport';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling getBusinessrulesDecisiontableImport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}","GET",{tableId:e,importJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesDecisiontableImports(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableImports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports","GET",{tableId:e},{after:n.after,pageSize:n.pageSize},{},{},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,status:this.apiClient.buildCollectionParam(n.status,"multi"),hasSnapshot:n.hasSnapshot},{},{},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)}getBusinessrulesSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "schemaVersion" when calling getBusinessrulesSchemaVersion';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}/versions/{schemaVersion}","GET",{schemaId:e,schemaVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchemaVersions';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}/versions","GET",{schemaId:e},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},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)}patchBusinessrulesDecisiontableImport(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableImport';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling patchBusinessrulesDecisiontableImport';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableImport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}","PATCH",{tableId:e,importJobId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}postBusinessrulesDecisiontableExports(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExports';if(n==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports","POST",{tableId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontableImports(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableImports';if(n==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableImports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports","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)}postBusinessrulesDecisiontableVersionRollback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRollback';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRollback';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rollback","POST",{tableId:e,tableVersion:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postBusinessrulesDecisiontableVersionRowsBulkAdd(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/add","POST",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsBulkRemove(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/remove","POST",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsBulkUpdate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/update","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)}postBusinessrulesDecisiontableVersionSnapshot(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSnapshot';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionSnapshot';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionSnapshot';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/snapshot","POST",{tableId:e,tableVersion:n},{},{},{},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},{},{},{},n.body,["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)}},gx=class{constructor(e){this.apiClient=e||q.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)}},mx=class{constructor(e){this.apiClient=e||q.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)}deleteCasemanagementCaseCommentsMeCommentId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling deleteCasemanagementCaseCommentsMeCommentId';if(n==null||n==="")throw'Missing the required parameter "commentId" when calling deleteCasemanagementCaseCommentsMeCommentId';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments/me/{commentId}","DELETE",{caseId:e,commentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}deleteCasemanagementCaseplanDataschema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling deleteCasemanagementCaseplanDataschema';if(n==null||n==="")throw'Missing the required parameter "schemaKeyName" when calling deleteCasemanagementCaseplanDataschema';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/dataschemas/{schemaKeyName}","DELETE",{caseplanId:e,schemaKeyName:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteCasemanagementCaseplanStageplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling deleteCasemanagementCaseplanStageplan';if(n==null||n==="")throw'Missing the required parameter "stageplanId" when calling deleteCasemanagementCaseplanStageplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans/{stageplanId}","DELETE",{caseplanId:e,stageplanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},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)}getCasemanagementCaseComment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseComment';if(n==null||n==="")throw'Missing the required parameter "commentId" when calling getCasemanagementCaseComment';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments/{commentId}","GET",{caseId:e,commentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseComments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseComments';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments","GET",{caseId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},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)}getCasemanagementCasesQueryJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getCasemanagementCasesQueryJob';return this.apiClient.callApi("/api/v2/casemanagement/cases/query/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCasesQueryJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getCasemanagementCasesQueryJobResults';return this.apiClient.callApi("/api/v2/casemanagement/cases/query/jobs/{jobId}/results","GET",{jobId:e},{},{},{},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:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},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)}patchCasemanagementCaseDescription(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDescription';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDescription';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/description","PATCH",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseExternalid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseExternalid';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseExternalid';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/externalid","PATCH",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseOwner(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseOwner';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseOwner';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/owner","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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseComments(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseComments';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseComments';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments","POST",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postCasemanagementCaseplanDataschemas(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanDataschemas';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplanDataschemas';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/dataschemas","POST",{caseplanId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postCasemanagementCaseplanStageplanReposition(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanStageplanReposition';if(n==null||n==="")throw'Missing the required parameter "stageplanId" when calling postCasemanagementCaseplanStageplanReposition';if(i==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplanStageplanReposition';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans/{stageplanId}/reposition","POST",{caseplanId:e,stageplanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postCasemanagementCaseplanStageplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanStageplans';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplanStageplans';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans","POST",{caseplanId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCasemanagementCasesAssociationsQuery';return this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCasesQueryJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCasemanagementCasesQueryJobs';return this.apiClient.callApi("/api/v2/casemanagement/cases/query/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putCasemanagementCaseplanDataschema(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanDataschema';if(n==null||n==="")throw'Missing the required parameter "schemaKeyName" when calling putCasemanagementCaseplanDataschema';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanDataschema';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/dataschemas/{schemaKeyName}","PUT",{caseplanId:e,schemaKeyName:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}},fx=class{constructor(e){this.apiClient=e||q.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)}},wx=class{constructor(e){this.apiClient=e||q.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)}},vx=class{constructor(e){this.apiClient=e||q.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)}},Cx=class{constructor(e){this.apiClient=e||q.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)}getConversationAccessattributes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationAccessattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/accessattributes","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)}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},{},{},{},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},{},{},{},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)}patchConversationSuggestion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSuggestion';if(n==null||n==="")throw'Missing the required parameter "suggestionId" when calling patchConversationSuggestion';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","PATCH",{conversationId:e,suggestionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}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)}postConversationsCallParticipantCommunicationSummaries(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationSummaries';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationSummaries';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsCallParticipantCommunicationSummaries';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/summaries","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}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)}postConversationsEmailMessagesDraftAttachmentsUploads(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsUploads';if(n==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessagesDraftAttachmentsUploads';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/uploads","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},{},{},{},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},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantCommunicationSummaries(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationSummaries';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationSummaries';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageParticipantCommunicationSummaries';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/summaries","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}postConversationsMessageParticipantTakeover(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantTakeover';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantTakeover';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/takeover","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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",{},{},{},{},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)}putConversationAccessattributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationAccessattributes';if(n==null)throw'Missing the required parameter "body" when calling putConversationAccessattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/accessattributes","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}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)}},Ax=class{constructor(e){this.apiClient=e||q.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)}},bx=class{constructor(e){this.apiClient=e||q.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)}},xx=class{constructor(e){this.apiClient=e||q.instance}getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredby(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "entityType" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredby';if(n==null||n==="")throw'Missing the required parameter "entityId" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredby';return this.apiClient.callApi("/api/v2/dependencies/type/{entityType}/id/{entityId}/connections/requiredby","GET",{entityType:e,entityId:n},{pageSize:i.pageSize,beforeSourceType:i.beforeSourceType,beforeSourceId:i.beforeSourceId,afterSourceType:i.afterSourceType,afterSourceId:i.afterSourceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredbycounts(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "entityType" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredbycounts';if(n==null||n==="")throw'Missing the required parameter "entityId" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredbycounts';return this.apiClient.callApi("/api/v2/dependencies/type/{entityType}/id/{entityId}/connections/requiredbycounts","GET",{entityType:e,entityId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getDependenciesTypeEntityTypeIdEntityIdConnectionsRequires(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "entityType" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequires';if(n==null||n==="")throw'Missing the required parameter "entityId" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequires';return this.apiClient.callApi("/api/v2/dependencies/type/{entityType}/id/{entityId}/connections/requires","GET",{entityType:e,entityId:n},{pageSize:i.pageSize,beforeSourceType:i.beforeSourceType,beforeSourceId:i.beforeSourceId,afterSourceType:i.afterSourceType,afterSourceId:i.afterSourceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},yx=class{constructor(e){this.apiClient=e||q.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)}},Px=class{constructor(e){this.apiClient=e||q.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)}},jx=class{constructor(e){this.apiClient=e||q.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)}},Sx=class{constructor(e){this.apiClient=e||q.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)}},Ox=class{constructor(e){this.apiClient=e||q.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)}getExternalcontactsGraphsClusterscan(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscan';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}","GET",{scanId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsGraphsClusterscanCluster(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscanCluster';if(n==null||n==="")throw'Missing the required parameter "clusterId" when calling getExternalcontactsGraphsClusterscanCluster';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/clusters/{clusterId}","GET",{scanId:e,clusterId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsGraphsClusterscanClusters(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscanClusters';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/clusters","GET",{scanId:e},{limit:n.limit,cursor:n.cursor,divisionIds:this.apiClient.buildCollectionParam(n.divisionIds,"multi"),"mergeInfo.status":n.mergeInfoStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsGraphsClusterscanStatistics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscanStatistics';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/statistics","GET",{scanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsGraphsClusterscans(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans","GET",{},{limit:e.limit,cursor:e.cursor,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsGraphsClusterscansLatest(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/latest","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsGraphsClusterscansLatestStatistics(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/latest/statistics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsGraphsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/settings","GET",{},{},{},{},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)}getExternalcontactsNotesExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "exportId" when calling getExternalcontactsNotesExport';return this.apiClient.callApi("/api/v2/externalcontacts/notes/exports/{exportId}","GET",{exportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsNotesExports(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/notes/exports","GET",{},{divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),after:e.after,pageSize:e.pageSize},{},{},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)}getExternalcontactsOrganizationsExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "exportId" when calling getExternalcontactsOrganizationsExport';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/exports/{exportId}","GET",{exportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsExports(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations/exports","GET",{},{divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),after:e.after,pageSize:e.pageSize},{},{},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)}getExternalcontactsRelationshipsExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "exportId" when calling getExternalcontactsRelationshipsExport';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/exports/{exportId}","GET",{exportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsRelationshipsExports(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/relationships/exports","GET",{},{divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}patchExternalcontactsContactNote(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling patchExternalcontactsContactNote';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","PATCH",{contactId:e,noteId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchExternalcontactsOrganization(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganization';if(n==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PATCH",{externalOrganizationId: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)}patchExternalcontactsOrganizationNote(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling patchExternalcontactsOrganizationNote';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","PATCH",{externalOrganizationId:e,noteId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchExternalcontactsRelationship(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling patchExternalcontactsRelationship';if(n==null)throw'Missing the required parameter "body" when calling patchExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PATCH",{relationshipId: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)}postExternalcontactsContactsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsSearch';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/search","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)}postExternalcontactsNotesExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsNotesExports';return this.apiClient.callApi("/api/v2/externalcontacts/notes/exports","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)}postExternalcontactsOrganizationsExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsExports';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/exports","POST",{},{},{},{},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)}postExternalcontactsRelationshipsExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsRelationshipsExports';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/exports","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)}putExternalcontactsGraphsClusterscanClusterMerge(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling putExternalcontactsGraphsClusterscanClusterMerge';if(n==null||n==="")throw'Missing the required parameter "clusterId" when calling putExternalcontactsGraphsClusterscanClusterMerge';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/clusters/{clusterId}/merge","PUT",{scanId:e,clusterId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsGraphsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putExternalcontactsGraphsSettings';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},Tx=class{constructor(e){this.apiClient=e||q.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)}getFaxFaxIdStatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "faxId" when calling getFaxFaxIdStatus';return this.apiClient.callApi("/api/v2/fax/{faxId}/status","GET",{faxId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},kx=class{constructor(e){this.apiClient=e||q.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)}},Mx=class{constructor(e){this.apiClient=e||q.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,c){if(c=c||{},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"],c.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)}},Ex=class{constructor(e){this.apiClient=e||q.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)}},qx=class{constructor(e){this.apiClient=e||q.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)}},_x=class{constructor(e){this.apiClient=e||q.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)}},Hx=class{constructor(e){this.apiClient=e||q.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)}},Wx=class{constructor(e){this.apiClient=e||q.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)}},Rx=class{constructor(e){this.apiClient=e||q.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)}},Ix=class{constructor(e){this.apiClient=e||q.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,credentialId:e.credentialId},{},{},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)}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)}},zx=class{constructor(e){this.apiClient=e||q.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)}postIntentsCustomerintentsBulkRetrieve(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntentsCustomerintentsBulkRetrieve';return this.apiClient.callApi("/api/v2/intents/customerintents/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Dx=class{constructor(e){this.apiClient=e||q.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)}getJourneyViewsEventdefinitionsExternal(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/external","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsEventdefinitionsExternalChanges(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/external/changes","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)}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)}putJourneyViewsEventdefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "eventDefinitionId" when calling putJourneyViewsEventdefinition';return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/{eventDefinitionId}","PUT",{eventDefinitionId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewsEventdefinitionActivate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "eventDefinitionId" when calling putJourneyViewsEventdefinitionActivate';return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/{eventDefinitionId}/activate","PUT",{eventDefinitionId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Gx=class{constructor(e){this.apiClient=e||q.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)}deleteKnowledgeSourceSynchronizationDeletion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling deleteKnowledgeSourceSynchronizationDeletion';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling deleteKnowledgeSourceSynchronizationDeletion';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling deleteKnowledgeSourceSynchronizationDeletion';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions/{fileId}","DELETE",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeSourceSynchronizationUpload(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling deleteKnowledgeSourceSynchronizationUpload';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling deleteKnowledgeSourceSynchronizationUpload';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling deleteKnowledgeSourceSynchronizationUpload';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads/{fileId}","DELETE",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}getKnowledgeKnowledgebaseDocumentsFeedback(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentsFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/feedback","GET",{knowledgeBaseId:e},{before:n.before,after:n.after,pageSize:n.pageSize,onlyCommented:n.onlyCommented,documentVersionId:n.documentVersionId,documentVariationId:n.documentVariationId,appType:n.appType,queryType:n.queryType,userId:n.userId,queueId:n.queueId,state:n.state},{},{},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)}getKnowledgeSourceSynchronizationDeletion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationDeletion';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationDeletion';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling getKnowledgeSourceSynchronizationDeletion';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions/{fileId}","GET",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeSourceSynchronizationDeletions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationDeletions';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationDeletions';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions","GET",{sourceId:e,synchronizationId:n},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronizationUpload(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationUpload';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationUpload';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling getKnowledgeSourceSynchronizationUpload';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads/{fileId}","GET",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeSourceSynchronizationUploads(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationUploads';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationUploads';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads","GET",{sourceId:e,synchronizationId:n},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},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)}postKnowledgeSourceSynchronizationDeletions(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationDeletions';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationDeletions';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeSourceSynchronizationDeletions';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions","POST",{sourceId:e,synchronizationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}},Nx=class{constructor(e){this.apiClient=e||q.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)}},Ux=class{constructor(e){this.apiClient=e||q.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)}},$x=class{constructor(e){this.apiClient=e||q.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",{},{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"),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)}},Bx=class{constructor(e){this.apiClient=e||q.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)}},Lx=class{constructor(e){this.apiClient=e||q.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)}},Fx=class{constructor(e){this.apiClient=e||q.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)}},Vx=class{constructor(e){this.apiClient=e||q.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)}},Jx=class{constructor(e){this.apiClient=e||q.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)}},Kx=class{constructor(e){this.apiClient=e||q.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)}},Zx=class{constructor(e){this.apiClient=e||q.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)}},Qx=class{constructor(e){this.apiClient=e||q.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)}},Yx=class{constructor(e){this.apiClient=e||q.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)}},Xx=class{constructor(e){this.apiClient=e||q.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)}},ey=class{constructor(e){this.apiClient=e||q.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)}},ny=class{constructor(e){this.apiClient=e||q.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"),timeZone:e.timeZone,dateExpiration:this.apiClient.buildCollectionParam(e.dateExpiration,"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,timeZone:e.timeZone,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)}postOutboundContactlistsBulkUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlistsBulkUpdate';return this.apiClient.callApi("/api/v2/outbound/contactlists/bulk/update","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)}},iy=class{constructor(e){this.apiClient=e||q.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)}},ty=class{constructor(e){this.apiClient=e||q.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)}},ay=class{constructor(e){this.apiClient=e||q.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)}getQualityPublishedformsEvaluationsDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "evaluationFormId" when calling getQualityPublishedformsEvaluationsDivisionview';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations/divisionviews/{evaluationFormId}","GET",{evaluationFormId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedformsEvaluationsDivisionviews(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getQualityPublishedformsEvaluationsDivisionviews';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations/divisionviews","GET",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,name:n.name,divisionId:n.divisionId,id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}getQualityPublishedformsSurveysDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "surveyFormId" when calling getQualityPublishedformsSurveysDivisionview';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys/divisionviews/{surveyFormId}","GET",{surveyFormId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedformsSurveysDivisionviews(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getQualityPublishedformsSurveysDivisionviews';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys/divisionviews","GET",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,name:n.name,divisionId:n.divisionId,id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},ry=class{constructor(e){this.apiClient=e||q.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)}},sy=class{constructor(e){this.apiClient=e||q.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)}getResponsemanagementLibrariesDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling getResponsemanagementLibrariesDivisionview';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/divisionviews/{libraryId}","GET",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getResponsemanagementLibrariesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries/divisionviews","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)}getResponsemanagementResponsesDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling getResponsemanagementResponsesDivisionview';return this.apiClient.callApi("/api/v2/responsemanagement/responses/divisionviews/{responseId}","GET",{responseId:e},{},{},{},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)}postResponsemanagementResponsesDivisionviewsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponsesDivisionviewsQuery';return this.apiClient.callApi("/api/v2/responsemanagement/responses/divisionviews/query","POST",{},{},{},{},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)}},oy=class{constructor(e){this.apiClient=e||q.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)}deleteRoutingEmailSettingEmailSettingId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailSettingId" when calling deleteRoutingEmailSettingEmailSettingId';return this.apiClient.callApi("/api/v2/routing/email/setting/{emailSettingId}","DELETE",{emailSettingId: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)}deleteRoutingSkillexpression(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "expressionId" when calling deleteRoutingSkillexpression';return this.apiClient.callApi("/api/v2/routing/skillexpressions/{expressionId}","DELETE",{expressionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingSkillexpressions(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skillexpressions","DELETE",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}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)}getRoutingEmailSetting(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setting","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSettingEmailSettingId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailSettingId" when calling getRoutingEmailSettingEmailSettingId';return this.apiClient.callApi("/api/v2/routing/email/setting/{emailSettingId}","GET",{emailSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}getRoutingSkillexpression(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "expressionId" when calling getRoutingSkillexpression';return this.apiClient.callApi("/api/v2/routing/skillexpressions/{expressionId}","GET",{expressionId:e},{includeArchived:n.includeArchived,format:n.format},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSkillexpressions(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skillexpressions","GET",{},{format:e.format,includeArchived:e.includeArchived,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSkillexpressionsQueueQueueId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingSkillexpressionsQueueQueueId';return this.apiClient.callApi("/api/v2/routing/skillexpressions/queue/{queueId}","GET",{queueId:e},{format:n.format,includeArchived:n.includeArchived},{},{},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)}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)}patchRoutingEmailSettingEmailSettingId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "emailSettingId" when calling patchRoutingEmailSettingEmailSettingId';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingEmailSettingEmailSettingId';return this.apiClient.callApi("/api/v2/routing/email/setting/{emailSettingId}","PATCH",{emailSettingId: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)}postRoutingEmailSetting(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingEmailSetting';return this.apiClient.callApi("/api/v2/routing/email/setting","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)}postRoutingSkillexpressionsValidate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSkillexpressionsValidate';return this.apiClient.callApi("/api/v2/routing/skillexpressions/validate","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)}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)}},ly=class{constructor(e){this.apiClient=e||q.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)}},uy=class{constructor(e){this.apiClient=e||q.instance}deleteConversationParticipantScreenmonitorsSession(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantScreenmonitorsSession';if(i==null||i==="")throw'Missing the required parameter "screenMonitoringId" when calling deleteConversationParticipantScreenmonitorsSession';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/screenmonitors/sessions/{screenMonitoringId}","DELETE",{conversationId:e,participantId:n,screenMonitoringId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserScreenmonitorsSession(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "screenMonitoringId" when calling deleteUserScreenmonitorsSession';return this.apiClient.callApi("/api/v2/users/{userId}/screenmonitors/sessions/{screenMonitoringId}","DELETE",{userId:e,screenMonitoringId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationParticipantScreenmonitorsSession(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantScreenmonitorsSession';if(i==null||i==="")throw'Missing the required parameter "screenMonitoringId" when calling getConversationParticipantScreenmonitorsSession';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/screenmonitors/sessions/{screenMonitoringId}","GET",{conversationId:e,participantId:n,screenMonitoringId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getScreenmonitorsSessionsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/screenmonitors/sessions/details","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScreenmonitorsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/screenmonitors/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScreenmonitorsUserSessions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getScreenmonitorsUserSessions';return this.apiClient.callApi("/api/v2/screenmonitors/users/{userId}/sessions","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserScreenmonitorsSession(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "screenMonitoringId" when calling getUserScreenmonitorsSession';return this.apiClient.callApi("/api/v2/users/{userId}/screenmonitors/sessions/{screenMonitoringId}","GET",{userId:e,screenMonitoringId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationParticipantScreenmonitorsSessions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantScreenmonitorsSessions';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantScreenmonitorsSessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/screenmonitors/sessions","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScreenmonitorsSessionsUsersDetails(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postScreenmonitorsSessionsUsersDetails';return this.apiClient.callApi("/api/v2/screenmonitors/sessions/users/details","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserScreenmonitorsSessions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserScreenmonitorsSessions';return this.apiClient.callApi("/api/v2/users/{userId}/screenmonitors/sessions","POST",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putScreenmonitorsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putScreenmonitorsSettings';return this.apiClient.callApi("/api/v2/screenmonitors/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},cy=class{constructor(e){this.apiClient=e||q.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)}},py=class{constructor(e){this.apiClient=e||q.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)}},dy=class{constructor(e){this.apiClient=e||q.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)}},hy=class{constructor(e){this.apiClient=e||q.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)}},gy=class{constructor(e){this.apiClient=e||q.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)}getSpeechandtextanalyticsProgramSettingsProcessing(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramSettingsProcessing';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/processing","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)}getSpeechandtextanalyticsProgramsSettingsProcessing(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/processing","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)}getSpeechandtextanalyticsTopicsGeneratedphrasesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsGeneratedphrasesJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/generatedphrases/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}patchSpeechandtextanalyticsProgramSettingsProcessing(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling patchSpeechandtextanalyticsProgramSettingsProcessing';if(n==null)throw'Missing the required parameter "body" when calling patchSpeechandtextanalyticsProgramSettingsProcessing';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/processing","PATCH",{programId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postSpeechandtextanalyticsTopicsGeneratedphrasesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsGeneratedphrasesJobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/generatedphrases/jobs","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)}},my=class{constructor(e){this.apiClient=e||q.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)}},fy=class{constructor(e){this.apiClient=e||q.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)}},wy=class{constructor(e){this.apiClient=e||q.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)}},vy=class{constructor(e){this.apiClient=e||q.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)}},Cy=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyOrganizationLinkTargetOrganizationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetOrganizationId" when calling deleteTelephonyOrganizationLinkTargetOrganizationId';return this.apiClient.callApi("/api/v2/telephony/organization/link/{targetOrganizationId}","DELETE",{targetOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}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)}getTelephonyNumbersRouting(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/numbers/routing","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,numberId:e.numberId,activeRoutingOrganizationId:e.activeRoutingOrganizationId,ownerOrganizationId:e.ownerOrganizationId,status:e.status},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyOrganizationLink(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/organization/link","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyOrganizationLinkRegions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/organization/link/regions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyPrefixes(e,n){if(n=n||{},e==null)throw'Missing the required parameter "type" when calling getTelephonyPrefixes';return this.apiClient.callApi("/api/v2/telephony/prefixes","GET",{},{before:n.before,after:n.after,pageSize:n.pageSize,prefix:n.prefix,type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyPrefixesSimulateCall(e,n){if(n=n||{},e==null)throw'Missing the required parameter "_number" when calling getTelephonyPrefixesSimulateCall';return this.apiClient.callApi("/api/v2/telephony/prefixes/simulate/call","GET",{},{number:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}patchTelephonyOrganizationLinkApproveRequestingOrganizationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "requestingOrganizationId" when calling patchTelephonyOrganizationLinkApproveRequestingOrganizationId';if(n==null)throw'Missing the required parameter "body" when calling patchTelephonyOrganizationLinkApproveRequestingOrganizationId';return this.apiClient.callApi("/api/v2/telephony/organization/link/approve/{requestingOrganizationId}","PATCH",{requestingOrganizationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyNumbersRouting(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyNumbersRouting';return this.apiClient.callApi("/api/v2/telephony/numbers/routing","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyNumbersRoutingAll(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyNumbersRoutingAll';return this.apiClient.callApi("/api/v2/telephony/numbers/routing/all","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyNumbersRoutingReset(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyNumbersRoutingReset';return this.apiClient.callApi("/api/v2/telephony/numbers/routing/reset","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyOrganizationLink(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyOrganizationLink';return this.apiClient.callApi("/api/v2/telephony/organization/link","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyPrefixesBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyPrefixesBulk';return this.apiClient.callApi("/api/v2/telephony/prefixes/bulk","POST",{},{},{},{},e,["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)}},Ay=class{constructor(e){this.apiClient=e||q.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)}getTelephonyProvidersEdgesTrunkbasesettingsSiteSiteId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesTrunkbasesettingsSiteSiteId';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/site/{siteId}","GET",{siteId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}postTelephonyProvidersEdgeOfflineconfiguration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeOfflineconfiguration';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeOfflineconfiguration';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/offlineconfiguration","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)}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)}postTelephonyProvidersEdgesTrunkbasesettingsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesTrunkbasesettingsSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesTrunksSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesTrunksSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/search","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)}},by=class{constructor(e){this.apiClient=e||q.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)}},xy=class{constructor(e){this.apiClient=e||q.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)}},yy=class{constructor(e){this.apiClient=e||q.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)}},Py=class{constructor(e){this.apiClient=e||q.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)}},jy=class{constructor(e){this.apiClient=e||q.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)}},Sy=class{constructor(e){this.apiClient=e||q.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)}deleteUsersMeVerifier(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "verifierId" when calling deleteUsersMeVerifier';return this.apiClient.callApi("/api/v2/users/me/verifiers/{verifierId}","DELETE",{verifierId: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)}getUsersMeVerifiers(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me/verifiers","GET",{},{},{},{},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)}postUsersMeVerifiersTotp(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersMeVerifiersTotp';return this.apiClient.callApi("/api/v2/users/me/verifiers/totp","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersMeVerifiersTotpVerifierId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "verifierId" when calling postUsersMeVerifiersTotpVerifierId';if(n==null)throw'Missing the required parameter "body" when calling postUsersMeVerifiersTotpVerifierId';return this.apiClient.callApi("/api/v2/users/me/verifiers/totp/{verifierId}","POST",{verifierId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUsersMeVerifiersWebauthnRegister(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersMeVerifiersWebauthnRegister';return this.apiClient.callApi("/api/v2/users/me/verifiers/webauthn/register","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersMeVerifiersWebauthnRegisterOptions(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me/verifiers/webauthn/register/options","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}putUsersMeVerifier(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "verifierId" when calling putUsersMeVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUsersMeVerifier';return this.apiClient.callApi("/api/v2/users/me/verifiers/{verifierId}","PUT",{verifierId: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)}},Oy=class{constructor(e){this.apiClient=e||q.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)}},Ty=class{constructor(e){this.apiClient=e||q.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)}},ky=class{constructor(e){this.apiClient=e||q.instance}deleteAgenticVirtualagentJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling deleteAgenticVirtualagentJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs","DELETE",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAgenticVirtualagent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","GET",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAgenticVirtualagentJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagentJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getAgenticVirtualagentJob';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs/{jobId}","GET",{virtualAgentId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAgenticVirtualagents(e){return e=e||{},this.apiClient.callApi("/api/v2/agentic/virtualagents","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)}patchAgenticVirtualagent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling patchAgenticVirtualagent';if(n==null)throw'Missing the required parameter "body" when calling patchAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","PATCH",{virtualAgentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAgenticVirtualagentVersionJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling postAgenticVirtualagentVersionJobs';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling postAgenticVirtualagentVersionJobs';if(i==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagentVersionJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/versions/{versionId}/jobs","POST",{virtualAgentId:e,versionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAgenticVirtualagents(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagents';return this.apiClient.callApi("/api/v2/agentic/virtualagents","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},My=class{constructor(e){this.apiClient=e||q.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)}},Ey=class{constructor(e){this.apiClient=e||q.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)}},qy=class{constructor(e){this.apiClient=e||q.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)}},_y=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementAdherenceAdjustment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "adjustmentId" when calling deleteWorkforcemanagementAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/{adjustmentId}","DELETE",{adjustmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}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)}deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(n==null||n==="")throw'Missing the required parameter "reasonCodeId" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/{reasonCodeId}","DELETE",{businessUnitId:e,reasonCodeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "ids" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","DELETE",{businessUnitId:e},{ids:this.apiClient.buildCollectionParam(n,"multi")},{},{},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)}deleteWorkforcemanagementBusinessunitSchedulebid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}","DELETE",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulebidGroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}","DELETE",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}getWorkforcemanagementAdherenceAdjustment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "adjustmentId" when calling getWorkforcemanagementAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/{adjustmentId}","GET",{adjustmentId:e},{},{},{},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)}getWorkforcemanagementAgentAdherenceAdjustment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceAdjustment';if(n==null||n==="")throw'Missing the required parameter "adjustmentId" when calling getWorkforcemanagementAgentAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/adjustments/{adjustmentId}","GET",{agentId:e,adjustmentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitActivityplanDeletionsJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplanJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/jobs","GET",{businessUnitId:e,activityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob(e,n,i,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(a==null||a==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(r==null||r==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/{sessionId}/users/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,occurrenceId:i,sessionId:a,jobId:r},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';if(a==null||a==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,occurrenceId:i,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';if(n==null)throw'Missing the required parameter "adjustmentIds" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/bulk","GET",{businessUnitId:e},{adjustmentIds:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query/jobs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(n==null||n==="")throw'Missing the required parameter "reasonCodeId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/{reasonCodeId}","GET",{businessUnitId:e,reasonCodeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "ids" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","GET",{businessUnitId:e},{ids:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/settings","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)}getWorkforcemanagementBusinessunitCapacityplanForecast(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanForecast';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanForecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/forecast","GET",{businessUnitId:e,capacityPlanId:n},{granularity:i.granularity},{},{},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)}getWorkforcemanagementBusinessunitDecisionmetricsJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitDecisionmetricsJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitDecisionmetricsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/decisionmetrics/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/forecast/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/historical/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/snapshot/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitOpportunity(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitOpportunity';if(n==null||n==="")throw'Missing the required parameter "opportunityId" when calling getWorkforcemanagementBusinessunitOpportunity';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/{opportunityId}","GET",{businessUnitId:e,opportunityId:n},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitSchedulebid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}","GET",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulebidGroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}","GET",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitSchedulebidGroupPreferences(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences","GET",{businessUnitId:e,bidId:n,bidGroupId:i},{forceDownloadService:a.forceDownloadService,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitSchedulebidGroupsSummary(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/summary","GET",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulebids(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids","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)}getWorkforcemanagementBusinessunitSchedulingpreferencesSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingpreferencesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulingpreferences/settings","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)}getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/granularityconversion/jobs/{jobId}","GET",{businessUnitId:e,timeOffLimitId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJobs';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/granularityconversion/jobs","GET",{businessUnitId:e,timeOffLimitId:n},{statuses:i.statuses},{},{},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,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},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},{earliestWeekDate:i.earliestWeekDate,latestWeekDate:i.latestWeekDate,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)}getWorkforcemanagementManagementunitDecisionmetrics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitDecisionmetrics';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/decisionmetrics","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}getWorkforcemanagementSchedulebidPreference(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidPreference';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids/{bidId}/preference","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementSchedulebidSchedulesets(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidSchedulesets';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids/{bidId}/schedulesets","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementSchedulebids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids","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)}getWorkforcemanagementSchedulingpreferencesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedulingpreferences/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}patchWorkforcemanagementAdherenceAdjustment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "adjustmentId" when calling patchWorkforcemanagementAdherenceAdjustment';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/{adjustmentId}","PATCH",{adjustmentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementAgentAdherenceAdjustment(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceAdjustment';if(n==null||n==="")throw'Missing the required parameter "adjustmentId" when calling patchWorkforcemanagementAgentAdherenceAdjustment';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/adjustments/{adjustmentId}","PATCH",{agentId:e,adjustmentId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}patchWorkforcemanagementAgentUnavailabletimes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentUnavailabletimes';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentUnavailabletimes';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes","PATCH",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementBusinessunitActivitycodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycodesBulk';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivitycodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/bulk","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/bulk","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(n==null||n==="")throw'Missing the required parameter "reasonCodeId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/{reasonCodeId}","PATCH",{businessUnitId:e,reasonCodeId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/settings","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementBusinessunitOpportunity(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitOpportunity';if(n==null||n==="")throw'Missing the required parameter "opportunityId" when calling patchWorkforcemanagementBusinessunitOpportunity';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitOpportunity';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/{opportunityId}","PATCH",{businessUnitId:e,opportunityId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}patchWorkforcemanagementBusinessunitSchedulebid(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebid';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}","PATCH",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulebidGroup(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}","PATCH",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences","PATCH",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.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)}patchWorkforcemanagementBusinessunitSchedulingpreferencesSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingpreferencesSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulingpreferencesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulingpreferences/settings","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementSchedulingpreferences(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementSchedulingpreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulingpreferences","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}postWorkforcemanagementAdherenceAdjustments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceAdjustments';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceAdjustmentsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceAdjustmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/query","POST",{},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}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)}postWorkforcemanagementAgentAdherenceAdjustmentsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceAdjustmentsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceAdjustmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/adjustments/query","POST",{agentId:e},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postWorkforcemanagementAgentSchedulingpreferencesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentSchedulingpreferencesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentSchedulingpreferencesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/schedulingpreferences/query","POST",{agentId:e},{},{},{},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)}postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkAdd';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/opportunities/enrollments/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkStatusesUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkStatusesUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/opportunities/enrollments/bulk/statuses/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentsOpportunitiesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsOpportunitiesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/opportunities/query","POST",{},{expand:n.expand,forceDownloadService:n.forceDownloadService},{},{},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)}postWorkforcemanagementBusinessunitActivityplanDeletionsJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs(e,n,i,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(a==null||a==="")throw'Missing the required parameter "sessionId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(r==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/{sessionId}/users/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n,occurrenceId:i,sessionId:a},{},{},{},r,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n,occurrenceId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query","POST",{businessUnitId:e},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","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)}postWorkforcemanagementBusinessunitDecisionmetricsUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdate';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/decisionmetrics/update","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitDecisionmetricsUpdateUploadurl(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdateUploadurl';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdateUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/decisionmetrics/update/uploadurl","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)}postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/forecast/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/historical/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/snapshot/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkAdd(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkAdd';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkAdd';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/add","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkPublish(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkPublish';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkPublish';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/publish","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkRemove';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkRemove';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/remove","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkStatusesUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkStatusesUpdate';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkStatusesUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/statuses/update","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsBulkStatusesUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsBulkStatusesUpdate';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsBulkStatusesUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/enrollments/bulk/statuses/update","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/enrollments/query","POST",{businessUnitId:e},{expand:i.expand,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesExternalactivitiesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesExternalactivitiesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesExternalactivitiesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/externalactivities/query","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/query","POST",{businessUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},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)}postWorkforcemanagementBusinessunitSchedulebidCopy(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/copy","POST",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitSchedulebidGroups(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups","POST",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitSchedulebids(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebids';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/effectiveschedulesets","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)}postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/granularityconversion","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitValuesImport(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImport';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImport';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values/import","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values/import/uploadurl","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitValuesQuery(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesQuery';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values/query","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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},{includeOnly:a.includeOnly},{},{},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)}postWorkforcemanagementSchedulingpreferencesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementSchedulingpreferencesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulingpreferences/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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",{},{includeOnly:n.includeOnly},{},{},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)}postWorkforcemanagementUsersActivity(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementUsersActivity';return this.apiClient.callApi("/api/v2/workforcemanagement/users/activity","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)}putWorkforcemanagementSchedulebidPreference(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling putWorkforcemanagementSchedulebidPreference';if(n==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementSchedulebidPreference';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids/{bidId}/preference","PUT",{bidId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Hy=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=nx,this.AgentAssistantsApi=ix,this.AgentCopilotApi=tx,this.AgentUIApi=ax,this.AlertingApi=rx,this.AnalyticsApi=sx,this.ArchitectApi=ox,this.AssistantCopilotVariationsApi=lx,this.AuditApi=ux,this.AuthorizationApi=cx,this.BackgroundAssistantApi=px,this.BillingApi=dx,this.BusinessRulesApi=hx,this.CarrierServicesApi=gx,this.CaseManagementApi=mx,this.ChatApi=fx,this.CoachingApi=wx,this.ContentManagementApi=vx,this.ConversationsApi=Cx,this.DataExtensionsApi=Ax,this.DataPrivacyApi=bx,this.DependenciesApi=xx,this.DownloadsApi=yx,this.EmailsApi=Px,this.EmployeeEngagementApi=jx,this.EventsApi=Sx,this.ExternalContactsApi=Ox,this.FaxApi=Tx,this.FlowsApi=kx,this.GamificationApi=Mx,this.GeneralDataProtectionRegulationApi=Ex,this.GeolocationApi=qx,this.GreetingsApi=_x,this.GroupsApi=Hx,this.IdentityProviderApi=Wx,this.InfrastructureAsCodeApi=Rx,this.IntegrationsApi=Ix,this.IntentsApi=zx,this.JourneyApi=Dx,this.KnowledgeApi=Gx,this.LanguageUnderstandingApi=Nx,this.LanguagesApi=Ux,this.LearningApi=$x,this.LicenseApi=Bx,this.LocationsApi=Lx,this.LogCaptureApi=Fx,this.MessagingApi=Vx,this.MobileDevicesApi=Jx,this.NotificationsApi=Kx,this.OAuthApi=Zx,this.ObjectsApi=Qx,this.OperationalEventsApi=Yx,this.OrganizationApi=Xx,this.OrganizationAuthorizationApi=ey,this.OutboundApi=ny,this.PresenceApi=iy,this.ProcessAutomationApi=ty,this.QualityApi=ay,this.RecordingApi=ry,this.ResponseManagementApi=sy,this.RoutingApi=oy,this.SCIMApi=ly,this.ScreenMonitoringApi=uy,this.ScriptsApi=cy,this.SearchApi=py,this.SettingsApi=dy,this.SocialMediaApi=hy,this.SpeechTextAnalyticsApi=gy,this.StationsApi=my,this.SuggestApi=fy,this.TaskManagementApi=wy,this.TeamsApi=vy,this.TelephonyApi=Cy,this.TelephonyProvidersEdgeApi=Ay,this.TextbotsApi=by,this.TokensApi=xy,this.UploadsApi=yy,this.UsageApi=Py,this.UserRecordingsApi=jy,this.UsersApi=Sy,this.UsersRulesApi=Oy,this.UtilitiesApi=Ty,this.VirtualAgentsApi=ky,this.VoicemailApi=My,this.WebDeploymentsApi=Ey,this.WebMessagingApi=qy,this.WorkforceManagementApi=_y,this.PureCloudRegionHosts=Wne,this.AbstractHttpClient=Au,this.DefaultHttpClient=mh,this.HttpRequestOptions=Ta}},Ine=new Hy;c1.exports=Ine});var te={};Dh(te,{BRAND:()=>_z,DIRTY:()=>qa,EMPTY_PATH:()=>pz,INVALID:()=>Y,NEVER:()=>fD,OK:()=>In,ParseStatus:()=>kn,Schema:()=>re,ZodAny:()=>ea,ZodArray:()=>It,ZodBigInt:()=>Ha,ZodBoolean:()=>Wa,ZodBranded:()=>ro,ZodCatch:()=>Fa,ZodDate:()=>Ra,ZodDefault:()=>La,ZodDiscriminatedUnion:()=>ku,ZodEffects:()=>zi,ZodEnum:()=>$a,ZodError:()=>ei,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Eu,ZodIntersection:()=>Ga,ZodIssueCode:()=>k,ZodLazy:()=>Na,ZodLiteral:()=>Ua,ZodMap:()=>Br,ZodNaN:()=>Fr,ZodNativeEnum:()=>Ba,ZodNever:()=>Ki,ZodNull:()=>za,ZodNullable:()=>ft,ZodNumber:()=>_a,ZodObject:()=>ni,ZodOptional:()=>Ri,ZodParsedType:()=>I,ZodPipeline:()=>so,ZodPromise:()=>na,ZodReadonly:()=>Va,ZodRecord:()=>Mu,ZodSchema:()=>re,ZodSet:()=>Lr,ZodString:()=>Xt,ZodSymbol:()=>Ur,ZodTransformer:()=>zi,ZodTuple:()=>mt,ZodType:()=>re,ZodUndefined:()=>Ia,ZodUnion:()=>Da,ZodUnknown:()=>Rt,ZodVoid:()=>$r,addIssueToContext:()=>H,any:()=>Uz,array:()=>Fz,bigint:()=>Iz,boolean:()=>rP,coerce:()=>mD,custom:()=>iP,date:()=>zz,datetimeRegex:()=>eP,defaultErrorMap:()=>Ht,discriminatedUnion:()=>Kz,effect:()=>oD,enum:()=>aD,function:()=>nD,getErrorMap:()=>Dr,getParsedType:()=>gt,instanceof:()=>Wz,intersection:()=>Zz,isAborted:()=>Ou,isAsync:()=>Gr,isDirty:()=>Tu,isValid:()=>Yt,late:()=>Hz,lazy:()=>iD,literal:()=>tD,makeIssue:()=>ao,map:()=>Xz,nan:()=>Rz,nativeEnum:()=>rD,never:()=>Bz,null:()=>Nz,nullable:()=>uD,number:()=>aP,object:()=>$h,objectUtil:()=>Gh,oboolean:()=>gD,onumber:()=>hD,optional:()=>lD,ostring:()=>dD,pipeline:()=>pD,preprocess:()=>cD,promise:()=>sD,quotelessJson:()=>lz,record:()=>Yz,set:()=>eD,setErrorMap:()=>cz,strictObject:()=>Vz,string:()=>tP,symbol:()=>Dz,transformer:()=>oD,tuple:()=>Qz,undefined:()=>Gz,union:()=>Jz,unknown:()=>$z,util:()=>pe,void:()=>Lz});var pe;(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})(pe||(pe={}));var Gh;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Gh||(Gh={}));var I=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),gt=t=>{switch(typeof t){case"undefined":return I.undefined;case"string":return I.string;case"number":return Number.isNaN(t)?I.nan:I.number;case"boolean":return I.boolean;case"function":return I.function;case"bigint":return I.bigint;case"symbol":return I.symbol;case"object":return Array.isArray(t)?I.array:t===null?I.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?I.promise:typeof Map<"u"&&t instanceof Map?I.map:typeof Set<"u"&&t instanceof Set?I.set:typeof Date<"u"&&t instanceof Date?I.date:I.object;default:return I.unknown}};var k=pe.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"]),lz=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ei=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()}};ei.create=t=>new ei(t);var uz=(t,e)=>{let n;switch(t.code){case k.invalid_type:t.received===I.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case k.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,pe.jsonStringifyReplacer)}`;break;case k.unrecognized_keys:n=`Unrecognized key(s) in object: ${pe.joinValues(t.keys,", ")}`;break;case k.invalid_union:n="Invalid input";break;case k.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${pe.joinValues(t.options)}`;break;case k.invalid_enum_value:n=`Invalid enum value. Expected ${pe.joinValues(t.options)}, received '${t.received}'`;break;case k.invalid_arguments:n="Invalid function arguments";break;case k.invalid_return_type:n="Invalid function return type";break;case k.invalid_date:n="Invalid date";break;case k.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}"`:pe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case k.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 k.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 k.custom:n="Invalid input";break;case k.invalid_intersection_types:n="Intersection results could not be merged";break;case k.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case k.not_finite:n="Number must be finite";break;default:n=e.defaultError,pe.assertNever(t)}return{message:n}},Ht=uz;var Ky=Ht;function cz(t){Ky=t}function Dr(){return Ky}var ao=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(c=>!!c).slice().reverse();for(let c of l)o=c(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},pz=[];function H(t,e){let n=Dr(),i=ao({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Ht?void 0:Ht].filter(a=>!!a)});t.common.issues.push(i)}var kn=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 Y;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 Y;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}}},Y=Object.freeze({status:"aborted"}),qa=t=>({status:"dirty",value:t}),In=t=>({status:"valid",value:t}),Ou=t=>t.status==="aborted",Tu=t=>t.status==="dirty",Yt=t=>t.status==="valid",Gr=t=>typeof Promise<"u"&&t instanceof Promise;var $;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})($||($={}));var Ii=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}},Zy=(t,e)=>{if(Yt(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 ei(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 re=class{get description(){return this._def.description}_getType(e){return gt(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:gt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new kn,ctx:{common:e.parent.common,data:e.data,parsedType:gt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(Gr(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:gt(e)},a=this._parseSync({data:e,path:i.path,parent:i});return Zy(i,a)}"~validate"(e){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:gt(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:n});return Yt(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=>Yt(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:gt(e)},a=this._parse({data:e,path:i.path,parent:i}),r=await(Gr(a)?a:Promise.resolve(a));return Zy(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:k.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 zi({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 Ri.create(this,this._def)}nullable(){return ft.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return It.create(this)}promise(){return na.create(this,this._def)}or(e){return Da.create([this,e],this._def)}and(e){return Ga.create(this,e,this._def)}transform(e){return new zi({...ie(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let n=typeof e=="function"?e:()=>e;return new La({...ie(this._def),innerType:this,defaultValue:n,typeName:E.ZodDefault})}brand(){return new ro({typeName:E.ZodBranded,type:this,...ie(this._def)})}catch(e){let n=typeof e=="function"?e:()=>e;return new Fa({...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 so.create(this,e)}readonly(){return Va.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},dz=/^c[^\s-]{8,}$/i,hz=/^[0-9a-z]+$/,gz=/^[0-9A-HJKMNP-TV-Z]{26}$/i,mz=/^[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,fz=/^[a-z0-9_-]{21}$/i,wz=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,vz=/^[-+]?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)?)??$/,Cz=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Az="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",Nh,bz=/^(?:(?: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])$/,xz=/^(?:(?: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])$/,yz=/^(([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]))$/,Pz=/^(([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])$/,jz=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Sz=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Yy="((\\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])))",Oz=new RegExp(`^${Yy}$`);function Xy(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 Tz(t){return new RegExp(`^${Xy(t)}$`)}function eP(t){let e=`${Yy}T${Xy(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 kz(t,e){return!!((e==="v4"||!e)&&bz.test(t)||(e==="v6"||!e)&&yz.test(t))}function Mz(t,e){if(!wz.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 Ez(t,e){return!!((e==="v4"||!e)&&xz.test(t)||(e==="v6"||!e)&&Pz.test(t))}var Xt=class t extends re{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==I.string){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_type,expected:I.string,received:r.parsedType}),Y}let i=new kn,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),H(a,{code:k.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:k.invalid_string,...$.errToObj(i)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...$.errToObj(e)})}url(e){return this._addCheck({kind:"url",...$.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...$.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...$.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...$.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...$.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...$.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...$.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...$.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...$.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...$.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...$.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...$.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,...$.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,...$.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...$.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...$.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...$.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...$.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...$.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...$.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...$.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...$.errToObj(n)})}nonempty(e){return this.min(1,$.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 Xt({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ie(t)});function qz(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 _a=class t extends re{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)!==I.number){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_type,expected:I.number,received:r.parsedType}),Y}let i,a=new kn;for(let r of this._def.checks)r.kind==="int"?pe.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),H(i,{code:k.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),H(i,{code:k.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?qz(e.data,r.value)!==0&&(i=this._getOrReturnCtx(e,i),H(i,{code:k.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),H(i,{code:k.not_finite,message:r.message}),a.dirty()):pe.assertNever(r);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,$.toString(n))}gt(e,n){return this.setLimit("min",e,!1,$.toString(n))}lte(e,n){return this.setLimit("max",e,!0,$.toString(n))}lt(e,n){return this.setLimit("max",e,!1,$.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:$.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:$.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:$.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:$.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$.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"&&pe.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 _a({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ie(t)});var Ha=class t extends re{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)!==I.bigint)return this._getInvalidInput(e);let i,a=new kn;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),H(i,{code:k.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),H(i,{code:k.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):pe.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return H(n,{code:k.invalid_type,expected:I.bigint,received:n.parsedType}),Y}gte(e,n){return this.setLimit("min",e,!0,$.toString(n))}gt(e,n){return this.setLimit("min",e,!1,$.toString(n))}lte(e,n){return this.setLimit("max",e,!0,$.toString(n))}lt(e,n){return this.setLimit("max",e,!1,$.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:$.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:$.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:$.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 Ha({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ie(t)});var Wa=class extends re{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==I.boolean){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.boolean,received:i.parsedType}),Y}return In(e.data)}};Wa.create=t=>new Wa({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ie(t)});var Ra=class t extends re{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==I.date){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_type,expected:I.date,received:r.parsedType}),Y}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_date}),Y}let i=new kn,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),H(a,{code:k.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):pe.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:$.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:$.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 Ra({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ie(t)});var Ur=class extends re{_parse(e){if(this._getType(e)!==I.symbol){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.symbol,received:i.parsedType}),Y}return In(e.data)}};Ur.create=t=>new Ur({typeName:E.ZodSymbol,...ie(t)});var Ia=class extends re{_parse(e){if(this._getType(e)!==I.undefined){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.undefined,received:i.parsedType}),Y}return In(e.data)}};Ia.create=t=>new Ia({typeName:E.ZodUndefined,...ie(t)});var za=class extends re{_parse(e){if(this._getType(e)!==I.null){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.null,received:i.parsedType}),Y}return In(e.data)}};za.create=t=>new za({typeName:E.ZodNull,...ie(t)});var ea=class extends re{constructor(){super(...arguments),this._any=!0}_parse(e){return In(e.data)}};ea.create=t=>new ea({typeName:E.ZodAny,...ie(t)});var Rt=class extends re{constructor(){super(...arguments),this._unknown=!0}_parse(e){return In(e.data)}};Rt.create=t=>new Rt({typeName:E.ZodUnknown,...ie(t)});var Ki=class extends re{_parse(e){let n=this._getOrReturnCtx(e);return H(n,{code:k.invalid_type,expected:I.never,received:n.parsedType}),Y}};Ki.create=t=>new Ki({typeName:E.ZodNever,...ie(t)});var $r=class extends re{_parse(e){if(this._getType(e)!==I.undefined){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.void,received:i.parsedType}),Y}return In(e.data)}};$r.create=t=>new $r({typeName:E.ZodVoid,...ie(t)});var It=class t extends re{_parse(e){let{ctx:n,status:i}=this._processInputParams(e),a=this._def;if(n.parsedType!==I.array)return H(n,{code:k.invalid_type,expected:I.array,received:n.parsedType}),Y;if(a.exactLength!==null){let s=n.data.length>a.exactLength.value,o=n.data.lengtha.maxLength.value&&(H(n,{code:k.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 Ii(n,s,n.path,o)))).then(s=>kn.mergeArray(i,s));let r=[...n.data].map((s,o)=>a.type._parseSync(new Ii(n,s,n.path,o)));return kn.mergeArray(i,r)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:$.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:$.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:$.toString(n)}})}nonempty(e){return this.min(1,e)}};It.create=(t,e)=>new It({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ie(e)});function Nr(t){if(t instanceof ni){let e={};for(let n in t.shape){let i=t.shape[n];e[n]=Ri.create(Nr(i))}return new ni({...t._def,shape:()=>e})}else return t instanceof It?new It({...t._def,type:Nr(t.element)}):t instanceof Ri?Ri.create(Nr(t.unwrap())):t instanceof ft?ft.create(Nr(t.unwrap())):t instanceof mt?mt.create(t.items.map(e=>Nr(e))):t}var ni=class t extends re{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=pe.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==I.object){let c=this._getOrReturnCtx(e);return H(c,{code:k.invalid_type,expected:I.object,received:c.parsedType}),Y}let{status:i,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ki&&this._def.unknownKeys==="strip"))for(let c in a.data)s.includes(c)||o.push(c);let l=[];for(let c of s){let u=r[c],p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ii(a,p,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof Ki){let c=this._def.unknownKeys;if(c==="passthrough")for(let u of o)l.push({key:{status:"valid",value:u},value:{status:"valid",value:a.data[u]}});else if(c==="strict")o.length>0&&(H(a,{code:k.unrecognized_keys,keys:o}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let u of o){let p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ii(a,p,a.path,u)),alwaysSet:u in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let c=[];for(let u of l){let p=await u.key,h=await u.value;c.push({key:p,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>kn.mergeObjectSync(i,c)):kn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return $.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:$.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 pe.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 pe.objectKeys(this.shape))e[i]||(n[i]=this.shape[i]);return new t({...this._def,shape:()=>n})}deepPartial(){return Nr(this)}partial(e){let n={};for(let i of pe.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 pe.objectKeys(this.shape))if(e&&!e[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof Ri;)r=r._def.innerType;n[i]=r}return new t({...this._def,shape:()=>n})}keyof(){return nP(pe.objectKeys(this.shape))}};ni.create=(t,e)=>new ni({shape:()=>t,unknownKeys:"strip",catchall:Ki.create(),typeName:E.ZodObject,...ie(e)});ni.strictCreate=(t,e)=>new ni({shape:()=>t,unknownKeys:"strict",catchall:Ki.create(),typeName:E.ZodObject,...ie(e)});ni.lazycreate=(t,e)=>new ni({shape:t,unknownKeys:"strip",catchall:Ki.create(),typeName:E.ZodObject,...ie(e)});var Da=class extends re{_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 ei(o.ctx.common.issues));return H(n,{code:k.invalid_union,unionErrors:s}),Y}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 c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!r&&(r={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new ei(l));return H(n,{code:k.invalid_union,unionErrors:o}),Y}}get options(){return this._def.options}};Da.create=(t,e)=>new Da({options:t,typeName:E.ZodUnion,...ie(e)});var Wt=t=>t instanceof Na?Wt(t.schema):t instanceof zi?Wt(t.innerType()):t instanceof Ua?[t.value]:t instanceof $a?t.options:t instanceof Ba?pe.objectValues(t.enum):t instanceof La?Wt(t._def.innerType):t instanceof Ia?[void 0]:t instanceof za?[null]:t instanceof Ri?[void 0,...Wt(t.unwrap())]:t instanceof ft?[null,...Wt(t.unwrap())]:t instanceof ro||t instanceof Va?Wt(t.unwrap()):t instanceof Fa?Wt(t._def.innerType):[],ku=class t extends re{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==I.object)return H(n,{code:k.invalid_type,expected:I.object,received:n.parsedType}),Y;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}):(H(n,{code:k.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Y)}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=Wt(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 Uh(t,e){let n=gt(t),i=gt(e);if(t===e)return{valid:!0,data:t};if(n===I.object&&i===I.object){let a=pe.objectKeys(e),r=pe.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};Object.prototype.hasOwnProperty.call(s,"__proto__")&&delete s.__proto__;for(let o of r){if(o==="__proto__")continue;let l=Uh(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===I.array&&i===I.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(Ou(r)||Ou(s))return Y;let o=Uh(r.value,s.value);return o.valid?((Tu(r)||Tu(s))&&n.dirty(),{status:n.value,value:o.data}):(H(i,{code:k.invalid_intersection_types}),Y)};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}))}};Ga.create=(t,e,n)=>new Ga({left:t,right:e,typeName:E.ZodIntersection,...ie(n)});var mt=class t extends re{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==I.array)return H(i,{code:k.invalid_type,expected:I.array,received:i.parsedType}),Y;if(i.data.lengththis._def.items.length&&(H(i,{code:k.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 Ii(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(r).then(s=>kn.mergeArray(n,s)):kn.mergeArray(n,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};mt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new mt({items:t,typeName:E.ZodTuple,rest:null,...ie(e)})};var Mu=class t extends re{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!==I.object)return H(i,{code:k.invalid_type,expected:I.object,received:i.parsedType}),Y;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in i.data)a.push({key:r._parse(new Ii(i,o,i.path,o)),value:s._parse(new Ii(i,i.data[o],i.path,o)),alwaysSet:o in i.data});return i.common.async?kn.mergeObjectAsync(n,a):kn.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(e,n,i){return n instanceof re?new t({keyType:e,valueType:n,typeName:E.ZodRecord,...ie(i)}):new t({keyType:Xt.create(),valueType:e,typeName:E.ZodRecord,...ie(n)})}},Br=class extends re{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!==I.map)return H(i,{code:k.invalid_type,expected:I.map,received:i.parsedType}),Y;let a=this._def.keyType,r=this._def.valueType,s=[...i.data.entries()].map(([o,l],c)=>({key:a._parse(new Ii(i,o,i.path,[c,"key"])),value:r._parse(new Ii(i,l,i.path,[c,"value"]))}));if(i.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Y;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),o.set(c.value,u.value)}return{status:n.value,value:o}})}else{let o=new Map;for(let l of s){let c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Y;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),o.set(c.value,u.value)}return{status:n.value,value:o}}}};Br.create=(t,e,n)=>new Br({valueType:e,keyType:t,typeName:E.ZodMap,...ie(n)});var Lr=class t extends re{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==I.set)return H(i,{code:k.invalid_type,expected:I.set,received:i.parsedType}),Y;let a=this._def;a.minSize!==null&&i.data.sizea.maxSize.value&&(H(i,{code:k.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 c=new Set;for(let u of l){if(u.status==="aborted")return Y;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}let o=[...i.data.values()].map((l,c)=>r._parse(new Ii(i,l,i.path,c)));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:$.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:$.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};Lr.create=(t,e)=>new Lr({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ie(e)});var Eu=class t extends re{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==I.function)return H(n,{code:k.invalid_type,expected:I.function,received:n.parsedType}),Y;function i(o,l){return ao({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Dr(),Ht].filter(c=>!!c),issueData:{code:k.invalid_arguments,argumentsError:l}})}function a(o,l){return ao({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Dr(),Ht].filter(c=>!!c),issueData:{code:k.invalid_return_type,returnTypeError:l}})}let r={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof na){let o=this;return In(async function(...l){let c=new ei([]),u=await o._def.args.parseAsync(l,r).catch(g=>{throw c.addIssue(i(l,g)),c}),p=await Reflect.apply(s,this,u);return await o._def.returns._def.type.parseAsync(p,r).catch(g=>{throw c.addIssue(a(p,g)),c})})}else{let o=this;return In(function(...l){let c=o._def.args.safeParse(l,r);if(!c.success)throw new ei([i(l,c.error)]);let u=Reflect.apply(s,this,c.data),p=o._def.returns.safeParse(u,r);if(!p.success)throw new ei([a(u,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:mt.create(e).rest(Rt.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||mt.create([]).rest(Rt.create()),returns:n||Rt.create(),typeName:E.ZodFunction,...ie(i)})}},Na=class extends re{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})}};Na.create=(t,e)=>new Na({getter:t,typeName:E.ZodLazy,...ie(e)});var Ua=class extends re{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return H(n,{received:n.data,code:k.invalid_literal,expected:this._def.value}),Y}return{status:"valid",value:e.data}}get value(){return this._def.value}};Ua.create=(t,e)=>new Ua({value:t,typeName:E.ZodLiteral,...ie(e)});function nP(t,e){return new $a({values:t,typeName:E.ZodEnum,...ie(e)})}var $a=class t extends re{_parse(e){if(typeof e.data!="string"){let n=this._getOrReturnCtx(e),i=this._def.values;return H(n,{expected:pe.joinValues(i),received:n.parsedType,code:k.invalid_type}),Y}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 H(n,{received:n.data,code:k.invalid_enum_value,options:i}),Y}return In(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})}};$a.create=nP;var Ba=class extends re{_parse(e){let n=pe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==I.string&&i.parsedType!==I.number){let a=pe.objectValues(n);return H(i,{expected:pe.joinValues(a),received:i.parsedType,code:k.invalid_type}),Y}if(this._cache||(this._cache=new Set(pe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=pe.objectValues(n);return H(i,{received:i.data,code:k.invalid_enum_value,options:a}),Y}return In(e.data)}get enum(){return this._def.values}};Ba.create=(t,e)=>new Ba({values:t,typeName:E.ZodNativeEnum,...ie(e)});var na=class extends re{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==I.promise&&n.common.async===!1)return H(n,{code:k.invalid_type,expected:I.promise,received:n.parsedType}),Y;let i=n.parsedType===I.promise?n.data:Promise.resolve(n.data);return In(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}};na.create=(t,e)=>new na({type:t,typeName:E.ZodPromise,...ie(e)});var zi=class extends re{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=>{H(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 Y;let l=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return l.status==="aborted"?Y:l.status==="dirty"?qa(l.value):n.value==="dirty"?qa(l.value):l});{if(n.value==="aborted")return Y;let o=this._def.schema._parseSync({data:s,path:i.path,parent:i});return o.status==="aborted"?Y:o.status==="dirty"?qa(o.value):n.value==="dirty"?qa(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"?Y:(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"?Y:(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(!Yt(s))return Y;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=>Yt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:n.value,value:o})):Y);pe.assertNever(a)}};zi.create=(t,e,n)=>new zi({schema:t,typeName:E.ZodEffects,effect:e,...ie(n)});zi.createWithPreprocess=(t,e,n)=>new zi({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ie(n)});var Ri=class extends re{_parse(e){return this._getType(e)===I.undefined?In(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ri.create=(t,e)=>new Ri({innerType:t,typeName:E.ZodOptional,...ie(e)});var ft=class extends re{_parse(e){return this._getType(e)===I.null?In(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ft.create=(t,e)=>new ft({innerType:t,typeName:E.ZodNullable,...ie(e)});var La=class extends re{_parse(e){let{ctx:n}=this._processInputParams(e),i=n.data;return n.parsedType===I.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};La.create=(t,e)=>new La({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ie(e)});var Fa=class extends re{_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 Gr(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ei(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ei(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Fa.create=(t,e)=>new Fa({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ie(e)});var Fr=class extends re{_parse(e){if(this._getType(e)!==I.nan){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.nan,received:i.parsedType}),Y}return{status:"valid",value:e.data}}};Fr.create=t=>new Fr({typeName:E.ZodNaN,...ie(t)});var _z=Symbol("zod_brand"),ro=class extends re{_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}},so=class t extends re{_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"?Y:r.status==="dirty"?(n.dirty(),qa(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"?Y: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})}},Va=class extends re{_parse(e){let n=this._def.innerType._parse(e),i=a=>(Yt(a)&&(a.value=Object.freeze(a.value)),a);return Gr(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}};Va.create=(t,e)=>new Va({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 iP(t,e={},n){return t?ea.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})}}):ea.create()}var Hz={object:ni.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}`})=>iP(n=>n instanceof t,e),tP=Xt.create,aP=_a.create,Rz=Fr.create,Iz=Ha.create,rP=Wa.create,zz=Ra.create,Dz=Ur.create,Gz=Ia.create,Nz=za.create,Uz=ea.create,$z=Rt.create,Bz=Ki.create,Lz=$r.create,Fz=It.create,$h=ni.create,Vz=ni.strictCreate,Jz=Da.create,Kz=ku.create,Zz=Ga.create,Qz=mt.create,Yz=Mu.create,Xz=Br.create,eD=Lr.create,nD=Eu.create,iD=Na.create,tD=Ua.create,aD=$a.create,rD=Ba.create,sD=na.create,oD=zi.create,lD=Ri.create,uD=ft.create,cD=zi.createWithPreprocess,pD=so.create,dD=()=>tP().optional(),hD=()=>aP().optional(),gD=()=>rP().optional(),mD={string:(t=>Xt.create({...t,coerce:!0})),number:(t=>_a.create({...t,coerce:!0})),boolean:(t=>Wa.create({...t,coerce:!0})),bigint:(t=>Ha.create({...t,coerce:!0})),date:(t=>Ra.create({...t,coerce:!0}))};var fD=Y;var X={};Dh(X,{BIGINT_FORMAT_RANGES:()=>Wu,CONSTANT_CATCH:()=>xP,Class:()=>Fh,NUMBER_FORMAT_RANGES:()=>lo,aborted:()=>Zi,allowsEval:()=>Qh,assert:()=>yD,assertEqual:()=>vD,assertIs:()=>bD,assertNever:()=>xD,assertNotEqual:()=>CD,assignProp:()=>ii,attachSchema:()=>Iu,base64ToUint8Array:()=>AP,base64urlToUint8Array:()=>WD,cached:()=>Zr,captureStackTrace:()=>_u,cleanEnum:()=>HD,cleanRegex:()=>oo,clone:()=>ti,cloneDef:()=>SD,codePointLength:()=>uo,constantCatch:()=>yP,createTransparentProxy:()=>qD,defineLazy:()=>oP,defineLazyInternal:()=>je,derived:()=>DD,esc:()=>Kh,escapeRegex:()=>Dt,explicitlyAborted:()=>ng,extend:()=>hP,finalizeIssue:()=>Qi,floatSafeRemainder:()=>Jh,getElementAtPath:()=>OD,getEnumValues:()=>Jr,getLengthableOrigin:()=>co,getParsedType:()=>ED,getSizableOrigin:()=>CP,hexToUint8Array:()=>ID,hide:()=>zu,installLazyProp:()=>ag,isObject:()=>Ka,isPlainObject:()=>ta,issue:()=>Yr,joinValues:()=>qu,jsonStringifyReplacer:()=>Kr,members:()=>tg,merge:()=>fP,mergeDefs:()=>vt,normalizeParams:()=>K,nullish:()=>Vh,numKeys:()=>MD,objectClone:()=>PD,omit:()=>dP,optionalKeys:()=>eg,own:()=>wt,parsedType:()=>ig,partial:()=>wP,pick:()=>pP,prefixIssues:()=>Gt,primitiveTypes:()=>cP,promiseAllObject:()=>TD,propertyKeyTypes:()=>Xh,randomString:()=>kD,rawShape:()=>Qr,required:()=>vP,safeExtend:()=>mP,shallowClone:()=>Yh,slugify:()=>Zh,stringifyPrimitive:()=>Hu,toZod:()=>AD,uint8ArrayToBase64:()=>bP,uint8ArrayToBase64url:()=>RD,uint8ArrayToHex:()=>zD,unwrapMessage:()=>Vr});function vD(t){return t}function CD(t){return t}function AD(){return t=>t}function bD(t){}function xD(t){throw new Error("Unexpected value in exhaustive check")}function yD(t){}function Jr(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 qu(t,e="|"){return t.map(n=>Hu(n)).join(e)}function Kr(t,e){return typeof e=="bigint"?e.toString():e}var Lh=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function Zr(t){return new Lh(t)}function Vh(t){return t==null}function oo(t){let e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function Jh(t,e){let n=t/e,i=Math.round(n),a=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i){let o=e._zod.def.shape[r];return i?i(o,r):o}):uP(t,r,i?i(s.value,r):s.value))}}function jD(t,e){for(let n of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,n);i.enumerable&&(i.get?lP(t,n,()=>e[n]):uP(t,n,i.value))}}function vt(...t){let e={};for(let n of t){let i=Object.getOwnPropertyDescriptors(n);Object.assign(e,i)}return Object.defineProperties({},e)}function SD(t){return vt(t._zod.def)}function OD(t,e){return e?e.reduce((n,i)=>n?.[i],t):t}function TD(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 Ka(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Qh=Zr(()=>{if(ai.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function ta(t){if(Ka(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let n=e.prototype;return!(Ka(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Yh(t){return ta(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function MD(t){let e=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}var ED=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}`)}},Xh=new Set(["string","number","symbol"]),cP=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Dt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ti(t,e,n){let i=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(i._zod.parent=t),i}function K(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 qD(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 Hu(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function eg(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}var lo={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]},Wu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function pP(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={};return Ja(r,t,Ru(t,e)),ti(t,vt(n,{shape:r,checks:[]}))}function Ru(t,e){let n=zt(t),i=[];for(let a of Reflect.ownKeys(e)){if(!Object.getOwnPropertyDescriptor(n,a)?.enumerable)throw new Error(`Unrecognized key: "${String(a)}"`);e[a]&&i.push(a)}return i}function dP(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=new Set(Ru(t,e)),s={};return Ja(s,t,Reflect.ownKeys(zt(t)).filter(o=>!r.has(o))),ti(t,vt(n,{shape:s,checks:[]}))}function hP(t,e){if(!ta(e))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let a=zt(t);for(let r of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(a,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ti(t,vt(t._zod.def,{shape:gP(t,e)}))}function gP(t,e){let n={};return Ja(n,t,Reflect.ownKeys(zt(t))),jD(n,e),n}function mP(t,e){if(!ta(e))throw new Error("Invalid input to safeExtend: expected a plain object");return ti(t,vt(t._zod.def,{shape:gP(t,e)}))}function fP(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Ja(n,t,Reflect.ownKeys(zt(t))),Ja(n,e,Reflect.ownKeys(zt(e)));let i=vt(t._zod.def,{shape:n,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return ti(t,i)}function wP(t,e,n,i="partial"){let r=e._zod.def.checks;if(r&&r.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let o=n?new Set(Ru(e,n)):void 0,l={};return Ja(l,e,Reflect.ownKeys(zt(e)),t&&((c,u)=>o&&!o.has(u)?c:new t({type:"optional",innerType:c}))),ti(e,vt(e._zod.def,{shape:l,checks:[]}))}function vP(t,e,n){let i=n?new Set(Ru(e,n)):void 0,a={};return Ja(a,e,Reflect.ownKeys(zt(e)),(r,s)=>i&&!i.has(s)?r:new t({type:"nonoptional",innerType:r})),ti(e,vt(e._zod.def,{shape:a}))}function Zi(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 Vr(t){return typeof t=="string"?t:t?.message}function Iu(t,e,n){var i;for(let a=e;aNumber.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function AP(t){let e=atob(t),n=new Uint8Array(e.length);for(let i=0;ie.toString(16).padStart(2,"0")).join("")}var Fh=class{constructor(...e){}};function tg(t,e){for(let n in e){let i=Object.getOwnPropertyDescriptor(e,n);i.get?Object.defineProperty(t,n,{...i,enumerable:!1}):GD(t,n,i.value)}}function wt(t,e,n,i=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:i,value:n}),n}function zu(t,e,n){return wt(t,e,n,!1)}function DD(t,e){for(let n in t){let i=t[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){return wt(this,n,i(this))},set(a){wt(this,n,a)}})}return e}function GD(t,e,n){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?n:wt(this,e,n.bind(this))},set(i){wt(this,e,i)}})}function ND(t,e){let n=Object.getPrototypeOf(t);return e in n?void 0:n}var Bh,ia=!1,UD={configurable:!0,get(){ia=!0}};function je(t,e,n){let i=Object.getPrototypeOf(t._zod);if(e in i&&Bh!==t._zod){Bh=void 0;return}Bh=t._zod,Object.defineProperty(i,e,{configurable:!0,get(){Object.defineProperty(this,e,UD);let a=ia;ia=!1;try{let r=n(this);return ia?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:r}),ia=ia||a,r}catch(r){throw delete this[e],ia=ia||a,r}},set(a){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:a})}})}function ag(t,e,n,i){let a=ND(t,e);a&&Object.defineProperty(a,e,{configurable:!0,get(){let r={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,e,r),r.value=n(this),Object.defineProperty(this,e,r),r.value},set(r){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:i,value:r})}})}var xP="~constantCatch";function yP(t){let e=()=>t;return e[xP]=!0,e}var PP;var rg={value:void 0,enumerable:!1},jP="captureStackTrace"in Error?Error:null;function $D(t){let e=jP;if(e){let n=e.stackTraceLimit;if(typeof n=="number"){try{e.stackTraceLimit=0}catch{return jP=null,new t}try{return new t}finally{e.stackTraceLimit=n}}}return new t}function P(t,e,n,i){let a={};function r(h){this.def=h,this.constr=p,this.traits=new Set}r.prototype=a;let s=n,o=s&&new WeakSet;function l(h,g){if(h._zod){if(h._zod.traits.has(t))return}else{rg.value=new r(g);try{Object.defineProperty(h,"_zod",rg)}finally{rg.value=void 0}}if(h._zod.traits.add(t),e(h,g),o){let m=Object.getPrototypeOf(h),w=h._zod.constr.prototype,f=m;for(;f&&f!==w;)f=Object.getPrototypeOf(f);let A=f??m;o.has(A)||(o.add(A),tg(A,s))}let d=p.prototype;for(let m in d)Object.prototype.hasOwnProperty.call(d,m)&&(m in h||(h[m]=d[m].bind(h)))}let c=i?.Parent??Object;class u extends c{}Object.defineProperty(u,"name",{value:t});function p(h){let g=i?.Parent?$D(u):this;l(g,h);let d=g._zod.deferred;if(d){for(let w of d)w();g._zod.deferred=void 0}let m=globalThis.__zod_globalConfig?.postProcessor;return m&&m(g),g}return Object.defineProperty(p,"init",{value:l}),Object.defineProperty(p,Symbol.hasInstance,{value:h=>i?.Parent&&h instanceof i.Parent?!0:h?._zod?.traits?.has(t)}),Object.defineProperty(p,"name",{value:t}),p}var Yi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Xr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(PP=globalThis).__zod_globalConfig??(PP.__zod_globalConfig={});var ai=globalThis.__zod_globalConfig;function Oi(t){return t&&Object.assign(ai,t),ai}function BD(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,Kr,2)),t.message}function LD(t){this._zod.message=t}var FD={get:BD,set:LD,enumerable:!0,configurable:!0},og={value:void 0,enumerable:!1},SP=new WeakSet([Object.prototype,Error.prototype]),OP=(t,e)=>{t.name="$ZodError",og.value=e,Object.defineProperty(t,"issues",og),og.value=void 0,Object.defineProperty(t,"message",FD);let n=Object.getPrototypeOf(t);SP.has(n)||(SP.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},TP=P("$ZodError",OP),po=P("$ZodError",OP,void 0,{Parent:Error});function VD(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:n(),writable:!0,enumerable:!0,configurable:!0}):t[e]=n()),t[e]}function kP(t,e=n=>n.message){let n={},i=[];for(let a of t.issues)a.path.length>0?VD(n,a.path[0],()=>[]).push(e(a)):i.push(e(a));return{formErrors:i,fieldErrors:n}}function MP(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,c=0;for(;c{let e=(n,i,a,r)=>{let s=a?{...a,async:!1}:{async:!1},o=n._zod.run({value:i,issues:[]},s);if(o instanceof Promise)throw new Yi;if(o.issues.length){let l=new(r?.Err??t)(o.issues.map(c=>Qi(c,s,Oi())));throw _u(l,r?.callee??e),l}return o.value};return e},lg=ho(po),go=t=>{let e=async(n,i,a,r)=>{let s=a?{...a,async:!0}:{async:!0},o=n._zod.run({value:i,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){let l=new(r?.Err??t)(o.issues.map(c=>Qi(c,s,Oi())));throw _u(l,r?.callee??e),l}return o.value};return e},ug=go(po),mo=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 Yi;return r.issues.length?EP(t,r.issues,a):{success:!0,data:r.value}},fo=mo(po);function EP(t,e,n){let i;return{success:!1,get error(){return i||(i=new t(e.map(a=>Qi(a,n,Oi()))),e=void 0,n=void 0),i},set error(a){i=a,e=void 0,n=void 0}}}var wo=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?EP(t,r.issues,a):{success:!0,data:r.value}},vo=wo(po),KD=Symbol.for("zod.compile.invalid"),ZD=Symbol.for("zod.compile.fallback"),Gu=((t,e,n)=>{let i=t._zod.bag.validator;if(i!==void 0){if(i(e)!==KD)return!0;if(i.definite===!0&&n===void 0)return!1}return QD(t,e,n)});function QD(t,e,n){let i=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},a=t._zod.bag.fallbackRun,r;if(a?(i[ZD]=!0,r=a({value:e,issues:[]},i)):r=t._zod.run({value:e,issues:[]},i),r instanceof Promise)throw new Yi;return r.issues.length===0}var Nu=async(t,e,n)=>{let i=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},a=t._zod.run({value:e,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length===0},qP=t=>{let e=ho(t),n=(i,a,r,s)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return e(i,a,o,Du(n,s))};return n};var _P=t=>{let e=ho(t),n=(i,a,r,s)=>e(i,a,r,Du(n,s));return n};var HP=t=>{let e=go(t),n=async(i,a,r,s)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return await e(i,a,o,Du(n,s))};return n};var WP=t=>{let e=go(t),n=async(i,a,r,s)=>await e(i,a,r,Du(n,s));return n};var RP=t=>(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return mo(t)(e,n,a)};var IP=t=>(e,n,i)=>mo(t)(e,n,i);var zP=t=>async(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return wo(t)(e,n,a)};var DP=t=>async(e,n,i)=>wo(t)(e,n,i);var GP=/^[cC][0-9a-z]{6,}$/,NP=/^[0-9a-z]+$/,UP=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,$P=/^[0-9a-vA-V]{20}$/,BP=/^[A-Za-z0-9]{27}$/,LP=/^[a-zA-Z0-9_-]{21}$/;function FP(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}var VP=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var JP=/^([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})$/,pg=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 KP=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var YD="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function ZP(){return new RegExp(YD,"u")}var QP=/^(?:(?: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])$/,YP=/^(([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 XP=/^((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])$/,ej=/^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ij=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;var tj=/^https?$/,aj=/^\+[1-9]\d{6,14}$/;var rj="(?:(?:\\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])))";function XD(t){return new RegExp(`^${t}$`)}var sj=XD(rj);function cg(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}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function oj(t){return new RegExp(`^${cg(t)}$`)}function lj(t){let e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${cg({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,i=t.local?`${n}|${cg({precision:t.precision})}`:n;return new RegExp(`^${rj}T(?:${i})$`)}var uj=/^[\s\S]{0,}$/;var dg=/^-?\d+$/,Co=/^-?\d+(?:\.\d+)?$/,cj=/^(?:true|false)$/i,pj=/^null$/i;var dj=/^[^A-Z]*$/,hj=/^[^a-z]*$/;var wn=P("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])});var hg=t=>{let e=t.value;return!Vh(e)&&e.length!==void 0},Uu={number:"number",bigint:"bigint",object:"date"},gg=P("$ZodCheckLessThan",(t,e)=>{wn.init(t,e);let n=Uu[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value{wn.init(t,e);let n=Uu[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:Uu[typeof i.value]??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})}}),gj=P("$ZodCheckMultipleOf",(t,e)=>{wn.init(t,e),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"?e.value!==BigInt(0)&&n.value%e.value===BigInt(0):Jh(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})}}),mj=P("$ZodCheckNumberFormat",(t,e)=>{wn.init(t,e),e.format=e.format||"float64";let n=e.format?.includes("int"),i=n?"int":"number",[a,r]=lo[e.format];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 fj=P("$ZodCheckMaxLength",(t,e)=>{var n;wn.init(t,e),(n=t._zod.def).when??(n.when=hg),t._zod.check=i=>{let a=i.value,r=a.length;if((typeof a=="string"&&r>e.maximum?uo(a):r)<=e.maximum)return;let o=co(a);i.issues.push({origin:o,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),wj=P("$ZodCheckMinLength",(t,e)=>{var n;wn.init(t,e),(n=t._zod.def).when??(n.when=hg),t._zod.check=i=>{let a=i.value,r=a.length;if((typeof a=="string"&&r>=e.minimum&&r=e.minimum)return;let o=co(a);i.issues.push({origin:o,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),vj=P("$ZodCheckLengthEquals",(t,e)=>{var n;wn.init(t,e),(n=t._zod.def).when??(n.when=hg),t._zod.check=i=>{let a=i.value,r=a.length,s=typeof a=="string"&&r>=e.length&&r<=e.length*2?uo(a):r;if(s===e.length)return;let o=co(a),l=s>e.length;i.issues.push({origin:o,...l?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),Ao=P("$ZodCheckStringFormat",(t,e)=>{var n,i;wn.init(t,e),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=()=>{})}),Cj=P("$ZodCheckRegex",(t,e)=>{Ao.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})}}),Aj=P("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=dj),Ao.init(t,e)}),bj=P("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=hj),Ao.init(t,e)}),xj=P("$ZodCheckIncludes",(t,e)=>{wn.init(t,e);let n=Dt(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position},}${n}`:n);e.pattern=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})}}),yj=P("$ZodCheckStartsWith",(t,e)=>{wn.init(t,e);let n=new RegExp(`^${Dt(e.prefix)}.*`);e.pattern??(e.pattern=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})}}),Pj=P("$ZodCheckEndsWith",(t,e)=>{wn.init(t,e);let n=new RegExp(`.*${Dt(e.suffix)}$`);e.pattern??(e.pattern=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 jj=P("$ZodCheckOverwrite",(t,e)=>{wn.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});var $u=class{constructor(e=[],n={}){this.content=[],this.indent=0,this.args=e,this.closed=n}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(` +`}getLogLevel(e){switch(e){case"error":return ro.level.LError;case"debug":return ro.level.LDebug;case"trace":return ro.level.LTrace;default:return ro.level.LNone}}getLogFormat(e){return e==="json"?Ir.formats.JSON:Ir.formats.TEXT}},tx=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.authPopupConfiguration=this._getDefaultAuthPopupConfiguration(),this.logger=new ix,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=g1();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}_getDefaultAuthPopupConfiguration(){return{usePopup:!1,popupTimeout:12e4,notifyPopup:!1,autoClosePopup:!0,autoClosePopupDelay:3e3,popupTarget:"_blank",popupWindowFeatures:"popup=true,width=800,height=700",overridePopupUrl:void 0,overridePopupUrlParameters:void 0,overridePopupUrlAuthParameters:!1,useWindowReplace:!1,overrideWindowReplaceUri:void 0,waitForLoginPromise:!0,usePopupIdentifier:!1}}mergeWithAuthPopupConfiguration(e){let n={};return this.authPopupConfiguration?n=JSON.parse(JSON.stringify(this.authPopupConfiguration)):n=this._getDefaultAuthPopupConfiguration(),typeof e=="object"&&e&&(typeof e.usePopup=="boolean"&&e.usePopup!==null&&e.usePopup!==void 0&&(n.usePopup=e.usePopup),typeof e.popupTimeout=="number"&&e.popupTimeout!==null&&e.popupTimeout!==void 0&&(n.popupTimeout=e.popupTimeout),typeof e.autoClosePopup=="boolean"&&e.autoClosePopup!==null&&e.autoClosePopup!==void 0&&(n.autoClosePopup=e.autoClosePopup),typeof e.autoClosePopupDelay=="number"&&e.autoClosePopupDelay!==null&&e.autoClosePopupDelay!==void 0&&(n.autoClosePopupDelay=e.autoClosePopupDelay),typeof e.popupTarget=="string"&&e.popupTarget!==null&&e.popupTarget!==void 0&&(n.popupTarget=e.popupTarget),typeof e.popupWindowFeatures=="string"&&e.popupWindowFeatures!==null&&e.popupWindowFeatures!==void 0&&(n.popupWindowFeatures=e.popupWindowFeatures),typeof e.overridePopupUrl=="string"&&e.overridePopupUrl!==null&&e.overridePopupUrl!==void 0&&(n.overridePopupUrl=e.overridePopupUrl),typeof e.overridePopupUrlParameters=="object"&&e.overridePopupUrlParameters!==null&&e.overridePopupUrlParameters!==void 0&&(n.overridePopupUrlParameters=e.overridePopupUrlParameters),typeof e.overridePopupUrlAuthParameters=="boolean"&&e.overridePopupUrlAuthParameters!==null&&e.overridePopupUrlAuthParameters!==void 0&&(n.overridePopupUrlAuthParameters=e.overridePopupUrlAuthParameters),typeof e.notifyPopup=="boolean"&&e.notifyPopup!==null&&e.notifyPopup!==void 0&&(n.notifyPopup=e.notifyPopup),typeof e.waitForLoginPromise=="boolean"&&e.waitForLoginPromise!==null&&e.waitForLoginPromise!==void 0&&(n.waitForLoginPromise=e.waitForLoginPromise),typeof e.useWindowReplace=="boolean"&&e.useWindowReplace!==null&&e.useWindowReplace!==void 0&&(n.useWindowReplace=e.useWindowReplace),typeof e.overrideWindowReplaceUri=="string"&&e.overrideWindowReplaceUri!==null&&e.overrideWindowReplaceUri!==void 0&&(n.overrideWindowReplaceUri=e.overrideWindowReplaceUri),typeof e.usePopupIdentifier=="boolean"&&e.usePopupIdentifier!==null&&e.usePopupIdentifier!==void 0&&(n.usePopupIdentifier=e.usePopupIdentifier)),n}getAuthPopupConfiguration(){return this.authPopupConfiguration}setAuthPopupConfiguration(e){this.authPopupConfiguration=this._getDefaultAuthPopupConfiguration(),this.authPopupConfiguration=this.mergeWithAuthPopupConfiguration(e)}updateAuthPopupConfiguration(e){this.authPopupConfiguration=this.mergeWithAuthPopupConfiguration(e)}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]}},q=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,this._listenerAuthPopupMessage=null,typeof window<"u"&&(this._handleAuthPopupMessage=this._handleAuthPopupMessage.bind(this)),this._listenersAuthPopupStatus=[],this._authPopupWindow=null,this._checkPopupTimeout=null,this._notifyPopupInterval=null,this._popupIdentifier=null,this.onAuthPopupStatus=null;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 tx,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)}setAuthData(e){this._saveSettings(e)}clearAuthData(){this._clearSettings()}getAuthPopupConfiguration(){return this.config.getAuthPopupConfiguration()}setAuthPopupConfiguration(e){this.config.setAuthPopupConfiguration(e)}updateAuthPopupConfiguration(e){this.config.updateAuthPopupConfiguration(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 Pu))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 Ch(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)}addAuthPopupStatusListener(e){typeof e=="function"&&e&&(this._listenersAuthPopupStatus||(this._listenersAuthPopupStatus=[]),this._listenersAuthPopupStatus.push(e))}removeAuthPopupStatusListener(e){if(e){if(!this._listenersAuthPopupStatus||this._listenersAuthPopupStatus.length==0)return;this._listenersAuthPopupStatus=this._listenersAuthPopupStatus.filter(n=>n!==e)}}removeAllAuthPopupStatusListeners(){this._listenersAuthPopupStatus&&(this._listenersAuthPopupStatus=[])}_emitAuthPopupStatus(e,n,i){this.onAuthPopupStatus&&this.onAuthPopupStatus(e,n,i),!(!this._listenersAuthPopupStatus||this._listenersAuthPopupStatus.length==0)&&this._listenersAuthPopupStatus.forEach(a=>a(e,n,i))}_generatePopupIdentifier(e){if(e<8||e>64)throw new Error("Popup Identifier (length) must be between 8 and 64 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("")}}_startAuthPopup(e,n,i){try{i||(i={}),this._checkPopupTimeout&&clearTimeout(this._checkPopupTimeout),this._checkPopupTimeout=null,this._notifyPopupInterval&&clearInterval(this._notifyPopupInterval),this._notifyPopupInterval=null,this._listenerAuthPopupMessage&&(window.removeEventListener("message",this._listenerAuthPopupMessage),this._listenerAuthPopupMessage=null),this._authPopupWindow&&(i.autoClosePopup===!0&&!this._authPopupWindow.closed&&this._authPopupWindow.close(),this._popupIdentifier&&this._emitAuthPopupStatus("ABORTED","Previous Authorization Popup aborted.",this._popupIdentifier),this._popupIdentifier=null),this._authPopupWindow=null,this._popupIdentifier=this._generatePopupIdentifier(16),this._emitAuthPopupStatus("INIT","Authorization Popup Starting",this._popupIdentifier);let a=e;if(i.overridePopupUrl){let r=null;i.overridePopupUrlAuthParameters===!0&&n?i.overridePopupUrlParameters?r={...n,...i.overridePopupUrlParameters}:r=n:i.overridePopupUrlParameters&&(r=i.overridePopupUrlParameters),r?a=`${i.overridePopupUrl}?${new URLSearchParams(r).toString()}`:a=i.overridePopupUrl}return new Promise((r,s)=>{this._listenerAuthPopupMessage=o=>{this._handleAuthPopupMessage(o,i,r,s)},window.addEventListener("message",this._listenerAuthPopupMessage),this._authPopupWindow=window.open(a,i.popupTarget,i.popupWindowFeatures),i.notifyPopup===!0&&(this._notifyPopupInterval=setInterval(function(){if(this._authPopupWindow){let o=new URL(this.redirectUri),l={name:"gc_auth_popup",type:"notify"};i.usePopupIdentifier===!0&&this._popupIdentifier&&(l.identifier=this._popupIdentifier),this._authPopupWindow.postMessage(l,`${o.protocol}//${o.host}`)}else clearInterval(this.notifyPopupInterval),this._notifyPopupInterval=null}.bind(this),1e3)),this._checkPopupTimeout=setTimeout(function(){return this._emitAuthPopupStatus("TIMEOUT","Authorization Popup Timeout",this._popupIdentifier),this._listenerAuthPopupMessage&&(window.removeEventListener("message",this._listenerAuthPopupMessage),this._listenerAuthPopupMessage=null),i.autoClosePopup===!0&&i.autoClosePopupDelay>0?setTimeout(function(){this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close(),this._authPopupWindow=null)}.bind(this),i.autoClosePopupDelay):(i.autoClosePopup===!0&&this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close()),this._authPopupWindow=null),this._checkPopupTimeout=null,this._notifyPopupInterval&&clearInterval(this._notifyPopupInterval),this._notifyPopupInterval=null,s(new Error("Authentication Popup Timeout"))}.bind(this),i.popupTimeout)})}catch(a){throw console.error(a),a}}_extractValuesFromSearchAndHash(e,n){let i={};if(e&&e!=="?"){let a=new URLSearchParams(e),r=a.get("code");r&&(i.code=r);let s=a.get("state");s&&(i.state=s);let o=a.get("error");o&&(i.error=o);let l=a.get("error_description");l&&(i.error_description=l)}if(n&&n!=="#"){let a=new URLSearchParams(n.substring(1)),r=a.get("access_token");r&&(i.accessToken=r);let s=a.get("expires_in");s&&(i.tokenExpiryTime=new Date().getTime()+parseInt(s)*1e3,i.tokenExpiryTimeString=new Date(i.tokenExpiryTime).toUTCString());let o=a.get("state");o&&(i.state=o);let l=a.get("error");l&&(i.error=l);let c=a.get("error_description");c&&(i.error_description=c)}return i}_handleAuthPopupMessage(e,n,i,a){if(this.redirectUri.startsWith(e.origin)&&e.data&&typeof e.data=="object"){let r=JSON.parse(JSON.stringify(e.data));if(r&&r.name==="gc_auth_popup"&&r.type==="message"){if(this._checkPopupTimeout&&clearTimeout(this._checkPopupTimeout),this._checkPopupTimeout=null,this._notifyPopupInterval&&clearInterval(this._notifyPopupInterval),this._notifyPopupInterval=null,this._listenerAuthPopupMessage&&(window.removeEventListener("message",this._listenerAuthPopupMessage),this._listenerAuthPopupMessage=null),n.usePopupIdentifier===!0&&r.identifier&&r.identifier!==this._popupIdentifier)return this._emitAuthPopupStatus("Error","Invalid Popup Identifier received",this._popupIdentifier),s.accessToken=void 0,this._saveSettings(s),a(new Error("Invalid Popup Identifier received"));n.autoClosePopup===!0&&n.autoClosePopupDelay>0?setTimeout(function(){this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close(),this._authPopupWindow=null)}.bind(this),n.autoClosePopupDelay):(n.autoClosePopup===!0&&this._authPopupWindow&&(this._authPopupWindow.closed||this._authPopupWindow.close()),this._authPopupWindow=null);let s={},o=null,l=null;if(r.auth&&typeof r.auth=="object"?(s=r.auth,o=`?${new URLSearchParams(s).toString()}`):(r.search&&r.search!=="?"&&(o=r.search),r.hash&&r.hash!=="#"&&(l=r.hash),s=this._extractValuesFromSearchAndHash(o,l)),!s.error&&!s.accessToken&&!s.code&&(s.error="InvalidAuthParams",s.error_description="Missing Auth Params on URL Redirect"),s.error)return this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${s.error}] ${s.error_description}`,this._popupIdentifier),s.accessToken=void 0,this._saveSettings(s),a(new Error(`Auth Error: [${s.error}] ${s.error_description}`));n.useWindowReplace===!0?(this._emitAuthPopupStatus("REDIRECTING","Authorization Popup Completed",this._popupIdentifier),this._popupIdentifier=null,n.overrideWindowReplaceUri?window.location.replace(`${n.overrideWindowReplaceUri}${o||""}${l||""}`):window.location.replace(`${window.location.origin}${window.location.pathname}${o||""}${l||""}`),i(null)):s&&s.accessToken?(this._saveSettings(s),this._testTokenAccess().then(()=>{this._emitAuthPopupStatus("AUTHENTICATED","Authorization Popup Completed",this._popupIdentifier),this._popupIdentifier=null,i(s)}).catch(c=>(this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${c.name}] ${c.message}`,this._popupIdentifier),this._popupIdentifier=null,this._saveSettings({accessToken:void 0}),a(new Error(`[${c.name}] ${c.message}`))))):s&&s.code&&(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem(`${this.settingsPrefix}_pkce_code_verifier`)),this.authorizePKCEGrant(this.clientId,this.codeVerifier,s.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{this._emitAuthPopupStatus("AUTHENTICATED","Authorization Popup Completed",this._popupIdentifier),this._popupIdentifier=null,!this.authData.state&&s.state&&(this.authData.state=s.state),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),i(this.authData)}).catch(c=>(this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${c.name}] ${c.message}`,this._popupIdentifier),this._popupIdentifier=null,this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),a(new Error(`[${c.name}] ${c.message}`))))}).catch(c=>(this._emitAuthPopupStatus("AUTH_ERROR",`Auth Error: [${c.name}] ${c.message}`,this._popupIdentifier),this._popupIdentifier=null,this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),a(new Error(`[${c.name}] ${c.message}`)))))}}}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:this.clientId,redirect_uri:this.redirectUri,response_type:"token"};i.state&&(l.state=i.state),i.org&&(l.org=i.org),i.provider&&(l.provider=i.provider),i.target&&(l.target=i.target),i.login_hint&&(l.login_hint=i.login_hint),i.prompt&&i.prompt=="login"&&(l.prompt=i.prompt);let c=this.config.mergeWithAuthPopupConfiguration(i.authPopupConfiguration);var u=this._buildAuthUrl("oauth/authorize",l);c.usePopup===!0?this._startAuthPopup(u,l,c).then(p=>{r(p)}).catch(p=>s(new Error(`[${p.name}] ${p.message}`))):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 Ma(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(u=>{this.config.logger.log("trace",u.status,"POST",`${a}/oauth/token`,o,u.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",u.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(u.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+u.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(u=>{u.response&&this.config.logger.log("error",u.response.status,"POST",`${a}/oauth/token`,o,u.response.headers,{grant_type:"client_credentials"},u.response.data),s(u)})})}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"),c=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:i,assertion:a});c.proxy=this.proxy;var u={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:i,assertion:a};c.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,c.headers,p.headers,u,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,c.headers,void 0,u,void 0);var h=p.data.access_token;this.setAccessToken(h),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`,c.headers,p.response.headers,u,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"},c=new URLSearchParams({grant_type:"authorization_code",code:i,code_verifier:n,client_id:e,redirect_uri:a}).toString(),u=new Ma(`${r}/oauth/token`,"POST",l,null,c,this.timeout);let p=this.getHttpClient();var h={grant_type:"authorization_code",code:i,code_verifier:n,client_id:e,redirect_uri:a};p.request(u).then(g=>{this.config.logger.log("trace",g.status,"POST",`${r}/oauth/token`,u.headers,g.headers,h,void 0),this.config.logger.log("debug",g.status,"POST",`${r}/oauth/token`,u.headers,void 0,h,void 0);var d=g.data.access_token;let m={accessToken:d};g.data.expires_in!==null&&g.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+g.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(g=>{g.response&&this.config.logger.log("error",g.response.status,"POST",`${r}/oauth/token`,u.headers,g.response.headers,h,g.response.data),o(g)})})}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"),sessionStorage.removeItem(`${this.settingsPrefix}_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(`${this.settingsPrefix}_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"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),o(new Error(`[${l.name}] ${l.message}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&(sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),sessionStorage.removeItem(`${this.settingsPrefix}_pkce_code_verifier`)),o(new Error(`[${l.name}] ${l.message}`))))):this._testTokenAccess(i.skipTest).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),sessionStorage.setItem(`${this.settingsPrefix}_pkce_code_verifier`,this.codeVerifier))),this.computePKCECodeChallenge(this.codeVerifier).then(c=>{var u={client_id:this.clientId,redirect_uri:this.redirectUri,code_challenge:c,response_type:"code",code_challenge_method:"S256"};i.state&&(u.state=i.state),i.org&&(u.org=i.org),i.provider&&(u.provider=i.provider),i.target&&(u.target=i.target),i.login_hint&&(u.login_hint=i.login_hint),i.prompt&&i.prompt=="login"&&(u.prompt=i.prompt);let p=this.config.mergeWithAuthPopupConfiguration(i.authPopupConfiguration);var h=this._buildAuthUrl("oauth/authorize",u);p.usePopup===!0?this._startAuthPopup(h,u,p).then(g=>{s(g)}).catch(g=>o(new Error(`[${g.name}] ${g.message}`))):window.location.replace(h)}).catch(c=>o(new Error(`[${c.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,c=window.location;return"replaceState"in history?history.replaceState("",document.title,c.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,c.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 c={grant_type:"authorization_code",code:i,redirect_uri:a};this._handleCodeAuthorizationResponse(l,c,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 URLSearchParams(n).toString(),s=new Ma(`${i}/oauth/token`,"POST",a,null,r,this.timeout);return this.getHttpClient().request(s)}_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(e){return new Promise((n,i)=>{if(typeof e=="boolean"&&e===!0){i(new Error("Skipping Test Token"));return}if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken){i(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(()=>{n()}).catch(a=>{this._saveSettings({accessToken:void 0}),i(a)})})}_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:this.clientId};e&&(n.redirect_uri=e);var i=this._buildAuthUrl("logout",n);window.location.replace(i)}_buildAuthUrl(e,n){var i=this.config.getConfUrl("login",this.config.authUrl);return n?`${i}/${e}?${new URLSearchParams(n).toString()}`:`${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,c,u,p){return new Promise((h,g)=>{d(this);function d(m){var w=m.buildUrl(e,i),f=new Ma(w,n,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(f,l);let A=m.defaultHeaders,b=m.normalizeParams(r);if(f.headers=m.addHeaders(f.headers,A,b),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[_,W]of Object.entries(p)){if(typeof _!="string"||typeof W!="string")throw new Error(`Invalid header: "${_}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(_))throw new Error(`Invalid header name: "${_}" - must be a valid HTTP token`);for(let le=0;le=33&&Pe<=126||Pe===32||Pe===9||Pe>=128&&Pe<=255))throw new Error(`Invalid header value for "${_}": contains invalid characters`)}f.headers[_]=W}}var x=m.jsonPreferredMime(c);if(x?f.headers["Content-Type"]=x:f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json"),x==="application/x-www-form-urlencoded")f.setData(m.normalizeParams(s));else if(x=="multipart/form-data"){var S=m.normalizeParams(s);for(var T in S)if(S.hasOwnProperty(T)){var M=new FormData;M.set(T,S[T]),f.setData(M)}}else o&&f.setData(o);var V=m.jsonPreferredMime(u);V&&(f.headers.Accept=V),m.getHttpClient().request(f).then(_=>{var W=m.returnExtended===!0?{status:_.status,statusText:_.statusText,headers:_.headers,body:_.data,text:_.text,error:null}:_.data?_.data:_.text;m.config.logger.log("trace",_.status,n,w,f.headers,_.headers,o,void 0),m.config.logger.log("debug",_.status,n,w,f.headers,void 0,o,void 0),h(W)}).catch(_=>{var W=_;_.response&&_.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{d(m)}).catch(le=>{g(le)}):_.response&&(m.config.logger.log("error",_.response.status,n,w,f.headers,_.response.headers,o,_.response.data),W=m.returnExtended===!0?{status:_.response.status,statusText:_.response.statusText,headers:_.response.headers,body:_.response.data,text:_.response.text,error:_}:_.response.data?_.response.data:_.response.text),g(W)})}})}},ax=class{constructor(e){this.apiClient=e||q.instance}deleteAgenticVirtualagentJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling deleteAgenticVirtualagentJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs","DELETE",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}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)}getAgenticVirtualagent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","GET",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAgenticVirtualagentJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagentJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getAgenticVirtualagentJob';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs/{jobId}","GET",{virtualAgentId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAgenticVirtualagents(e){return e=e||{},this.apiClient.callApi("/api/v2/agentic/virtualagents","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)}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",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name,sortOrder:e.sortOrder,language:e.language,sortBy:e.sortBy},{},{},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)}patchAgenticVirtualagent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling patchAgenticVirtualagent';if(n==null)throw'Missing the required parameter "body" when calling patchAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","PATCH",{virtualAgentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postAgenticVirtualagentVersionJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling postAgenticVirtualagentVersionJobs';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling postAgenticVirtualagentVersionJobs';if(i==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagentVersionJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/versions/{versionId}/jobs","POST",{virtualAgentId:e,versionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAgenticVirtualagents(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagents';return this.apiClient.callApi("/api/v2/agentic/virtualagents","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},rx=class{constructor(e){this.apiClient=e||q.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,agentChecklistIds:this.apiClient.buildCollectionParam(e.agentChecklistIds,"multi")},{},{},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)}},sx=class{constructor(e){this.apiClient=e||q.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)}},ox=class{constructor(e){this.apiClient=e||q.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)}},lx=class{constructor(e){this.apiClient=e||q.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)}},ux=class{constructor(e){this.apiClient=e||q.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)}},cx=class{constructor(e){this.apiClient=e||q.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"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"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)}getFlowsLookup(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getFlowsLookup';return this.apiClient.callApi("/api/v2/flows/lookup","GET",{},{id:this.apiClient.buildCollectionParam(e,"multi"),pageNumber:n.pageNumber,pageSize:n.pageSize,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},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)}getFlowsValidateJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getFlowsValidateJob';return this.apiClient.callApi("/api/v2/flows/validate/jobs/{jobId}","GET",{jobId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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",{},{},{},{},e.body,["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)}postFlowsValidateJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postFlowsValidateJobs';return this.apiClient.callApi("/api/v2/flows/validate/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},px=class{constructor(e){this.apiClient=e||q.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)}},dx=class{constructor(e){this.apiClient=e||q.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)}},hx=class{constructor(e){this.apiClient=e||q.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)}},gx=class{constructor(e){this.apiClient=e||q.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)}},mx=class{constructor(e){this.apiClient=e||q.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)}},fx=class{constructor(e){this.apiClient=e||q.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)}deleteBusinessrulesDecisiontableExport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableExport';if(n==null||n==="")throw'Missing the required parameter "exportJobId" when calling deleteBusinessrulesDecisiontableExport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports/{exportJobId}","DELETE",{tableId:e,exportJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableImport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableImport';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling deleteBusinessrulesDecisiontableImport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}","DELETE",{tableId:e,importJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}deleteBusinessrulesDecisiontableVersionSnapshot(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionSnapshot';if(n==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionSnapshot';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/snapshot","DELETE",{tableId:e,tableVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getBusinessrulesDecisiontableExport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableExport';if(n==null||n==="")throw'Missing the required parameter "exportJobId" when calling getBusinessrulesDecisiontableExport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports/{exportJobId}","GET",{tableId:e,exportJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesDecisiontableExports(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableExports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports","GET",{tableId:e},{after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableImport(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableImport';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling getBusinessrulesDecisiontableImport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}","GET",{tableId:e,importJobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesDecisiontableImports(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableImports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports","GET",{tableId:e},{after:n.after,pageSize:n.pageSize},{},{},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,status:this.apiClient.buildCollectionParam(n.status,"multi"),hasSnapshot:n.hasSnapshot},{},{},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)}getBusinessrulesSchemaVersion(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchemaVersion';if(n==null||n==="")throw'Missing the required parameter "schemaVersion" when calling getBusinessrulesSchemaVersion';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}/versions/{schemaVersion}","GET",{schemaId:e,schemaVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getBusinessrulesSchemaVersions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchemaVersions';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}/versions","GET",{schemaId:e},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},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)}patchBusinessrulesDecisiontableImport(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableImport';if(n==null||n==="")throw'Missing the required parameter "importJobId" when calling patchBusinessrulesDecisiontableImport';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableImport';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}","PATCH",{tableId:e,importJobId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}postBusinessrulesDecisiontableExports(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExports';if(n==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/exports","POST",{tableId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontableImports(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableImports';if(n==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableImports';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/imports","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)}postBusinessrulesDecisiontableVersionRollback(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRollback';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRollback';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rollback","POST",{tableId:e,tableVersion:n},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postBusinessrulesDecisiontableVersionRowsBulkAdd(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/add","POST",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsBulkRemove(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/remove","POST",{tableId:e,tableVersion:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsBulkUpdate(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/update","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)}postBusinessrulesDecisiontableVersionSnapshot(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSnapshot';if(n==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionSnapshot';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionSnapshot';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/snapshot","POST",{tableId:e,tableVersion:n},{},{},{},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},{},{},{},n.body,["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)}},wx=class{constructor(e){this.apiClient=e||q.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)}},vx=class{constructor(e){this.apiClient=e||q.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)}deleteCasemanagementCaseCommentsMeCommentId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling deleteCasemanagementCaseCommentsMeCommentId';if(n==null||n==="")throw'Missing the required parameter "commentId" when calling deleteCasemanagementCaseCommentsMeCommentId';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments/me/{commentId}","DELETE",{caseId:e,commentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}deleteCasemanagementCaseplanDataschema(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling deleteCasemanagementCaseplanDataschema';if(n==null||n==="")throw'Missing the required parameter "schemaKeyName" when calling deleteCasemanagementCaseplanDataschema';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/dataschemas/{schemaKeyName}","DELETE",{caseplanId:e,schemaKeyName:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteCasemanagementCaseplanStageplan(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling deleteCasemanagementCaseplanStageplan';if(n==null||n==="")throw'Missing the required parameter "stageplanId" when calling deleteCasemanagementCaseplanStageplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans/{stageplanId}","DELETE",{caseplanId:e,stageplanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},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)}getCasemanagementCaseComment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseComment';if(n==null||n==="")throw'Missing the required parameter "commentId" when calling getCasemanagementCaseComment';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments/{commentId}","GET",{caseId:e,commentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseComments(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseComments';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments","GET",{caseId:e},{after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},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)}getCasemanagementCasesQueryJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getCasemanagementCasesQueryJob';return this.apiClient.callApi("/api/v2/casemanagement/cases/query/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCasesQueryJobResults(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getCasemanagementCasesQueryJobResults';return this.apiClient.callApi("/api/v2/casemanagement/cases/query/jobs/{jobId}/results","GET",{jobId:e},{},{},{},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:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},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)}patchCasemanagementCaseDescription(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDescription';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDescription';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/description","PATCH",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseExternalid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseExternalid';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseExternalid';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/externalid","PATCH",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseOwner(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseOwner';if(n==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseOwner';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/owner","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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseComments(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseComments';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseComments';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/comments","POST",{caseId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postCasemanagementCaseplanDataschemas(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanDataschemas';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplanDataschemas';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/dataschemas","POST",{caseplanId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postCasemanagementCaseplanStageplanReposition(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanStageplanReposition';if(n==null||n==="")throw'Missing the required parameter "stageplanId" when calling postCasemanagementCaseplanStageplanReposition';if(i==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplanStageplanReposition';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans/{stageplanId}/reposition","POST",{caseplanId:e,stageplanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postCasemanagementCaseplanStageplans(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling postCasemanagementCaseplanStageplans';if(n==null)throw'Missing the required parameter "body" when calling postCasemanagementCaseplanStageplans';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/stageplans","POST",{caseplanId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCasemanagementCasesAssociationsQuery';return this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCasemanagementCasesQueryJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postCasemanagementCasesQueryJobs';return this.apiClient.callApi("/api/v2/casemanagement/cases/query/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putCasemanagementCaseplanDataschema(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanDataschema';if(n==null||n==="")throw'Missing the required parameter "schemaKeyName" when calling putCasemanagementCaseplanDataschema';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanDataschema';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/dataschemas/{schemaKeyName}","PUT",{caseplanId:e,schemaKeyName:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}},Cx=class{constructor(e){this.apiClient=e||q.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)}},Ax=class{constructor(e){this.apiClient=e||q.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)}},bx=class{constructor(e){this.apiClient=e||q.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)}},xx=class{constructor(e){this.apiClient=e||q.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)}getConversationAccessattributes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationAccessattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/accessattributes","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)}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},{},{},{},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},{},{},{},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)}patchConversationSuggestion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSuggestion';if(n==null||n==="")throw'Missing the required parameter "suggestionId" when calling patchConversationSuggestion';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","PATCH",{conversationId:e,suggestionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}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)}postConversationsCallParticipantCommunicationSummaries(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationSummaries';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationSummaries';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsCallParticipantCommunicationSummaries';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/summaries","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}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)}postConversationsEmailMessagesDraftAttachmentsUploads(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsUploads';if(n==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessagesDraftAttachmentsUploads';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/uploads","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},{},{},{},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},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantCommunicationSummaries(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationSummaries';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationSummaries';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageParticipantCommunicationSummaries';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/summaries","POST",{conversationId:e,participantId:n,communicationId:i},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}postConversationsMessageParticipantTakeover(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantTakeover';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantTakeover';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/takeover","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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",{},{},{},{},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)}putConversationAccessattributes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationAccessattributes';if(n==null)throw'Missing the required parameter "body" when calling putConversationAccessattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/accessattributes","PUT",{conversationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}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)}},yx=class{constructor(e){this.apiClient=e||q.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)}},Px=class{constructor(e){this.apiClient=e||q.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)}},jx=class{constructor(e){this.apiClient=e||q.instance}getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredby(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "entityType" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredby';if(n==null||n==="")throw'Missing the required parameter "entityId" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredby';return this.apiClient.callApi("/api/v2/dependencies/type/{entityType}/id/{entityId}/connections/requiredby","GET",{entityType:e,entityId:n},{pageSize:i.pageSize,beforeSourceType:i.beforeSourceType,beforeSourceId:i.beforeSourceId,afterSourceType:i.afterSourceType,afterSourceId:i.afterSourceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredbycounts(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "entityType" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredbycounts';if(n==null||n==="")throw'Missing the required parameter "entityId" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequiredbycounts';return this.apiClient.callApi("/api/v2/dependencies/type/{entityType}/id/{entityId}/connections/requiredbycounts","GET",{entityType:e,entityId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getDependenciesTypeEntityTypeIdEntityIdConnectionsRequires(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "entityType" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequires';if(n==null||n==="")throw'Missing the required parameter "entityId" when calling getDependenciesTypeEntityTypeIdEntityIdConnectionsRequires';return this.apiClient.callApi("/api/v2/dependencies/type/{entityType}/id/{entityId}/connections/requires","GET",{entityType:e,entityId:n},{pageSize:i.pageSize,beforeSourceType:i.beforeSourceType,beforeSourceId:i.beforeSourceId,afterSourceType:i.afterSourceType,afterSourceId:i.afterSourceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Sx=class{constructor(e){this.apiClient=e||q.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)}},Ox=class{constructor(e){this.apiClient=e||q.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)}},Tx=class{constructor(e){this.apiClient=e||q.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)}},kx=class{constructor(e){this.apiClient=e||q.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)}},Mx=class{constructor(e){this.apiClient=e||q.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)}getExternalcontactsGraphsClusterscan(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscan';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}","GET",{scanId:e},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsGraphsClusterscanCluster(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscanCluster';if(n==null||n==="")throw'Missing the required parameter "clusterId" when calling getExternalcontactsGraphsClusterscanCluster';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/clusters/{clusterId}","GET",{scanId:e,clusterId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsGraphsClusterscanClusters(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscanClusters';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/clusters","GET",{scanId:e},{limit:n.limit,cursor:n.cursor,divisionIds:this.apiClient.buildCollectionParam(n.divisionIds,"multi"),"mergeInfo.status":n.mergeInfoStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsGraphsClusterscanStatistics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling getExternalcontactsGraphsClusterscanStatistics';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/statistics","GET",{scanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsGraphsClusterscans(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans","GET",{},{limit:e.limit,cursor:e.cursor,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsGraphsClusterscansLatest(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/latest","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsGraphsClusterscansLatestStatistics(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/latest/statistics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsGraphsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/graphs/settings","GET",{},{},{},{},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)}getExternalcontactsNotesExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "exportId" when calling getExternalcontactsNotesExport';return this.apiClient.callApi("/api/v2/externalcontacts/notes/exports/{exportId}","GET",{exportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsNotesExports(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/notes/exports","GET",{},{divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),after:e.after,pageSize:e.pageSize},{},{},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)}getExternalcontactsOrganizationsExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "exportId" when calling getExternalcontactsOrganizationsExport';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/exports/{exportId}","GET",{exportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsExports(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations/exports","GET",{},{divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),after:e.after,pageSize:e.pageSize},{},{},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)}getExternalcontactsRelationshipsExport(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "exportId" when calling getExternalcontactsRelationshipsExport';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/exports/{exportId}","GET",{exportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsRelationshipsExports(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/relationships/exports","GET",{},{divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}patchExternalcontactsContactNote(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling patchExternalcontactsContactNote';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","PATCH",{contactId:e,noteId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchExternalcontactsOrganization(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganization';if(n==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PATCH",{externalOrganizationId: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)}patchExternalcontactsOrganizationNote(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationNote';if(n==null||n==="")throw'Missing the required parameter "noteId" when calling patchExternalcontactsOrganizationNote';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","PATCH",{externalOrganizationId:e,noteId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchExternalcontactsRelationship(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling patchExternalcontactsRelationship';if(n==null)throw'Missing the required parameter "body" when calling patchExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PATCH",{relationshipId: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)}postExternalcontactsContactsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsSearch';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/search","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)}postExternalcontactsNotesExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsNotesExports';return this.apiClient.callApi("/api/v2/externalcontacts/notes/exports","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)}postExternalcontactsOrganizationsExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsExports';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/exports","POST",{},{},{},{},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)}postExternalcontactsRelationshipsExports(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsRelationshipsExports';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/exports","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)}putExternalcontactsGraphsClusterscanClusterMerge(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scanId" when calling putExternalcontactsGraphsClusterscanClusterMerge';if(n==null||n==="")throw'Missing the required parameter "clusterId" when calling putExternalcontactsGraphsClusterscanClusterMerge';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/clusterscans/{scanId}/clusters/{clusterId}/merge","PUT",{scanId:e,clusterId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putExternalcontactsGraphsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putExternalcontactsGraphsSettings';return this.apiClient.callApi("/api/v2/externalcontacts/graphs/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},Ex=class{constructor(e){this.apiClient=e||q.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)}getFaxFaxIdStatus(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "faxId" when calling getFaxFaxIdStatus';return this.apiClient.callApi("/api/v2/fax/{faxId}/status","GET",{faxId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},qx=class{constructor(e){this.apiClient=e||q.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)}},_x=class{constructor(e){this.apiClient=e||q.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,c){if(c=c||{},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"],c.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)}},Hx=class{constructor(e){this.apiClient=e||q.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)}},Wx=class{constructor(e){this.apiClient=e||q.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)}},Rx=class{constructor(e){this.apiClient=e||q.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)}},Ix=class{constructor(e){this.apiClient=e||q.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)}},zx=class{constructor(e){this.apiClient=e||q.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)}},Dx=class{constructor(e){this.apiClient=e||q.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)}},Gx=class{constructor(e){this.apiClient=e||q.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,credentialId:e.credentialId},{},{},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)}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)}},Nx=class{constructor(e){this.apiClient=e||q.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)}postIntentsCustomerintentsBulkRetrieve(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postIntentsCustomerintentsBulkRetrieve';return this.apiClient.callApi("/api/v2/intents/customerintents/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ux=class{constructor(e){this.apiClient=e||q.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)}getJourneyViewsEventdefinitionsExternal(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/external","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsEventdefinitionsExternalChanges(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/external/changes","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)}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)}putJourneyViewsEventdefinition(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "eventDefinitionId" when calling putJourneyViewsEventdefinition';return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/{eventDefinitionId}","PUT",{eventDefinitionId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewsEventdefinitionActivate(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "eventDefinitionId" when calling putJourneyViewsEventdefinitionActivate';return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/{eventDefinitionId}/activate","PUT",{eventDefinitionId:e},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},$x=class{constructor(e){this.apiClient=e||q.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)}deleteKnowledgeSourceSynchronizationDeletion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling deleteKnowledgeSourceSynchronizationDeletion';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling deleteKnowledgeSourceSynchronizationDeletion';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling deleteKnowledgeSourceSynchronizationDeletion';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions/{fileId}","DELETE",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeSourceSynchronizationUpload(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling deleteKnowledgeSourceSynchronizationUpload';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling deleteKnowledgeSourceSynchronizationUpload';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling deleteKnowledgeSourceSynchronizationUpload';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads/{fileId}","DELETE",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}getKnowledgeKnowledgebaseDocumentsFeedback(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentsFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/feedback","GET",{knowledgeBaseId:e},{before:n.before,after:n.after,pageSize:n.pageSize,onlyCommented:n.onlyCommented,documentVersionId:n.documentVersionId,documentVariationId:n.documentVariationId,appType:n.appType,queryType:n.queryType,userId:n.userId,queueId:n.queueId,state:n.state},{},{},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)}getKnowledgeSourceSynchronizationDeletion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationDeletion';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationDeletion';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling getKnowledgeSourceSynchronizationDeletion';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions/{fileId}","GET",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeSourceSynchronizationDeletions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationDeletions';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationDeletions';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions","GET",{sourceId:e,synchronizationId:n},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronizationUpload(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationUpload';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationUpload';if(i==null||i==="")throw'Missing the required parameter "fileId" when calling getKnowledgeSourceSynchronizationUpload';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads/{fileId}","GET",{sourceId:e,synchronizationId:n,fileId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeSourceSynchronizationUploads(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizationUploads';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronizationUploads';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads","GET",{sourceId:e,synchronizationId:n},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},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)}postKnowledgeSourceSynchronizationDeletions(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationDeletions';if(n==null||n==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationDeletions';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeSourceSynchronizationDeletions';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/deletions","POST",{sourceId:e,synchronizationId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}},Bx=class{constructor(e){this.apiClient=e||q.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)}},Lx=class{constructor(e){this.apiClient=e||q.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)}},Fx=class{constructor(e){this.apiClient=e||q.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",{},{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"),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)}},Vx=class{constructor(e){this.apiClient=e||q.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)}},Jx=class{constructor(e){this.apiClient=e||q.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)}},Kx=class{constructor(e){this.apiClient=e||q.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)}},Zx=class{constructor(e){this.apiClient=e||q.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)}},Qx=class{constructor(e){this.apiClient=e||q.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)}},Xx=class{constructor(e){this.apiClient=e||q.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)}},Yx=class{constructor(e){this.apiClient=e||q.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)}},ey=class{constructor(e){this.apiClient=e||q.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)}},ny=class{constructor(e){this.apiClient=e||q.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)}},iy=class{constructor(e){this.apiClient=e||q.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)}},ty=class{constructor(e){this.apiClient=e||q.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)}},ay=class{constructor(e){this.apiClient=e||q.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"),timeZone:e.timeZone,dateExpiration:this.apiClient.buildCollectionParam(e.dateExpiration,"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,timeZone:e.timeZone,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)}postOutboundContactlistsBulkUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postOutboundContactlistsBulkUpdate';return this.apiClient.callApi("/api/v2/outbound/contactlists/bulk/update","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)}},ry=class{constructor(e){this.apiClient=e||q.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)}},sy=class{constructor(e){this.apiClient=e||q.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)}},oy=class{constructor(e){this.apiClient=e||q.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)}getQualityPublishedformsEvaluationsDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "evaluationFormId" when calling getQualityPublishedformsEvaluationsDivisionview';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations/divisionviews/{evaluationFormId}","GET",{evaluationFormId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedformsEvaluationsDivisionviews(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getQualityPublishedformsEvaluationsDivisionviews';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations/divisionviews","GET",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,name:n.name,divisionId:n.divisionId,id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}getQualityPublishedformsSurveysDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "surveyFormId" when calling getQualityPublishedformsSurveysDivisionview';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys/divisionviews/{surveyFormId}","GET",{surveyFormId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityPublishedformsSurveysDivisionviews(e,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getQualityPublishedformsSurveysDivisionviews';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys/divisionviews","GET",{},{pageSize:n.pageSize,pageNumber:n.pageNumber,name:n.name,divisionId:n.divisionId,id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}},ly=class{constructor(e){this.apiClient=e||q.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)}},uy=class{constructor(e){this.apiClient=e||q.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)}getResponsemanagementLibrariesDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling getResponsemanagementLibrariesDivisionview';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/divisionviews/{libraryId}","GET",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getResponsemanagementLibrariesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries/divisionviews","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)}getResponsemanagementResponsesDivisionview(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling getResponsemanagementResponsesDivisionview';return this.apiClient.callApi("/api/v2/responsemanagement/responses/divisionviews/{responseId}","GET",{responseId:e},{},{},{},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)}postResponsemanagementResponsesDivisionviewsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponsesDivisionviewsQuery';return this.apiClient.callApi("/api/v2/responsemanagement/responses/divisionviews/query","POST",{},{},{},{},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)}},cy=class{constructor(e){this.apiClient=e||q.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)}deleteRoutingEmailSettingEmailSettingId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailSettingId" when calling deleteRoutingEmailSettingEmailSettingId';return this.apiClient.callApi("/api/v2/routing/email/setting/{emailSettingId}","DELETE",{emailSettingId: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)}deleteRoutingSkillexpression(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "expressionId" when calling deleteRoutingSkillexpression';return this.apiClient.callApi("/api/v2/routing/skillexpressions/{expressionId}","DELETE",{expressionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingSkillexpressions(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skillexpressions","DELETE",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}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)}getRoutingEmailSetting(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setting","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSettingEmailSettingId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailSettingId" when calling getRoutingEmailSettingEmailSettingId';return this.apiClient.callApi("/api/v2/routing/email/setting/{emailSettingId}","GET",{emailSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}getRoutingSkillexpression(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "expressionId" when calling getRoutingSkillexpression';return this.apiClient.callApi("/api/v2/routing/skillexpressions/{expressionId}","GET",{expressionId:e},{includeArchived:n.includeArchived,format:n.format},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSkillexpressions(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skillexpressions","GET",{},{format:e.format,includeArchived:e.includeArchived,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingSkillexpressionsQueueQueueId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingSkillexpressionsQueueQueueId';return this.apiClient.callApi("/api/v2/routing/skillexpressions/queue/{queueId}","GET",{queueId:e},{format:n.format,includeArchived:n.includeArchived},{},{},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)}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)}patchRoutingEmailSettingEmailSettingId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "emailSettingId" when calling patchRoutingEmailSettingEmailSettingId';if(n==null)throw'Missing the required parameter "body" when calling patchRoutingEmailSettingEmailSettingId';return this.apiClient.callApi("/api/v2/routing/email/setting/{emailSettingId}","PATCH",{emailSettingId: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)}postRoutingEmailSetting(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingEmailSetting';return this.apiClient.callApi("/api/v2/routing/email/setting","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)}postRoutingSkillexpressionsValidate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postRoutingSkillexpressionsValidate';return this.apiClient.callApi("/api/v2/routing/skillexpressions/validate","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)}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)}},py=class{constructor(e){this.apiClient=e||q.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)}},dy=class{constructor(e){this.apiClient=e||q.instance}deleteConversationParticipantScreenmonitorsSession(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantScreenmonitorsSession';if(i==null||i==="")throw'Missing the required parameter "screenMonitoringId" when calling deleteConversationParticipantScreenmonitorsSession';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/screenmonitors/sessions/{screenMonitoringId}","DELETE",{conversationId:e,participantId:n,screenMonitoringId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserScreenmonitorsSession(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "screenMonitoringId" when calling deleteUserScreenmonitorsSession';return this.apiClient.callApi("/api/v2/users/{userId}/screenmonitors/sessions/{screenMonitoringId}","DELETE",{userId:e,screenMonitoringId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationParticipantScreenmonitorsSession(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantScreenmonitorsSession';if(i==null||i==="")throw'Missing the required parameter "screenMonitoringId" when calling getConversationParticipantScreenmonitorsSession';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/screenmonitors/sessions/{screenMonitoringId}","GET",{conversationId:e,participantId:n,screenMonitoringId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getScreenmonitorsSessionsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/screenmonitors/sessions/details","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScreenmonitorsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/screenmonitors/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getScreenmonitorsUserSessions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getScreenmonitorsUserSessions';return this.apiClient.callApi("/api/v2/screenmonitors/users/{userId}/sessions","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserScreenmonitorsSession(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserScreenmonitorsSession';if(n==null||n==="")throw'Missing the required parameter "screenMonitoringId" when calling getUserScreenmonitorsSession';return this.apiClient.callApi("/api/v2/users/{userId}/screenmonitors/sessions/{screenMonitoringId}","GET",{userId:e,screenMonitoringId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationParticipantScreenmonitorsSessions(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantScreenmonitorsSessions';if(n==null||n==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantScreenmonitorsSessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/screenmonitors/sessions","POST",{conversationId:e,participantId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScreenmonitorsSessionsUsersDetails(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postScreenmonitorsSessionsUsersDetails';return this.apiClient.callApi("/api/v2/screenmonitors/sessions/users/details","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserScreenmonitorsSessions(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserScreenmonitorsSessions';return this.apiClient.callApi("/api/v2/users/{userId}/screenmonitors/sessions","POST",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putScreenmonitorsSettings(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling putScreenmonitorsSettings';return this.apiClient.callApi("/api/v2/screenmonitors/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},hy=class{constructor(e){this.apiClient=e||q.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)}},gy=class{constructor(e){this.apiClient=e||q.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)}},my=class{constructor(e){this.apiClient=e||q.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)}},fy=class{constructor(e){this.apiClient=e||q.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)}},wy=class{constructor(e){this.apiClient=e||q.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)}getSpeechandtextanalyticsProgramSettingsProcessing(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramSettingsProcessing';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/processing","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)}getSpeechandtextanalyticsProgramsSettingsProcessing(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/processing","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)}getSpeechandtextanalyticsTopicsGeneratedphrasesJob(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsGeneratedphrasesJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/generatedphrases/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}patchSpeechandtextanalyticsProgramSettingsProcessing(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "programId" when calling patchSpeechandtextanalyticsProgramSettingsProcessing';if(n==null)throw'Missing the required parameter "body" when calling patchSpeechandtextanalyticsProgramSettingsProcessing';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/processing","PATCH",{programId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postSpeechandtextanalyticsTopicsGeneratedphrasesJobs(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsGeneratedphrasesJobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/generatedphrases/jobs","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)}},vy=class{constructor(e){this.apiClient=e||q.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)}},Cy=class{constructor(e){this.apiClient=e||q.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)}},Ay=class{constructor(e){this.apiClient=e||q.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)}},by=class{constructor(e){this.apiClient=e||q.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)}},xy=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyOrganizationLinkTargetOrganizationId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetOrganizationId" when calling deleteTelephonyOrganizationLinkTargetOrganizationId';return this.apiClient.callApi("/api/v2/telephony/organization/link/{targetOrganizationId}","DELETE",{targetOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}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)}getTelephonyNumbersRouting(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/numbers/routing","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,numberId:e.numberId,activeRoutingOrganizationId:e.activeRoutingOrganizationId,ownerOrganizationId:e.ownerOrganizationId,status:e.status},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyOrganizationLink(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/organization/link","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyOrganizationLinkRegions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/organization/link/regions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyPrefixes(e,n){if(n=n||{},e==null)throw'Missing the required parameter "type" when calling getTelephonyPrefixes';return this.apiClient.callApi("/api/v2/telephony/prefixes","GET",{},{before:n.before,after:n.after,pageSize:n.pageSize,prefix:n.prefix,type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyPrefixesSimulateCall(e,n){if(n=n||{},e==null)throw'Missing the required parameter "_number" when calling getTelephonyPrefixesSimulateCall';return this.apiClient.callApi("/api/v2/telephony/prefixes/simulate/call","GET",{},{number:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}patchTelephonyOrganizationLinkApproveRequestingOrganizationId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "requestingOrganizationId" when calling patchTelephonyOrganizationLinkApproveRequestingOrganizationId';if(n==null)throw'Missing the required parameter "body" when calling patchTelephonyOrganizationLinkApproveRequestingOrganizationId';return this.apiClient.callApi("/api/v2/telephony/organization/link/approve/{requestingOrganizationId}","PATCH",{requestingOrganizationId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyNumbersRouting(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyNumbersRouting';return this.apiClient.callApi("/api/v2/telephony/numbers/routing","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyNumbersRoutingAll(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyNumbersRoutingAll';return this.apiClient.callApi("/api/v2/telephony/numbers/routing/all","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyNumbersRoutingReset(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyNumbersRoutingReset';return this.apiClient.callApi("/api/v2/telephony/numbers/routing/reset","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyOrganizationLink(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyOrganizationLink';return this.apiClient.callApi("/api/v2/telephony/organization/link","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyPrefixesBulk(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyPrefixesBulk';return this.apiClient.callApi("/api/v2/telephony/prefixes/bulk","POST",{},{},{},{},e,["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)}},yy=class{constructor(e){this.apiClient=e||q.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)}getTelephonyProvidersEdgesTrunkbasesettingsSiteSiteId(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesTrunkbasesettingsSiteSiteId';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/site/{siteId}","GET",{siteId:e},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortBy:n.sortBy,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}postTelephonyProvidersEdgeOfflineconfiguration(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeOfflineconfiguration';if(n==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeOfflineconfiguration';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/offlineconfiguration","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)}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)}postTelephonyProvidersEdgesTrunkbasesettingsSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesTrunkbasesettingsSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesTrunksSearch(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesTrunksSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/search","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||q.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)}},jy=class{constructor(e){this.apiClient=e||q.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)}},Sy=class{constructor(e){this.apiClient=e||q.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)}},Oy=class{constructor(e){this.apiClient=e||q.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)}},Ty=class{constructor(e){this.apiClient=e||q.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)}},ky=class{constructor(e){this.apiClient=e||q.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)}deleteUsersMeVerifier(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "verifierId" when calling deleteUsersMeVerifier';return this.apiClient.callApi("/api/v2/users/me/verifiers/{verifierId}","DELETE",{verifierId: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)}getUsersMeVerifiers(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me/verifiers","GET",{},{},{},{},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)}postUsersMeVerifiersTotp(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersMeVerifiersTotp';return this.apiClient.callApi("/api/v2/users/me/verifiers/totp","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersMeVerifiersTotpVerifierId(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "verifierId" when calling postUsersMeVerifiersTotpVerifierId';if(n==null)throw'Missing the required parameter "body" when calling postUsersMeVerifiersTotpVerifierId';return this.apiClient.callApi("/api/v2/users/me/verifiers/totp/{verifierId}","POST",{verifierId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUsersMeVerifiersWebauthnRegister(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postUsersMeVerifiersWebauthnRegister';return this.apiClient.callApi("/api/v2/users/me/verifiers/webauthn/register","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersMeVerifiersWebauthnRegisterOptions(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me/verifiers/webauthn/register/options","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}putUsersMeVerifier(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "verifierId" when calling putUsersMeVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUsersMeVerifier';return this.apiClient.callApi("/api/v2/users/me/verifiers/{verifierId}","PUT",{verifierId: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)}},My=class{constructor(e){this.apiClient=e||q.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)}},Ey=class{constructor(e){this.apiClient=e||q.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)}},qy=class{constructor(e){this.apiClient=e||q.instance}deleteAgenticVirtualagentJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling deleteAgenticVirtualagentJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs","DELETE",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAgenticVirtualagent(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","GET",{virtualAgentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAgenticVirtualagentJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling getAgenticVirtualagentJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getAgenticVirtualagentJob';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/jobs/{jobId}","GET",{virtualAgentId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAgenticVirtualagents(e){return e=e||{},this.apiClient.callApi("/api/v2/agentic/virtualagents","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)}patchAgenticVirtualagent(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling patchAgenticVirtualagent';if(n==null)throw'Missing the required parameter "body" when calling patchAgenticVirtualagent';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}","PATCH",{virtualAgentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAgenticVirtualagentVersionJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "virtualAgentId" when calling postAgenticVirtualagentVersionJobs';if(n==null||n==="")throw'Missing the required parameter "versionId" when calling postAgenticVirtualagentVersionJobs';if(i==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagentVersionJobs';return this.apiClient.callApi("/api/v2/agentic/virtualagents/{virtualAgentId}/versions/{versionId}/jobs","POST",{virtualAgentId:e,versionId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAgenticVirtualagents(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postAgenticVirtualagents';return this.apiClient.callApi("/api/v2/agentic/virtualagents","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},_y=class{constructor(e){this.apiClient=e||q.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)}},Hy=class{constructor(e){this.apiClient=e||q.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)}},Wy=class{constructor(e){this.apiClient=e||q.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)}},Ry=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementAdherenceAdjustment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "adjustmentId" when calling deleteWorkforcemanagementAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/{adjustmentId}","DELETE",{adjustmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}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)}deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(n==null||n==="")throw'Missing the required parameter "reasonCodeId" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/{reasonCodeId}","DELETE",{businessUnitId:e,reasonCodeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "ids" when calling deleteWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","DELETE",{businessUnitId:e},{ids:this.apiClient.buildCollectionParam(n,"multi")},{},{},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)}deleteWorkforcemanagementBusinessunitSchedulebid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}","DELETE",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulebidGroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}","DELETE",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}getWorkforcemanagementAdherenceAdjustment(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "adjustmentId" when calling getWorkforcemanagementAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/{adjustmentId}","GET",{adjustmentId:e},{},{},{},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)}getWorkforcemanagementAgentAdherenceAdjustment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceAdjustment';if(n==null||n==="")throw'Missing the required parameter "adjustmentId" when calling getWorkforcemanagementAgentAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/adjustments/{adjustmentId}","GET",{agentId:e,adjustmentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitActivityplanDeletionsJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplanJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/jobs","GET",{businessUnitId:e,activityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob(e,n,i,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(a==null||a==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';if(r==null||r==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/{sessionId}/users/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,occurrenceId:i,sessionId:a,jobId:r},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';if(a==null||a==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,occurrenceId:i,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/deletions/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';if(n==null)throw'Missing the required parameter "adjustmentIds" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/bulk","GET",{businessUnitId:e},{adjustmentIds:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query/jobs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(n==null||n==="")throw'Missing the required parameter "reasonCodeId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/{reasonCodeId}","GET",{businessUnitId:e,reasonCodeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "ids" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","GET",{businessUnitId:e},{ids:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/settings","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)}getWorkforcemanagementBusinessunitCapacityplanForecast(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanForecast';if(n==null||n==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanForecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/forecast","GET",{businessUnitId:e,capacityPlanId:n},{granularity:i.granularity},{},{},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)}getWorkforcemanagementBusinessunitDecisionmetricsJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitDecisionmetricsJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitDecisionmetricsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/decisionmetrics/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/forecast/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/historical/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJob(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJob';if(n==null||n==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/snapshot/jobs/{jobId}","GET",{businessUnitId:e,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitOpportunity(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitOpportunity';if(n==null||n==="")throw'Missing the required parameter "opportunityId" when calling getWorkforcemanagementBusinessunitOpportunity';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/{opportunityId}","GET",{businessUnitId:e,opportunityId:n},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}getWorkforcemanagementBusinessunitSchedulebid(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}","GET",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulebidGroup(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}","GET",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitSchedulebidGroupPreferences(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences","GET",{businessUnitId:e,bidId:n,bidGroupId:i},{forceDownloadService:a.forceDownloadService,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitSchedulebidGroupsSummary(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/summary","GET",{businessUnitId:e,bidId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulebids(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids","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)}getWorkforcemanagementBusinessunitSchedulingpreferencesSettings(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingpreferencesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulingpreferences/settings","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)}getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/granularityconversion/jobs/{jobId}","GET",{businessUnitId:e,timeOffLimitId:n,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJobs';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimitGranularityconversionJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/granularityconversion/jobs","GET",{businessUnitId:e,timeOffLimitId:n},{statuses:i.statuses},{},{},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,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},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},{earliestWeekDate:i.earliestWeekDate,latestWeekDate:i.latestWeekDate,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)}getWorkforcemanagementManagementunitDecisionmetrics(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitDecisionmetrics';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/decisionmetrics","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}getWorkforcemanagementSchedulebidPreference(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidPreference';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids/{bidId}/preference","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementSchedulebidSchedulesets(e,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidSchedulesets';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids/{bidId}/schedulesets","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementSchedulebids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids","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)}getWorkforcemanagementSchedulingpreferencesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedulingpreferences/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.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)}patchWorkforcemanagementAdherenceAdjustment(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "adjustmentId" when calling patchWorkforcemanagementAdherenceAdjustment';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/{adjustmentId}","PATCH",{adjustmentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementAgentAdherenceAdjustment(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceAdjustment';if(n==null||n==="")throw'Missing the required parameter "adjustmentId" when calling patchWorkforcemanagementAgentAdherenceAdjustment';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentAdherenceAdjustment';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/adjustments/{adjustmentId}","PATCH",{agentId:e,adjustmentId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}patchWorkforcemanagementAgentUnavailabletimes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentUnavailabletimes';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentUnavailabletimes';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes","PATCH",{agentId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementBusinessunitActivitycodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycodesBulk';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivitycodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/bulk","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/bulk","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(n==null||n==="")throw'Missing the required parameter "reasonCodeId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/{reasonCodeId}","PATCH",{businessUnitId:e,reasonCodeId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAdherenceAdjustmentsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/settings","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementBusinessunitOpportunity(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitOpportunity';if(n==null||n==="")throw'Missing the required parameter "opportunityId" when calling patchWorkforcemanagementBusinessunitOpportunity';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitOpportunity';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/{opportunityId}","PATCH",{businessUnitId:e,opportunityId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}patchWorkforcemanagementBusinessunitSchedulebid(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebid';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebid';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}","PATCH",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulebidGroup(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}","PATCH",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';if(a==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences","PATCH",{businessUnitId:e,bidId:n,bidGroupId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.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)}patchWorkforcemanagementBusinessunitSchedulingpreferencesSettings(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingpreferencesSettings';if(n==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulingpreferencesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulingpreferences/settings","PATCH",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}patchWorkforcemanagementSchedulingpreferences(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementSchedulingpreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulingpreferences","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}postWorkforcemanagementAdherenceAdjustments(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceAdjustments';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceAdjustmentsQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceAdjustmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/adjustments/query","POST",{},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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)}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)}postWorkforcemanagementAgentAdherenceAdjustmentsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceAdjustmentsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceAdjustmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/adjustments/query","POST",{agentId:e},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}postWorkforcemanagementAgentSchedulingpreferencesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentSchedulingpreferencesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentSchedulingpreferencesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/schedulingpreferences/query","POST",{agentId:e},{},{},{},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)}postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkAdd(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkAdd';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/opportunities/enrollments/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkStatusesUpdate(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsOpportunitiesEnrollmentsBulkStatusesUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/opportunities/enrollments/bulk/statuses/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentsOpportunitiesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsOpportunitiesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/opportunities/query","POST",{},{expand:n.expand,forceDownloadService:n.forceDownloadService},{},{},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)}postWorkforcemanagementBusinessunitActivityplanDeletionsJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs(e,n,i,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(a==null||a==="")throw'Missing the required parameter "sessionId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';if(r==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionUsersDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/{sessionId}/users/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n,occurrenceId:i,sessionId:a},{},{},{},r,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs(e,n,i,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';if(i==null||i==="")throw'Missing the required parameter "occurrenceId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';if(a==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplanOccurrenceSessionsDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/{occurrenceId}/sessions/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n,occurrenceId:i},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs';if(n==null||n==="")throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplanOccurrencesDeletionsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/occurrences/deletions/jobs","POST",{businessUnitId:e,activityPlanId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query","POST",{businessUnitId:e},{before:i.before,after:i.after,pageSize:i.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsQueryJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/query/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceAdjustmentsReasoncodesBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/adjustments/reasoncodes/bulk","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)}postWorkforcemanagementBusinessunitDecisionmetricsUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdate';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/decisionmetrics/update","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitDecisionmetricsUpdateUploadurl(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdateUploadurl';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitDecisionmetricsUpdateUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/decisionmetrics/update/uploadurl","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)}postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportForecastJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/forecast/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportHistoricalJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/historical/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJobs(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJobs';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionExportSnapshotJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/export/snapshot/jobs","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkAdd(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkAdd';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkAdd';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/add","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkPublish(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkPublish';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkPublish';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/publish","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkRemove(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkRemove';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkRemove';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/remove","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesBulkStatusesUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkStatusesUpdate';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesBulkStatusesUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/bulk/statuses/update","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsBulkStatusesUpdate(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsBulkStatusesUpdate';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsBulkStatusesUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/enrollments/bulk/statuses/update","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesEnrollmentsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/enrollments/query","POST",{businessUnitId:e},{expand:i.expand,forceDownloadService:i.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesExternalactivitiesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesExternalactivitiesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesExternalactivitiesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/externalactivities/query","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitOpportunitiesQuery(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitOpportunitiesQuery';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitOpportunitiesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/opportunities/query","POST",{businessUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},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)}postWorkforcemanagementBusinessunitSchedulebidCopy(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/copy","POST",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitSchedulebidGroups(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';if(n==null||n==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups","POST",{businessUnitId:e,bidId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitSchedulebids(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebids';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids","POST",{businessUnitId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';if(n==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/effectiveschedulesets","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)}postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitGranularityconversion';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/granularityconversion","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitValuesImport(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImport';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImport';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values/import","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values/import/uploadurl","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitValuesQuery(e,n,i,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesQuery';if(n==null||n==="")throw'Missing the required parameter "timeOffLimitId" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values/query","POST",{businessUnitId:e,timeOffLimitId:n},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],a.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},{includeOnly:a.includeOnly},{},{},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)}postWorkforcemanagementSchedulingpreferencesQuery(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementSchedulingpreferencesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulingpreferences/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],n.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",{},{includeOnly:n.includeOnly},{},{},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)}postWorkforcemanagementUsersActivity(e,n){if(n=n||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementUsersActivity';return this.apiClient.callApi("/api/v2/workforcemanagement/users/activity","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)}putWorkforcemanagementSchedulebidPreference(e,n,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling putWorkforcemanagementSchedulebidPreference';if(n==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementSchedulebidPreference';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulebids/{bidId}/preference","PUT",{bidId:e},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Iy=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=ax,this.AgentAssistantsApi=rx,this.AgentCopilotApi=sx,this.AgentUIApi=ox,this.AlertingApi=lx,this.AnalyticsApi=ux,this.ArchitectApi=cx,this.AssistantCopilotVariationsApi=px,this.AuditApi=dx,this.AuthorizationApi=hx,this.BackgroundAssistantApi=gx,this.BillingApi=mx,this.BusinessRulesApi=fx,this.CarrierServicesApi=wx,this.CaseManagementApi=vx,this.ChatApi=Cx,this.CoachingApi=Ax,this.ContentManagementApi=bx,this.ConversationsApi=xx,this.DataExtensionsApi=yx,this.DataPrivacyApi=Px,this.DependenciesApi=jx,this.DownloadsApi=Sx,this.EmailsApi=Ox,this.EmployeeEngagementApi=Tx,this.EventsApi=kx,this.ExternalContactsApi=Mx,this.FaxApi=Ex,this.FlowsApi=qx,this.GamificationApi=_x,this.GeneralDataProtectionRegulationApi=Hx,this.GeolocationApi=Wx,this.GreetingsApi=Rx,this.GroupsApi=Ix,this.IdentityProviderApi=zx,this.InfrastructureAsCodeApi=Dx,this.IntegrationsApi=Gx,this.IntentsApi=Nx,this.JourneyApi=Ux,this.KnowledgeApi=$x,this.LanguageUnderstandingApi=Bx,this.LanguagesApi=Lx,this.LearningApi=Fx,this.LicenseApi=Vx,this.LocationsApi=Jx,this.LogCaptureApi=Kx,this.MessagingApi=Zx,this.MobileDevicesApi=Qx,this.NotificationsApi=Xx,this.OAuthApi=Yx,this.ObjectsApi=ey,this.OperationalEventsApi=ny,this.OrganizationApi=iy,this.OrganizationAuthorizationApi=ty,this.OutboundApi=ay,this.PresenceApi=ry,this.ProcessAutomationApi=sy,this.QualityApi=oy,this.RecordingApi=ly,this.ResponseManagementApi=uy,this.RoutingApi=cy,this.SCIMApi=py,this.ScreenMonitoringApi=dy,this.ScriptsApi=hy,this.SearchApi=gy,this.SettingsApi=my,this.SocialMediaApi=fy,this.SpeechTextAnalyticsApi=wy,this.StationsApi=vy,this.SuggestApi=Cy,this.TaskManagementApi=Ay,this.TeamsApi=by,this.TelephonyApi=xy,this.TelephonyProvidersEdgeApi=yy,this.TextbotsApi=Py,this.TokensApi=jy,this.UploadsApi=Sy,this.UsageApi=Oy,this.UserRecordingsApi=Ty,this.UsersApi=ky,this.UsersRulesApi=My,this.UtilitiesApi=Ey,this.VirtualAgentsApi=qy,this.VoicemailApi=_y,this.WebDeploymentsApi=Hy,this.WebMessagingApi=Wy,this.WorkforceManagementApi=Ry,this.PureCloudRegionHosts=Lne,this.AbstractHttpClient=Pu,this.DefaultHttpClient=Ch,this.HttpRequestOptions=Ma}},Vne=new Iy;m1.exports=Vne});var ee={};Uh(ee,{BRAND:()=>$z,DIRTY:()=>Ia,EMPTY_PATH:()=>bz,INVALID:()=>X,NEVER:()=>SD,OK:()=>In,ParseStatus:()=>kn,Schema:()=>re,ZodAny:()=>ia,ZodArray:()=>zt,ZodBigInt:()=>Da,ZodBoolean:()=>Ga,ZodBranded:()=>uo,ZodCatch:()=>Qa,ZodDate:()=>Na,ZodDefault:()=>Za,ZodDiscriminatedUnion:()=>_u,ZodEffects:()=>Gi,ZodEnum:()=>Ja,ZodError:()=>ni,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Wu,ZodIntersection:()=>La,ZodIssueCode:()=>k,ZodLazy:()=>Fa,ZodLiteral:()=>Va,ZodMap:()=>Kr,ZodNaN:()=>Qr,ZodNativeEnum:()=>Ka,ZodNever:()=>Xi,ZodNull:()=>$a,ZodNullable:()=>wt,ZodNumber:()=>za,ZodObject:()=>ii,ZodOptional:()=>zi,ZodParsedType:()=>I,ZodPipeline:()=>co,ZodPromise:()=>ta,ZodReadonly:()=>Xa,ZodRecord:()=>Hu,ZodSchema:()=>re,ZodSet:()=>Zr,ZodString:()=>na,ZodSymbol:()=>Vr,ZodTransformer:()=>Gi,ZodTuple:()=>ft,ZodType:()=>re,ZodUndefined:()=>Ua,ZodUnion:()=>Ba,ZodUnknown:()=>It,ZodVoid:()=>Jr,addIssueToContext:()=>H,any:()=>Xz,array:()=>iD,bigint:()=>Vz,boolean:()=>cP,coerce:()=>jD,custom:()=>oP,date:()=>Jz,datetimeRegex:()=>rP,defaultErrorMap:()=>Wt,discriminatedUnion:()=>rD,effect:()=>wD,enum:()=>gD,function:()=>pD,getErrorMap:()=>Br,getParsedType:()=>mt,instanceof:()=>Lz,intersection:()=>sD,isAborted:()=>Eu,isAsync:()=>Lr,isDirty:()=>qu,isValid:()=>ea,late:()=>Bz,lazy:()=>dD,literal:()=>hD,makeIssue:()=>lo,map:()=>uD,nan:()=>Fz,nativeEnum:()=>mD,never:()=>eD,null:()=>Qz,nullable:()=>CD,number:()=>uP,object:()=>Fh,objectUtil:()=>$h,oboolean:()=>PD,onumber:()=>yD,optional:()=>vD,ostring:()=>xD,pipeline:()=>bD,preprocess:()=>AD,promise:()=>fD,quotelessJson:()=>vz,record:()=>lD,set:()=>cD,setErrorMap:()=>Az,strictObject:()=>tD,string:()=>lP,symbol:()=>Kz,transformer:()=>wD,tuple:()=>oD,undefined:()=>Zz,union:()=>aD,unknown:()=>Yz,util:()=>pe,void:()=>nD});var pe;(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})(pe||(pe={}));var $h;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})($h||($h={}));var I=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),mt=t=>{switch(typeof t){case"undefined":return I.undefined;case"string":return I.string;case"number":return Number.isNaN(t)?I.nan:I.number;case"boolean":return I.boolean;case"function":return I.function;case"bigint":return I.bigint;case"symbol":return I.symbol;case"object":return Array.isArray(t)?I.array:t===null?I.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?I.promise:typeof Map<"u"&&t instanceof Map?I.map:typeof Set<"u"&&t instanceof Set?I.set:typeof Date<"u"&&t instanceof Date?I.date:I.object;default:return I.unknown}};var k=pe.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"]),vz=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ni=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()}};ni.create=t=>new ni(t);var Cz=(t,e)=>{let n;switch(t.code){case k.invalid_type:t.received===I.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case k.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,pe.jsonStringifyReplacer)}`;break;case k.unrecognized_keys:n=`Unrecognized key(s) in object: ${pe.joinValues(t.keys,", ")}`;break;case k.invalid_union:n="Invalid input";break;case k.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${pe.joinValues(t.options)}`;break;case k.invalid_enum_value:n=`Invalid enum value. Expected ${pe.joinValues(t.options)}, received '${t.received}'`;break;case k.invalid_arguments:n="Invalid function arguments";break;case k.invalid_return_type:n="Invalid function return type";break;case k.invalid_date:n="Invalid date";break;case k.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}"`:pe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case k.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 k.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 k.custom:n="Invalid input";break;case k.invalid_intersection_types:n="Intersection results could not be merged";break;case k.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case k.not_finite:n="Number must be finite";break;default:n=e.defaultError,pe.assertNever(t)}return{message:n}},Wt=Cz;var eP=Wt;function Az(t){eP=t}function Br(){return eP}var lo=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(c=>!!c).slice().reverse();for(let c of l)o=c(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},bz=[];function H(t,e){let n=Br(),i=lo({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Wt?void 0:Wt].filter(a=>!!a)});t.common.issues.push(i)}var kn=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 X;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 X;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}}},X=Object.freeze({status:"aborted"}),Ia=t=>({status:"dirty",value:t}),In=t=>({status:"valid",value:t}),Eu=t=>t.status==="aborted",qu=t=>t.status==="dirty",ea=t=>t.status==="valid",Lr=t=>typeof Promise<"u"&&t instanceof Promise;var $;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})($||($={}));var Di=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}},nP=(t,e)=>{if(ea(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 ni(t.common.issues);return this._error=n,this._error}}};function te(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 re=class{get description(){return this._def.description}_getType(e){return mt(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:mt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new kn,ctx:{common:e.parent.common,data:e.data,parsedType:mt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(Lr(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:mt(e)},a=this._parseSync({data:e,path:i.path,parent:i});return nP(i,a)}"~validate"(e){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:mt(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:n});return ea(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=>ea(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:mt(e)},a=this._parse({data:e,path:i.path,parent:i}),r=await(Lr(a)?a:Promise.resolve(a));return nP(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:k.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 Gi({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 zi.create(this,this._def)}nullable(){return wt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return zt.create(this)}promise(){return ta.create(this,this._def)}or(e){return Ba.create([this,e],this._def)}and(e){return La.create(this,e,this._def)}transform(e){return new Gi({...te(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let n=typeof e=="function"?e:()=>e;return new Za({...te(this._def),innerType:this,defaultValue:n,typeName:E.ZodDefault})}brand(){return new uo({typeName:E.ZodBranded,type:this,...te(this._def)})}catch(e){let n=typeof e=="function"?e:()=>e;return new Qa({...te(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 co.create(this,e)}readonly(){return Xa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},xz=/^c[^\s-]{8,}$/i,yz=/^[0-9a-z]+$/,Pz=/^[0-9A-HJKMNP-TV-Z]{26}$/i,jz=/^[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,Sz=/^[a-z0-9_-]{21}$/i,Oz=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Tz=/^[-+]?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)?)??$/,kz=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Mz="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",Bh,Ez=/^(?:(?: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])$/,qz=/^(?:(?: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])$/,_z=/^(([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]))$/,Hz=/^(([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])$/,Wz=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Rz=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tP="((\\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])))",Iz=new RegExp(`^${tP}$`);function aP(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 zz(t){return new RegExp(`^${aP(t)}$`)}function rP(t){let e=`${tP}T${aP(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 Dz(t,e){return!!((e==="v4"||!e)&&Ez.test(t)||(e==="v6"||!e)&&_z.test(t))}function Gz(t,e){if(!Oz.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 Nz(t,e){return!!((e==="v4"||!e)&&qz.test(t)||(e==="v6"||!e)&&Hz.test(t))}var na=class t extends re{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==I.string){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_type,expected:I.string,received:r.parsedType}),X}let i=new kn,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),H(a,{code:k.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:k.invalid_string,...$.errToObj(i)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...$.errToObj(e)})}url(e){return this._addCheck({kind:"url",...$.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...$.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...$.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...$.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...$.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...$.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...$.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...$.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...$.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...$.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...$.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...$.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,...$.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,...$.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...$.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...$.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...$.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...$.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...$.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...$.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...$.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...$.errToObj(n)})}nonempty(e){return this.min(1,$.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 na({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...te(t)});function Uz(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 za=class t extends re{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)!==I.number){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_type,expected:I.number,received:r.parsedType}),X}let i,a=new kn;for(let r of this._def.checks)r.kind==="int"?pe.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),H(i,{code:k.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),H(i,{code:k.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?Uz(e.data,r.value)!==0&&(i=this._getOrReturnCtx(e,i),H(i,{code:k.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),H(i,{code:k.not_finite,message:r.message}),a.dirty()):pe.assertNever(r);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,$.toString(n))}gt(e,n){return this.setLimit("min",e,!1,$.toString(n))}lte(e,n){return this.setLimit("max",e,!0,$.toString(n))}lt(e,n){return this.setLimit("max",e,!1,$.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:$.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:$.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:$.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:$.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$.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"&&pe.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 za({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...te(t)});var Da=class t extends re{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)!==I.bigint)return this._getInvalidInput(e);let i,a=new kn;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),H(i,{code:k.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),H(i,{code:k.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):pe.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return H(n,{code:k.invalid_type,expected:I.bigint,received:n.parsedType}),X}gte(e,n){return this.setLimit("min",e,!0,$.toString(n))}gt(e,n){return this.setLimit("min",e,!1,$.toString(n))}lte(e,n){return this.setLimit("max",e,!0,$.toString(n))}lt(e,n){return this.setLimit("max",e,!1,$.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:$.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:$.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:$.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 Da({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...te(t)});var Ga=class extends re{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==I.boolean){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.boolean,received:i.parsedType}),X}return In(e.data)}};Ga.create=t=>new Ga({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...te(t)});var Na=class t extends re{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==I.date){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_type,expected:I.date,received:r.parsedType}),X}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return H(r,{code:k.invalid_date}),X}let i=new kn,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),H(a,{code:k.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):pe.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:$.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:$.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 Na({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...te(t)});var Vr=class extends re{_parse(e){if(this._getType(e)!==I.symbol){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.symbol,received:i.parsedType}),X}return In(e.data)}};Vr.create=t=>new Vr({typeName:E.ZodSymbol,...te(t)});var Ua=class extends re{_parse(e){if(this._getType(e)!==I.undefined){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.undefined,received:i.parsedType}),X}return In(e.data)}};Ua.create=t=>new Ua({typeName:E.ZodUndefined,...te(t)});var $a=class extends re{_parse(e){if(this._getType(e)!==I.null){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.null,received:i.parsedType}),X}return In(e.data)}};$a.create=t=>new $a({typeName:E.ZodNull,...te(t)});var ia=class extends re{constructor(){super(...arguments),this._any=!0}_parse(e){return In(e.data)}};ia.create=t=>new ia({typeName:E.ZodAny,...te(t)});var It=class extends re{constructor(){super(...arguments),this._unknown=!0}_parse(e){return In(e.data)}};It.create=t=>new It({typeName:E.ZodUnknown,...te(t)});var Xi=class extends re{_parse(e){let n=this._getOrReturnCtx(e);return H(n,{code:k.invalid_type,expected:I.never,received:n.parsedType}),X}};Xi.create=t=>new Xi({typeName:E.ZodNever,...te(t)});var Jr=class extends re{_parse(e){if(this._getType(e)!==I.undefined){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.void,received:i.parsedType}),X}return In(e.data)}};Jr.create=t=>new Jr({typeName:E.ZodVoid,...te(t)});var zt=class t extends re{_parse(e){let{ctx:n,status:i}=this._processInputParams(e),a=this._def;if(n.parsedType!==I.array)return H(n,{code:k.invalid_type,expected:I.array,received:n.parsedType}),X;if(a.exactLength!==null){let s=n.data.length>a.exactLength.value,o=n.data.lengtha.maxLength.value&&(H(n,{code:k.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 Di(n,s,n.path,o)))).then(s=>kn.mergeArray(i,s));let r=[...n.data].map((s,o)=>a.type._parseSync(new Di(n,s,n.path,o)));return kn.mergeArray(i,r)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:$.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:$.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:$.toString(n)}})}nonempty(e){return this.min(1,e)}};zt.create=(t,e)=>new zt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...te(e)});function Fr(t){if(t instanceof ii){let e={};for(let n in t.shape){let i=t.shape[n];e[n]=zi.create(Fr(i))}return new ii({...t._def,shape:()=>e})}else return t instanceof zt?new zt({...t._def,type:Fr(t.element)}):t instanceof zi?zi.create(Fr(t.unwrap())):t instanceof wt?wt.create(Fr(t.unwrap())):t instanceof ft?ft.create(t.items.map(e=>Fr(e))):t}var ii=class t extends re{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=pe.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==I.object){let c=this._getOrReturnCtx(e);return H(c,{code:k.invalid_type,expected:I.object,received:c.parsedType}),X}let{status:i,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Xi&&this._def.unknownKeys==="strip"))for(let c in a.data)s.includes(c)||o.push(c);let l=[];for(let c of s){let u=r[c],p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Di(a,p,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof Xi){let c=this._def.unknownKeys;if(c==="passthrough")for(let u of o)l.push({key:{status:"valid",value:u},value:{status:"valid",value:a.data[u]}});else if(c==="strict")o.length>0&&(H(a,{code:k.unrecognized_keys,keys:o}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let u of o){let p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Di(a,p,a.path,u)),alwaysSet:u in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let c=[];for(let u of l){let p=await u.key,h=await u.value;c.push({key:p,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>kn.mergeObjectSync(i,c)):kn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return $.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:$.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 pe.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 pe.objectKeys(this.shape))e[i]||(n[i]=this.shape[i]);return new t({...this._def,shape:()=>n})}deepPartial(){return Fr(this)}partial(e){let n={};for(let i of pe.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 pe.objectKeys(this.shape))if(e&&!e[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof zi;)r=r._def.innerType;n[i]=r}return new t({...this._def,shape:()=>n})}keyof(){return sP(pe.objectKeys(this.shape))}};ii.create=(t,e)=>new ii({shape:()=>t,unknownKeys:"strip",catchall:Xi.create(),typeName:E.ZodObject,...te(e)});ii.strictCreate=(t,e)=>new ii({shape:()=>t,unknownKeys:"strict",catchall:Xi.create(),typeName:E.ZodObject,...te(e)});ii.lazycreate=(t,e)=>new ii({shape:t,unknownKeys:"strip",catchall:Xi.create(),typeName:E.ZodObject,...te(e)});var Ba=class extends re{_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 ni(o.ctx.common.issues));return H(n,{code:k.invalid_union,unionErrors:s}),X}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 c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!r&&(r={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new ni(l));return H(n,{code:k.invalid_union,unionErrors:o}),X}}get options(){return this._def.options}};Ba.create=(t,e)=>new Ba({options:t,typeName:E.ZodUnion,...te(e)});var Rt=t=>t instanceof Fa?Rt(t.schema):t instanceof Gi?Rt(t.innerType()):t instanceof Va?[t.value]:t instanceof Ja?t.options:t instanceof Ka?pe.objectValues(t.enum):t instanceof Za?Rt(t._def.innerType):t instanceof Ua?[void 0]:t instanceof $a?[null]:t instanceof zi?[void 0,...Rt(t.unwrap())]:t instanceof wt?[null,...Rt(t.unwrap())]:t instanceof uo||t instanceof Xa?Rt(t.unwrap()):t instanceof Qa?Rt(t._def.innerType):[],_u=class t extends re{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==I.object)return H(n,{code:k.invalid_type,expected:I.object,received:n.parsedType}),X;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}):(H(n,{code:k.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),X)}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=Rt(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,...te(i)})}};function Lh(t,e){let n=mt(t),i=mt(e);if(t===e)return{valid:!0,data:t};if(n===I.object&&i===I.object){let a=pe.objectKeys(e),r=pe.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};Object.prototype.hasOwnProperty.call(s,"__proto__")&&delete s.__proto__;for(let o of r){if(o==="__proto__")continue;let l=Lh(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===I.array&&i===I.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(Eu(r)||Eu(s))return X;let o=Lh(r.value,s.value);return o.valid?((qu(r)||qu(s))&&n.dirty(),{status:n.value,value:o.data}):(H(i,{code:k.invalid_intersection_types}),X)};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}))}};La.create=(t,e,n)=>new La({left:t,right:e,typeName:E.ZodIntersection,...te(n)});var ft=class t extends re{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==I.array)return H(i,{code:k.invalid_type,expected:I.array,received:i.parsedType}),X;if(i.data.lengththis._def.items.length&&(H(i,{code:k.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 Di(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(r).then(s=>kn.mergeArray(n,s)):kn.mergeArray(n,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};ft.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ft({items:t,typeName:E.ZodTuple,rest:null,...te(e)})};var Hu=class t extends re{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!==I.object)return H(i,{code:k.invalid_type,expected:I.object,received:i.parsedType}),X;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in i.data)a.push({key:r._parse(new Di(i,o,i.path,o)),value:s._parse(new Di(i,i.data[o],i.path,o)),alwaysSet:o in i.data});return i.common.async?kn.mergeObjectAsync(n,a):kn.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(e,n,i){return n instanceof re?new t({keyType:e,valueType:n,typeName:E.ZodRecord,...te(i)}):new t({keyType:na.create(),valueType:e,typeName:E.ZodRecord,...te(n)})}},Kr=class extends re{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!==I.map)return H(i,{code:k.invalid_type,expected:I.map,received:i.parsedType}),X;let a=this._def.keyType,r=this._def.valueType,s=[...i.data.entries()].map(([o,l],c)=>({key:a._parse(new Di(i,o,i.path,[c,"key"])),value:r._parse(new Di(i,l,i.path,[c,"value"]))}));if(i.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return X;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),o.set(c.value,u.value)}return{status:n.value,value:o}})}else{let o=new Map;for(let l of s){let c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return X;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),o.set(c.value,u.value)}return{status:n.value,value:o}}}};Kr.create=(t,e,n)=>new Kr({valueType:e,keyType:t,typeName:E.ZodMap,...te(n)});var Zr=class t extends re{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==I.set)return H(i,{code:k.invalid_type,expected:I.set,received:i.parsedType}),X;let a=this._def;a.minSize!==null&&i.data.sizea.maxSize.value&&(H(i,{code:k.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 c=new Set;for(let u of l){if(u.status==="aborted")return X;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}let o=[...i.data.values()].map((l,c)=>r._parse(new Di(i,l,i.path,c)));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:$.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:$.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};Zr.create=(t,e)=>new Zr({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...te(e)});var Wu=class t extends re{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==I.function)return H(n,{code:k.invalid_type,expected:I.function,received:n.parsedType}),X;function i(o,l){return lo({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Br(),Wt].filter(c=>!!c),issueData:{code:k.invalid_arguments,argumentsError:l}})}function a(o,l){return lo({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Br(),Wt].filter(c=>!!c),issueData:{code:k.invalid_return_type,returnTypeError:l}})}let r={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof ta){let o=this;return In(async function(...l){let c=new ni([]),u=await o._def.args.parseAsync(l,r).catch(g=>{throw c.addIssue(i(l,g)),c}),p=await Reflect.apply(s,this,u);return await o._def.returns._def.type.parseAsync(p,r).catch(g=>{throw c.addIssue(a(p,g)),c})})}else{let o=this;return In(function(...l){let c=o._def.args.safeParse(l,r);if(!c.success)throw new ni([i(l,c.error)]);let u=Reflect.apply(s,this,c.data),p=o._def.returns.safeParse(u,r);if(!p.success)throw new ni([a(u,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:ft.create(e).rest(It.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||ft.create([]).rest(It.create()),returns:n||It.create(),typeName:E.ZodFunction,...te(i)})}},Fa=class extends re{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})}};Fa.create=(t,e)=>new Fa({getter:t,typeName:E.ZodLazy,...te(e)});var Va=class extends re{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return H(n,{received:n.data,code:k.invalid_literal,expected:this._def.value}),X}return{status:"valid",value:e.data}}get value(){return this._def.value}};Va.create=(t,e)=>new Va({value:t,typeName:E.ZodLiteral,...te(e)});function sP(t,e){return new Ja({values:t,typeName:E.ZodEnum,...te(e)})}var Ja=class t extends re{_parse(e){if(typeof e.data!="string"){let n=this._getOrReturnCtx(e),i=this._def.values;return H(n,{expected:pe.joinValues(i),received:n.parsedType,code:k.invalid_type}),X}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 H(n,{received:n.data,code:k.invalid_enum_value,options:i}),X}return In(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})}};Ja.create=sP;var Ka=class extends re{_parse(e){let n=pe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==I.string&&i.parsedType!==I.number){let a=pe.objectValues(n);return H(i,{expected:pe.joinValues(a),received:i.parsedType,code:k.invalid_type}),X}if(this._cache||(this._cache=new Set(pe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=pe.objectValues(n);return H(i,{received:i.data,code:k.invalid_enum_value,options:a}),X}return In(e.data)}get enum(){return this._def.values}};Ka.create=(t,e)=>new Ka({values:t,typeName:E.ZodNativeEnum,...te(e)});var ta=class extends re{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==I.promise&&n.common.async===!1)return H(n,{code:k.invalid_type,expected:I.promise,received:n.parsedType}),X;let i=n.parsedType===I.promise?n.data:Promise.resolve(n.data);return In(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}};ta.create=(t,e)=>new ta({type:t,typeName:E.ZodPromise,...te(e)});var Gi=class extends re{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=>{H(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 X;let l=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return l.status==="aborted"?X:l.status==="dirty"?Ia(l.value):n.value==="dirty"?Ia(l.value):l});{if(n.value==="aborted")return X;let o=this._def.schema._parseSync({data:s,path:i.path,parent:i});return o.status==="aborted"?X:o.status==="dirty"?Ia(o.value):n.value==="dirty"?Ia(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"?X:(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"?X:(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(!ea(s))return X;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=>ea(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:n.value,value:o})):X);pe.assertNever(a)}};Gi.create=(t,e,n)=>new Gi({schema:t,typeName:E.ZodEffects,effect:e,...te(n)});Gi.createWithPreprocess=(t,e,n)=>new Gi({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...te(n)});var zi=class extends re{_parse(e){return this._getType(e)===I.undefined?In(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};zi.create=(t,e)=>new zi({innerType:t,typeName:E.ZodOptional,...te(e)});var wt=class extends re{_parse(e){return this._getType(e)===I.null?In(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};wt.create=(t,e)=>new wt({innerType:t,typeName:E.ZodNullable,...te(e)});var Za=class extends re{_parse(e){let{ctx:n}=this._processInputParams(e),i=n.data;return n.parsedType===I.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Za.create=(t,e)=>new Za({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...te(e)});var Qa=class extends re{_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 Lr(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ni(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ni(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Qa.create=(t,e)=>new Qa({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...te(e)});var Qr=class extends re{_parse(e){if(this._getType(e)!==I.nan){let i=this._getOrReturnCtx(e);return H(i,{code:k.invalid_type,expected:I.nan,received:i.parsedType}),X}return{status:"valid",value:e.data}}};Qr.create=t=>new Qr({typeName:E.ZodNaN,...te(t)});var $z=Symbol("zod_brand"),uo=class extends re{_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}},co=class t extends re{_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"?X:r.status==="dirty"?(n.dirty(),Ia(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"?X: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})}},Xa=class extends re{_parse(e){let n=this._def.innerType._parse(e),i=a=>(ea(a)&&(a.value=Object.freeze(a.value)),a);return Lr(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}};Xa.create=(t,e)=>new Xa({innerType:t,typeName:E.ZodReadonly,...te(e)});function iP(t,e){let n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function oP(t,e={},n){return t?ia.create().superRefine((i,a)=>{let r=t(i);if(r instanceof Promise)return r.then(s=>{if(!s){let o=iP(e,i),l=o.fatal??n??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=iP(e,i),o=s.fatal??n??!0;a.addIssue({code:"custom",...s,fatal:o})}}):ia.create()}var Bz={object:ii.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 Lz=(t,e={message:`Input not instance of ${t.name}`})=>oP(n=>n instanceof t,e),lP=na.create,uP=za.create,Fz=Qr.create,Vz=Da.create,cP=Ga.create,Jz=Na.create,Kz=Vr.create,Zz=Ua.create,Qz=$a.create,Xz=ia.create,Yz=It.create,eD=Xi.create,nD=Jr.create,iD=zt.create,Fh=ii.create,tD=ii.strictCreate,aD=Ba.create,rD=_u.create,sD=La.create,oD=ft.create,lD=Hu.create,uD=Kr.create,cD=Zr.create,pD=Wu.create,dD=Fa.create,hD=Va.create,gD=Ja.create,mD=Ka.create,fD=ta.create,wD=Gi.create,vD=zi.create,CD=wt.create,AD=Gi.createWithPreprocess,bD=co.create,xD=()=>lP().optional(),yD=()=>uP().optional(),PD=()=>cP().optional(),jD={string:(t=>na.create({...t,coerce:!0})),number:(t=>za.create({...t,coerce:!0})),boolean:(t=>Ga.create({...t,coerce:!0})),bigint:(t=>Da.create({...t,coerce:!0})),date:(t=>Na.create({...t,coerce:!0}))};var SD=X;var Y={};Uh(Y,{BIGINT_FORMAT_RANGES:()=>Du,CONSTANT_CATCH:()=>OP,Class:()=>Kh,NUMBER_FORMAT_RANGES:()=>ho,aborted:()=>Yi,allowsEval:()=>eg,assert:()=>_D,assertEqual:()=>TD,assertIs:()=>ED,assertNever:()=>qD,assertNotEqual:()=>kD,assignProp:()=>ti,attachSchema:()=>Nu,base64ToUint8Array:()=>jP,base64urlToUint8Array:()=>LD,cached:()=>ns,captureStackTrace:()=>Iu,cleanEnum:()=>BD,cleanRegex:()=>po,clone:()=>ai,cloneDef:()=>RD,codePointLength:()=>go,constantCatch:()=>TP,createTransparentProxy:()=>UD,defineLazy:()=>dP,defineLazyInternal:()=>je,derived:()=>KD,esc:()=>Xh,escapeRegex:()=>Gt,explicitlyAborted:()=>ag,extend:()=>vP,finalizeIssue:()=>et,floatSafeRemainder:()=>Qh,getElementAtPath:()=>ID,getEnumValues:()=>Yr,getLengthableOrigin:()=>mo,getParsedType:()=>ND,getSizableOrigin:()=>PP,hexToUint8Array:()=>VD,hide:()=>Uu,installLazyProp:()=>og,isObject:()=>er,isPlainObject:()=>ra,issue:()=>ts,joinValues:()=>Ru,jsonStringifyReplacer:()=>es,members:()=>sg,merge:()=>bP,mergeDefs:()=>Ct,normalizeParams:()=>K,nullish:()=>Zh,numKeys:()=>GD,objectClone:()=>HD,omit:()=>wP,optionalKeys:()=>tg,own:()=>vt,parsedType:()=>rg,partial:()=>xP,pick:()=>fP,prefixIssues:()=>Nt,primitiveTypes:()=>mP,promiseAllObject:()=>zD,propertyKeyTypes:()=>ig,randomString:()=>DD,rawShape:()=>is,required:()=>yP,safeExtend:()=>AP,shallowClone:()=>ng,slugify:()=>Yh,stringifyPrimitive:()=>zu,toZod:()=>MD,uint8ArrayToBase64:()=>SP,uint8ArrayToBase64url:()=>FD,uint8ArrayToHex:()=>JD,unwrapMessage:()=>Xr});function TD(t){return t}function kD(t){return t}function MD(){return t=>t}function ED(t){}function qD(t){throw new Error("Unexpected value in exhaustive check")}function _D(t){}function Yr(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 Ru(t,e="|"){return t.map(n=>zu(n)).join(e)}function es(t,e){return typeof e=="bigint"?e.toString():e}var Jh=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function ns(t){return new Jh(t)}function Zh(t){return t==null}function po(t){let e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function Qh(t,e){let n=t/e,i=Math.round(n),a=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i){let o=e._zod.def.shape[r];return i?i(o,r):o}):gP(t,r,i?i(s.value,r):s.value))}}function WD(t,e){for(let n of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,n);i.enumerable&&(i.get?hP(t,n,()=>e[n]):gP(t,n,i.value))}}function Ct(...t){let e={};for(let n of t){let i=Object.getOwnPropertyDescriptors(n);Object.assign(e,i)}return Object.defineProperties({},e)}function RD(t){return Ct(t._zod.def)}function ID(t,e){return e?e.reduce((n,i)=>n?.[i],t):t}function zD(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 er(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var eg=ns(()=>{if(ri.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function ra(t){if(er(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let n=e.prototype;return!(er(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ng(t){return ra(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function GD(t){let e=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}var ND=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}`)}},ig=new Set(["string","number","symbol"]),mP=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Gt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ai(t,e,n){let i=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(i._zod.parent=t),i}function K(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 UD(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 zu(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function tg(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}var ho={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]},Du={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function fP(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={};return Ya(r,t,Gu(t,e)),ai(t,Ct(n,{shape:r,checks:[]}))}function Gu(t,e){let n=Dt(t),i=[];for(let a of Reflect.ownKeys(e)){if(!Object.getOwnPropertyDescriptor(n,a)?.enumerable)throw new Error(`Unrecognized key: "${String(a)}"`);e[a]&&i.push(a)}return i}function wP(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=new Set(Gu(t,e)),s={};return Ya(s,t,Reflect.ownKeys(Dt(t)).filter(o=>!r.has(o))),ai(t,Ct(n,{shape:s,checks:[]}))}function vP(t,e){if(!ra(e))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let a=Dt(t);for(let r of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(a,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ai(t,Ct(t._zod.def,{shape:CP(t,e)}))}function CP(t,e){let n={};return Ya(n,t,Reflect.ownKeys(Dt(t))),WD(n,e),n}function AP(t,e){if(!ra(e))throw new Error("Invalid input to safeExtend: expected a plain object");return ai(t,Ct(t._zod.def,{shape:CP(t,e)}))}function bP(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Ya(n,t,Reflect.ownKeys(Dt(t))),Ya(n,e,Reflect.ownKeys(Dt(e)));let i=Ct(t._zod.def,{shape:n,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return ai(t,i)}function xP(t,e,n,i="partial"){let r=e._zod.def.checks;if(r&&r.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let o=n?new Set(Gu(e,n)):void 0,l={};return Ya(l,e,Reflect.ownKeys(Dt(e)),t&&((c,u)=>o&&!o.has(u)?c:new t({type:"optional",innerType:c}))),ai(e,Ct(e._zod.def,{shape:l,checks:[]}))}function yP(t,e,n){let i=n?new Set(Gu(e,n)):void 0,a={};return Ya(a,e,Reflect.ownKeys(Dt(e)),(r,s)=>i&&!i.has(s)?r:new t({type:"nonoptional",innerType:r})),ai(e,Ct(e._zod.def,{shape:a}))}function Yi(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 Xr(t){return typeof t=="string"?t:t?.message}function Nu(t,e,n){var i;for(let a=e;aNumber.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function jP(t){let e=atob(t),n=new Uint8Array(e.length);for(let i=0;ie.toString(16).padStart(2,"0")).join("")}var Kh=class{constructor(...e){}};function sg(t,e){for(let n in e){let i=Object.getOwnPropertyDescriptor(e,n);i.get?Object.defineProperty(t,n,{...i,enumerable:!1}):ZD(t,n,i.value)}}function vt(t,e,n,i=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:i,value:n}),n}function Uu(t,e,n){return vt(t,e,n,!1)}function KD(t,e){for(let n in t){let i=t[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){return vt(this,n,i(this))},set(a){vt(this,n,a)}})}return e}function ZD(t,e,n){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?n:vt(this,e,n.bind(this))},set(i){vt(this,e,i)}})}function QD(t,e){let n=Object.getPrototypeOf(t);return e in n?void 0:n}var Vh,aa=!1,XD={configurable:!0,get(){aa=!0}};function je(t,e,n){let i=Object.getPrototypeOf(t._zod);if(e in i&&Vh!==t._zod){Vh=void 0;return}Vh=t._zod,Object.defineProperty(i,e,{configurable:!0,get(){Object.defineProperty(this,e,XD);let a=aa;aa=!1;try{let r=n(this);return aa?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:r}),aa=aa||a,r}catch(r){throw delete this[e],aa=aa||a,r}},set(a){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:a})}})}function og(t,e,n,i){let a=QD(t,e);a&&Object.defineProperty(a,e,{configurable:!0,get(){let r={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,e,r),r.value=n(this),Object.defineProperty(this,e,r),r.value},set(r){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:i,value:r})}})}var OP="~constantCatch";function TP(t){let e=()=>t;return e[OP]=!0,e}var kP;var lg={value:void 0,enumerable:!1},MP="captureStackTrace"in Error?Error:null;function YD(t){let e=MP;if(e){let n=e.stackTraceLimit;if(typeof n=="number"){try{e.stackTraceLimit=0}catch{return MP=null,new t}try{return new t}finally{e.stackTraceLimit=n}}}return new t}function P(t,e,n,i){let a={};function r(h){this.def=h,this.constr=p,this.traits=new Set}r.prototype=a;let s=n,o=s&&new WeakSet;function l(h,g){if(h._zod){if(h._zod.traits.has(t))return}else{lg.value=new r(g);try{Object.defineProperty(h,"_zod",lg)}finally{lg.value=void 0}}if(h._zod.traits.add(t),e(h,g),o){let m=Object.getPrototypeOf(h),w=h._zod.constr.prototype,f=m;for(;f&&f!==w;)f=Object.getPrototypeOf(f);let A=f??m;o.has(A)||(o.add(A),sg(A,s))}let d=p.prototype;for(let m in d)Object.prototype.hasOwnProperty.call(d,m)&&(m in h||(h[m]=d[m].bind(h)))}let c=i?.Parent??Object;class u extends c{}Object.defineProperty(u,"name",{value:t});function p(h){let g=i?.Parent?YD(u):this;l(g,h);let d=g._zod.deferred;if(d){for(let w of d)w();g._zod.deferred=void 0}let m=globalThis.__zod_globalConfig?.postProcessor;return m&&m(g),g}return Object.defineProperty(p,"init",{value:l}),Object.defineProperty(p,Symbol.hasInstance,{value:h=>i?.Parent&&h instanceof i.Parent?!0:h?._zod?.traits?.has(t)}),Object.defineProperty(p,"name",{value:t}),p}var nt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},as=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(kP=globalThis).__zod_globalConfig??(kP.__zod_globalConfig={});var ri=globalThis.__zod_globalConfig;function Ti(t){return t&&Object.assign(ri,t),ri}function eG(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,es,2)),t.message}function nG(t){this._zod.message=t}var iG={get:eG,set:nG,enumerable:!0,configurable:!0},cg={value:void 0,enumerable:!1},EP=new WeakSet([Object.prototype,Error.prototype]),qP=(t,e)=>{t.name="$ZodError",cg.value=e,Object.defineProperty(t,"issues",cg),cg.value=void 0,Object.defineProperty(t,"message",iG);let n=Object.getPrototypeOf(t);EP.has(n)||(EP.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},_P=P("$ZodError",qP),fo=P("$ZodError",qP,void 0,{Parent:Error});function tG(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:n(),writable:!0,enumerable:!0,configurable:!0}):t[e]=n()),t[e]}function HP(t,e=n=>n.message){let n={},i=[];for(let a of t.issues)a.path.length>0?tG(n,a.path[0],()=>[]).push(e(a)):i.push(e(a));return{formErrors:i,fieldErrors:n}}function WP(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,c=0;for(;c{let e=(n,i,a,r)=>{let s=a?{...a,async:!1}:{async:!1},o=n._zod.run({value:i,issues:[]},s);if(o instanceof Promise)throw new nt;if(o.issues.length){let l=new(r?.Err??t)(o.issues.map(c=>et(c,s,Ti())));throw Iu(l,r?.callee??e),l}return o.value};return e},pg=wo(fo),vo=t=>{let e=async(n,i,a,r)=>{let s=a?{...a,async:!0}:{async:!0},o=n._zod.run({value:i,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){let l=new(r?.Err??t)(o.issues.map(c=>et(c,s,Ti())));throw Iu(l,r?.callee??e),l}return o.value};return e},dg=vo(fo),Co=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 nt;return r.issues.length?RP(t,r.issues,a):{success:!0,data:r.value}},Ao=Co(fo);function RP(t,e,n){let i;return{success:!1,get error(){return i||(i=new t(e.map(a=>et(a,n,Ti()))),e=void 0,n=void 0),i},set error(a){i=a,e=void 0,n=void 0}}}var bo=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?RP(t,r.issues,a):{success:!0,data:r.value}},xo=bo(fo),rG=Symbol.for("zod.compile.invalid"),sG=Symbol.for("zod.compile.fallback"),Bu=((t,e,n)=>{let i=t._zod.bag.validator;if(i!==void 0){if(i(e)!==rG)return!0;if(i.definite===!0&&n===void 0)return!1}return oG(t,e,n)});function oG(t,e,n){let i=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},a=t._zod.bag.fallbackRun,r;if(a?(i[sG]=!0,r=a({value:e,issues:[]},i)):r=t._zod.run({value:e,issues:[]},i),r instanceof Promise)throw new nt;return r.issues.length===0}var Lu=async(t,e,n)=>{let i=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},a=t._zod.run({value:e,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length===0},IP=t=>{let e=wo(t),n=(i,a,r,s)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return e(i,a,o,$u(n,s))};return n};var zP=t=>{let e=wo(t),n=(i,a,r,s)=>e(i,a,r,$u(n,s));return n};var DP=t=>{let e=vo(t),n=async(i,a,r,s)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return await e(i,a,o,$u(n,s))};return n};var GP=t=>{let e=vo(t),n=async(i,a,r,s)=>await e(i,a,r,$u(n,s));return n};var NP=t=>(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return Co(t)(e,n,a)};var UP=t=>(e,n,i)=>Co(t)(e,n,i);var $P=t=>async(e,n,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return bo(t)(e,n,a)};var BP=t=>async(e,n,i)=>bo(t)(e,n,i);var LP=/^[cC][0-9a-z]{6,}$/,FP=/^[0-9a-z]+$/,VP=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,JP=/^[0-9a-vA-V]{20}$/,KP=/^[A-Za-z0-9]{27}$/,ZP=/^[a-zA-Z0-9_-]{21}$/;function QP(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}var XP=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var YP=/^([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})$/,gg=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 ej=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var lG="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function nj(){return new RegExp(lG,"u")}var ij=/^(?:(?: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])$/,tj=/^(([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 aj=/^((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])$/,rj=/^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,oj=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;var lj=/^https?$/,uj=/^\+[1-9]\d{6,14}$/;var cj="(?:(?:\\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])))";function uG(t){return new RegExp(`^${t}$`)}var pj=uG(cj);function hg(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}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function dj(t){return new RegExp(`^${hg(t)}$`)}function hj(t){let e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${hg({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,i=t.local?`${n}|${hg({precision:t.precision})}`:n;return new RegExp(`^${cj}T(?:${i})$`)}var gj=/^[\s\S]{0,}$/;var mg=/^-?\d+$/,yo=/^-?\d+(?:\.\d+)?$/,mj=/^(?:true|false)$/i,fj=/^null$/i;var wj=/^[^A-Z]*$/,vj=/^[^a-z]*$/;var wn=P("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])});var fg=t=>{let e=t.value;return!Zh(e)&&e.length!==void 0},Fu={number:"number",bigint:"bigint",object:"date"},wg=P("$ZodCheckLessThan",(t,e)=>{wn.init(t,e);let n=Fu[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value{wn.init(t,e);let n=Fu[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:Fu[typeof i.value]??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})}}),Cj=P("$ZodCheckMultipleOf",(t,e)=>{wn.init(t,e),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"?e.value!==BigInt(0)&&n.value%e.value===BigInt(0):Qh(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})}}),Aj=P("$ZodCheckNumberFormat",(t,e)=>{wn.init(t,e),e.format=e.format||"float64";let n=e.format?.includes("int"),i=n?"int":"number",[a,r]=ho[e.format];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 bj=P("$ZodCheckMaxLength",(t,e)=>{var n;wn.init(t,e),(n=t._zod.def).when??(n.when=fg),t._zod.check=i=>{let a=i.value,r=a.length;if((typeof a=="string"&&r>e.maximum?go(a):r)<=e.maximum)return;let o=mo(a);i.issues.push({origin:o,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),xj=P("$ZodCheckMinLength",(t,e)=>{var n;wn.init(t,e),(n=t._zod.def).when??(n.when=fg),t._zod.check=i=>{let a=i.value,r=a.length;if((typeof a=="string"&&r>=e.minimum&&r=e.minimum)return;let o=mo(a);i.issues.push({origin:o,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),yj=P("$ZodCheckLengthEquals",(t,e)=>{var n;wn.init(t,e),(n=t._zod.def).when??(n.when=fg),t._zod.check=i=>{let a=i.value,r=a.length,s=typeof a=="string"&&r>=e.length&&r<=e.length*2?go(a):r;if(s===e.length)return;let o=mo(a),l=s>e.length;i.issues.push({origin:o,...l?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),Po=P("$ZodCheckStringFormat",(t,e)=>{var n,i;wn.init(t,e),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=()=>{})}),Pj=P("$ZodCheckRegex",(t,e)=>{Po.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})}}),jj=P("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=wj),Po.init(t,e)}),Sj=P("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=vj),Po.init(t,e)}),Oj=P("$ZodCheckIncludes",(t,e)=>{wn.init(t,e);let n=Gt(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position},}${n}`:n);e.pattern=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})}}),Tj=P("$ZodCheckStartsWith",(t,e)=>{wn.init(t,e);let n=new RegExp(`^${Gt(e.prefix)}.*`);e.pattern??(e.pattern=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})}}),kj=P("$ZodCheckEndsWith",(t,e)=>{wn.init(t,e);let n=new RegExp(`.*${Gt(e.suffix)}$`);e.pattern??(e.pattern=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 Mj=P("$ZodCheckOverwrite",(t,e)=>{wn.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});var Vu=class{constructor(e=[],n={}){this.content=[],this.indent=0,this.args=e,this.closed=n}indented(e){this.indent+=1;try{e(this)}finally{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?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) { ${n.join(` `)} -};`)(...Object.values(this.closed))}};var Oj={major:4,minor:6,patch:5};var Ie=P("$ZodType",(t,e)=>{var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Oj;let i=t._zod.def.checks,a=t._zod.traits.has("$ZodCheck")?[t,...i??[]]:i?.length?[...i]:[];for(let r of a)for(let s of r._zod.onattach)s(t);if(a.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let r=(o,l,c)=>{if(o.memo)return o;let u=Zi(o),p;for(let h of l){if(h._zod.def.when){if(ng(o)||!h._zod.def.when(o))continue}else if(u)continue;let g=o.issues.length,d=h._zod.check(o);if(d instanceof Promise&&c?.async===!1)throw new Yi;if(p||d instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await d,o.issues.length!==g&&(Iu(o.issues,g,t),u||(u=Zi(o,g)))});else{if(o.issues.length===g)continue;Iu(o.issues,g,t),u||(u=Zi(o,g))}}return p?p.then(()=>o):o},s=(o,l,c)=>{if(Zi(o))return o.aborted=!0,o;let u=r(l,a,c);if(u instanceof Promise){if(c.async===!1)throw new Yi;return u.then(p=>t._zod.parse(p,c))}return t._zod.parse(u,c)};t._zod.run=(o,l)=>{if(l.skipChecks)return t._zod.parse(o,l);if(l.direction==="backward"){let u=t._zod.parse({value:o.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(p=>s(p,o,l)):s(u,o,l)}let c=t._zod.parse(o,l);if(c instanceof Promise){if(l.async===!1)throw new Yi;return c.then(u=>r(u,a,l))}return r(c,a,l)}}},{get"~standard"(){return zu(this,"~standard",wg(this))},set"~standard"(t){wt(this,"~standard",t)}}),zj=(t,e)=>t.issues.length?{issues:t.issues.map(n=>Qi(n,e,Oi()))}:{value:t.value};async function eG(t,e){let n={async:!0};return zj(await t._zod.run({value:e,issues:[]},n),n)}function wg(t){return{validate:e=>{let n={async:!1};try{let i=t._zod.run({value:e,issues:[]},n);if(!(i instanceof Promise))return zj(i,n)}catch{}return eG(t,e)},vendor:"zod",version:1}}var bo=P("$ZodString",(t,e)=>{Ie.init(t,e),t._zod.pattern=e.pattern??uj,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}}),Ne=P("$ZodStringFormat",(t,e)=>{Ao.init(t,e),bo.init(t,e)}),vg=P("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=JP),Ne.init(t,e)}),Cg=P("$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=pg(i))}else e.pattern??(e.pattern=pg());Ne.init(t,e)}),Ag=P("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=KP),Ne.init(t,e)}),Dj=1,Lu=2;function Gj(t){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(t):(new URL(t),!0)}catch{return!1}}function nG(t,e){return!("normalize"in e)&&!("hostname"in e)&&!("protocol"in e)?Gj(t)||Lu:iG(t,e)}function iG(t,e){if(!e.normalize&&e.protocol?.source===tj.source&&!/^https?:\/\//i.test(t))return Dj;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(t)??Lu}return new URL(t)}catch{return Lu}}var tG=/[\t\n\r]/g;function Tj(t){return t.replace(tG,"")}function aG(t,e){return e.lastIndex=0,e.test(t.hostname)}function rG(t,e){return e.lastIndex=0,e.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)}var bg=P("$ZodURL",(t,e)=>{Ne.init(t,e),t._zod.check=n=>{try{let i=n.value.trim(),a=nG(i,e);if(a===Dj){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!e.abort});return}if(a===Lu){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort});return}if(a===!0){n.value=Tj(i);return}e.hostname&&!aG(a,e.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&&!rG(a,e.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort}),n.value=e.normalize?a.href:Tj(i);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),xg=P("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=ZP()),Ne.init(t,e)}),yg=P("$ZodNanoID",(t,e)=>{if(e.length!==void 0&&(!Number.isInteger(e.length)||e.length<1))throw new Error(`Invalid nanoid length: ${e.length}`);e.pattern??(e.pattern=e.length===void 0?LP:FP(e.length)),Ne.init(t,e)}),Pg=P("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=GP),Ne.init(t,e)}),jg=P("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=NP),Ne.init(t,e)}),Sg=P("$ZodULID",(t,e)=>{e.pattern??(e.pattern=UP),Ne.init(t,e)}),Og=P("$ZodXID",(t,e)=>{e.pattern??(e.pattern=$P),Ne.init(t,e)}),Tg=P("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=BP),Ne.init(t,e)}),Nj=P("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=lj(e)),Ne.init(t,e)}),Uj=P("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=sj),Ne.init(t,e)}),$j=P("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=oj(e)),Ne.init(t,e)}),Bj=P("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=VP),Ne.init(t,e)}),kg=P("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=QP),Ne.init(t,e)}),sG=/^[0-9a-fA-F:.]+$/;function Lj(t){return sG.test(t)?Gj(`http://[${t}]`):!1}var Mg=P("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=YP),Ne.init(t,e),t._zod.check=n=>{Lj(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}});var Eg=P("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=XP),Ne.init(t,e)});function oG(t){let e=t.split("/");if(e.length!==2)return!1;let[n,i]=e;if(!i)return!1;let a=Number(i);return`${a}`!==i||a<0||a>128?!1:Lj(n)}var qg=P("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ej),Ne.init(t,e),t._zod.check=n=>{oG(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}});function Fj(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var _g=/^[0-9a-zA-Z+/]*={0,2}$/,Hg=P("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=_g),Ne.init(t,e),t._zod.check=n=>{Fj(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}}),Vu=/^[A-Za-z0-9_-]*$/;function lG(t){if(!Vu.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return Fj(n)}var Wg=P("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Vu),Ne.init(t,e),t._zod.check=n=>{lG(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),Rg=P("$ZodE164",(t,e)=>{e.pattern??(e.pattern=aj),Ne.init(t,e)});function uG(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 Ig=P("$ZodJWT",(t,e)=>{Ne.init(t,e),t._zod.check=n=>{uG(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}});var Ju=P("$ZodNumber",(t,e)=>{Ie.init(t,e),t._zod.pattern=Co,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:String(a):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),n}}),zg=P("$ZodNumberFormat",(t,e)=>{mj.init(t,e),Ju.init(t,e)}),Dg=P("$ZodBoolean",(t,e)=>{Ie.init(t,e),t._zod.pattern=cj,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 Gg=P("$ZodNull",(t,e)=>{Ie.init(t,e),t._zod.pattern=pj,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 Ng=P("$ZodUnknown",(t,e)=>{Ie.init(t,e),t._zod.parse=n=>n}),Ug=P("$ZodNever",(t,e)=>{Ie.init(t,e),t._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)});function kj(t,e,n){t.issues.length&&e.issues.push(...Gt(n,t.issues)),e.value[n]=t.value}var $g=P("$ZodArray",(t,e)=>{Ie.init(t,e);let n=ai.memoizer;n?.attach(t),t._zod.parse=(i,a)=>{let r=i.value;if(!Array.isArray(r))return i.issues.push({expected:"array",code:"invalid_type",input:r,inst:t}),i;i.value=n?n.alloc(t,i,Array(r.length),a):Array(r.length);let s=[],o=a?.abortEarly;for(let l=0;lkj(p,i,l)));else if(kj(u,i,l),o&&u.issues.length!==0&&Zi(u))break}return s.length?Promise.all(s).then(()=>i):i}});function Fu(t,e,n,i,a,r){let s=n in i,o=r==="optional";if(!(!s&&o&&a==="optional")){if(t.issues.length){if(a!==void 0&&o&&!s)return;e.issues.push(...Gt(n,t.issues))}if(!s&&a===void 0){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}t.value===void 0?(s||a==="defaulted"&&!o)&&(e.value[n]=void 0):e.value[n]=t.value}}var cG=[];function Vj(t){let e=Object.keys(t.shape),n=Object.getOwnPropertySymbols(t.shape),i=n.length?n:cG,a=i.length?[...e,...i]:e;for(let s of a)if(!t.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let r=eg(t.shape);return{...t,allKeys:a,symbolKeys:i,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function Jj(t,e,n,i,a,r,s){let o=[],l=a.keySet,c=a.catchall._zod,u=c.def.type,p=c.optin,h=c.optout,g=0;for(let d in e){if(s&&n.issues.length!==g){if(Zi(n,g))break;g=n.issues.length}if(l.has(d))continue;if(d==="__proto__"){u==="never"&&o.push(d);continue}if(u==="never"){o.push(d);continue}let m=c.run({value:e[d],issues:[]},i);m instanceof Promise?t.push(m.then(w=>Fu(w,n,d,e,p,h))):Fu(m,n,d,e,p,h)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:r,continue:!0}),t.length?Promise.all(t).then(()=>n):n}var Bg=P("$ZodObject",(t,e)=>{Ie.init(t,e);let n=Object.getOwnPropertyDescriptor(e,"shape"),i=n?.get?n.get.raw:e.shape??{};if(i){let c=()=>{let u={...i};return Object.defineProperty(e,"shape",{value:u}),c.raw=u,u};c.raw=i,Object.defineProperty(e,"shape",{get:c})}let a=Zr(()=>Vj(e));je(t,"propValues",c=>{let u=c.def.shape,p={};for(let h in u){let g=u[h]._zod;if(g.values){Object.prototype.hasOwnProperty.call(p,h)||ii(p,h,new Set);for(let d of g.values)p[h].add(d);g.optin!==void 0&&p[h].add(void 0)}}return p});let r=Ka,s=e.catchall,o,l=ai.memoizer;l?.attach(t),t._zod.parse=(c,u)=>{o??(o=a.value);let p=c.value;if(!r(p))return c.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),c;c.value=l?l.alloc(t,c,{},u):{};let h=[],g=o.shape,d=u?.abortEarly,m=c.issues.length;for(let w of o.allKeys){if(d&&c.issues.length!==m){if(Zi(c,m))break;m=c.issues.length}if(w==="__proto__")continue;let f=g[w],A=f._zod.optin,b=f._zod.optout,x=f._zod.run({value:p[w],issues:[]},u);x instanceof Promise?h.push(x.then(S=>Fu(S,c,w,p,A,b))):Fu(x,c,w,p,A,b)}return s?Jj(h,p,c,u,a.value,t,d===!0):h.length?Promise.all(h).then(()=>c):c}}),Kj=P("$ZodObjectJIT",(t,e)=>{Bg.init(t,e);let n=t._zod.parse,i=Zr(()=>Vj(e)),a=ai.memoizer,r=g=>{let d=i.value,m=d.symbolKeys,w=new $u(["payload","ctx"],{shape:g,inst:t,memo:a,syms:m}),f=S=>`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`,A=(S,T)=>` +};`)(...Object.values(this.closed))}};var qj={major:4,minor:6,patch:5};var Ie=P("$ZodType",(t,e)=>{var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=qj;let i=t._zod.def.checks,a=t._zod.traits.has("$ZodCheck")?[t,...i??[]]:i?.length?[...i]:[];for(let r of a)for(let s of r._zod.onattach)s(t);if(a.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let r=(o,l,c)=>{if(o.memo)return o;let u=Yi(o),p;for(let h of l){if(h._zod.def.when){if(ag(o)||!h._zod.def.when(o))continue}else if(u)continue;let g=o.issues.length,d=h._zod.check(o);if(d instanceof Promise&&c?.async===!1)throw new nt;if(p||d instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await d,o.issues.length!==g&&(Nu(o.issues,g,t),u||(u=Yi(o,g)))});else{if(o.issues.length===g)continue;Nu(o.issues,g,t),u||(u=Yi(o,g))}}return p?p.then(()=>o):o},s=(o,l,c)=>{if(Yi(o))return o.aborted=!0,o;let u=r(l,a,c);if(u instanceof Promise){if(c.async===!1)throw new nt;return u.then(p=>t._zod.parse(p,c))}return t._zod.parse(u,c)};t._zod.run=(o,l)=>{if(l.skipChecks)return t._zod.parse(o,l);if(l.direction==="backward"){let u=t._zod.parse({value:o.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(p=>s(p,o,l)):s(u,o,l)}let c=t._zod.parse(o,l);if(c instanceof Promise){if(l.async===!1)throw new nt;return c.then(u=>r(u,a,l))}return r(c,a,l)}}},{get"~standard"(){return Uu(this,"~standard",Ag(this))},set"~standard"(t){vt(this,"~standard",t)}}),$j=(t,e)=>t.issues.length?{issues:t.issues.map(n=>et(n,e,Ti()))}:{value:t.value};async function cG(t,e){let n={async:!0};return $j(await t._zod.run({value:e,issues:[]},n),n)}function Ag(t){return{validate:e=>{let n={async:!1};try{let i=t._zod.run({value:e,issues:[]},n);if(!(i instanceof Promise))return $j(i,n)}catch{}return cG(t,e)},vendor:"zod",version:1}}var jo=P("$ZodString",(t,e)=>{Ie.init(t,e),t._zod.pattern=e.pattern??gj,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}}),Ne=P("$ZodStringFormat",(t,e)=>{Po.init(t,e),jo.init(t,e)}),bg=P("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=YP),Ne.init(t,e)}),xg=P("$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=gg(i))}else e.pattern??(e.pattern=gg());Ne.init(t,e)}),yg=P("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=ej),Ne.init(t,e)}),Bj=1,Ku=2;function Lj(t){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(t):(new URL(t),!0)}catch{return!1}}function pG(t,e){return!("normalize"in e)&&!("hostname"in e)&&!("protocol"in e)?Lj(t)||Ku:dG(t,e)}function dG(t,e){if(!e.normalize&&e.protocol?.source===lj.source&&!/^https?:\/\//i.test(t))return Bj;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(t)??Ku}return new URL(t)}catch{return Ku}}var hG=/[\t\n\r]/g;function _j(t){return t.replace(hG,"")}function gG(t,e){return e.lastIndex=0,e.test(t.hostname)}function mG(t,e){return e.lastIndex=0,e.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)}var Pg=P("$ZodURL",(t,e)=>{Ne.init(t,e),t._zod.check=n=>{try{let i=n.value.trim(),a=pG(i,e);if(a===Bj){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!e.abort});return}if(a===Ku){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort});return}if(a===!0){n.value=_j(i);return}e.hostname&&!gG(a,e.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&&!mG(a,e.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort}),n.value=e.normalize?a.href:_j(i);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),jg=P("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=nj()),Ne.init(t,e)}),Sg=P("$ZodNanoID",(t,e)=>{if(e.length!==void 0&&(!Number.isInteger(e.length)||e.length<1))throw new Error(`Invalid nanoid length: ${e.length}`);e.pattern??(e.pattern=e.length===void 0?ZP:QP(e.length)),Ne.init(t,e)}),Og=P("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=LP),Ne.init(t,e)}),Tg=P("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=FP),Ne.init(t,e)}),kg=P("$ZodULID",(t,e)=>{e.pattern??(e.pattern=VP),Ne.init(t,e)}),Mg=P("$ZodXID",(t,e)=>{e.pattern??(e.pattern=JP),Ne.init(t,e)}),Eg=P("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=KP),Ne.init(t,e)}),Fj=P("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=hj(e)),Ne.init(t,e)}),Vj=P("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=pj),Ne.init(t,e)}),Jj=P("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=dj(e)),Ne.init(t,e)}),Kj=P("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=XP),Ne.init(t,e)}),qg=P("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=ij),Ne.init(t,e)}),fG=/^[0-9a-fA-F:.]+$/;function Zj(t){return fG.test(t)?Lj(`http://[${t}]`):!1}var _g=P("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=tj),Ne.init(t,e),t._zod.check=n=>{Zj(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}});var Hg=P("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=aj),Ne.init(t,e)});function wG(t){let e=t.split("/");if(e.length!==2)return!1;let[n,i]=e;if(!i)return!1;let a=Number(i);return`${a}`!==i||a<0||a>128?!1:Zj(n)}var Wg=P("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=rj),Ne.init(t,e),t._zod.check=n=>{wG(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}});function Qj(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Rg=/^[0-9a-zA-Z+/]*={0,2}$/,Ig=P("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=Rg),Ne.init(t,e),t._zod.check=n=>{Qj(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}}),Qu=/^[A-Za-z0-9_-]*$/;function vG(t){if(!Qu.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return Qj(n)}var zg=P("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Qu),Ne.init(t,e),t._zod.check=n=>{vG(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),Dg=P("$ZodE164",(t,e)=>{e.pattern??(e.pattern=uj),Ne.init(t,e)});function CG(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 Gg=P("$ZodJWT",(t,e)=>{Ne.init(t,e),t._zod.check=n=>{CG(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}});var Xu=P("$ZodNumber",(t,e)=>{Ie.init(t,e),t._zod.pattern=yo,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:String(a):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),n}}),Ng=P("$ZodNumberFormat",(t,e)=>{Aj.init(t,e),Xu.init(t,e)}),Ug=P("$ZodBoolean",(t,e)=>{Ie.init(t,e),t._zod.pattern=mj,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 $g=P("$ZodNull",(t,e)=>{Ie.init(t,e),t._zod.pattern=fj,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 Bg=P("$ZodUnknown",(t,e)=>{Ie.init(t,e),t._zod.parse=n=>n}),Lg=P("$ZodNever",(t,e)=>{Ie.init(t,e),t._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)});function Hj(t,e,n){t.issues.length&&e.issues.push(...Nt(n,t.issues)),e.value[n]=t.value}var Fg=P("$ZodArray",(t,e)=>{Ie.init(t,e);let n=ri.memoizer;n?.attach(t),t._zod.parse=(i,a)=>{let r=i.value;if(!Array.isArray(r))return i.issues.push({expected:"array",code:"invalid_type",input:r,inst:t}),i;i.value=n?n.alloc(t,i,Array(r.length),a):Array(r.length);let s=[],o=a?.abortEarly;for(let l=0;lHj(p,i,l)));else if(Hj(u,i,l),o&&u.issues.length!==0&&Yi(u))break}return s.length?Promise.all(s).then(()=>i):i}});function Zu(t,e,n,i,a,r){let s=n in i,o=r==="optional";if(!(!s&&o&&a==="optional")){if(t.issues.length){if(a!==void 0&&o&&!s)return;e.issues.push(...Nt(n,t.issues))}if(!s&&a===void 0){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}t.value===void 0?(s||a==="defaulted"&&!o)&&(e.value[n]=void 0):e.value[n]=t.value}}var AG=[];function Xj(t){let e=Object.keys(t.shape),n=Object.getOwnPropertySymbols(t.shape),i=n.length?n:AG,a=i.length?[...e,...i]:e;for(let s of a)if(!t.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let r=tg(t.shape);return{...t,allKeys:a,symbolKeys:i,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function Yj(t,e,n,i,a,r,s){let o=[],l=a.keySet,c=a.catchall._zod,u=c.def.type,p=c.optin,h=c.optout,g=0;for(let d in e){if(s&&n.issues.length!==g){if(Yi(n,g))break;g=n.issues.length}if(l.has(d))continue;if(d==="__proto__"){u==="never"&&o.push(d);continue}if(u==="never"){o.push(d);continue}let m=c.run({value:e[d],issues:[]},i);m instanceof Promise?t.push(m.then(w=>Zu(w,n,d,e,p,h))):Zu(m,n,d,e,p,h)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:r,continue:!0}),t.length?Promise.all(t).then(()=>n):n}var Vg=P("$ZodObject",(t,e)=>{Ie.init(t,e);let n=Object.getOwnPropertyDescriptor(e,"shape"),i=n?.get?n.get.raw:e.shape??{};if(i){let c=()=>{let u={...i};return Object.defineProperty(e,"shape",{value:u}),c.raw=u,u};c.raw=i,Object.defineProperty(e,"shape",{get:c})}let a=ns(()=>Xj(e));je(t,"propValues",c=>{let u=c.def.shape,p={};for(let h in u){let g=u[h]._zod;if(g.values){Object.prototype.hasOwnProperty.call(p,h)||ti(p,h,new Set);for(let d of g.values)p[h].add(d);g.optin!==void 0&&p[h].add(void 0)}}return p});let r=er,s=e.catchall,o,l=ri.memoizer;l?.attach(t),t._zod.parse=(c,u)=>{o??(o=a.value);let p=c.value;if(!r(p))return c.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),c;c.value=l?l.alloc(t,c,{},u):{};let h=[],g=o.shape,d=u?.abortEarly,m=c.issues.length;for(let w of o.allKeys){if(d&&c.issues.length!==m){if(Yi(c,m))break;m=c.issues.length}if(w==="__proto__")continue;let f=g[w],A=f._zod.optin,b=f._zod.optout,x=f._zod.run({value:p[w],issues:[]},u);x instanceof Promise?h.push(x.then(S=>Zu(S,c,w,p,A,b))):Zu(x,c,w,p,A,b)}return s?Yj(h,p,c,u,a.value,t,d===!0):h.length?Promise.all(h).then(()=>c):c}}),eS=P("$ZodObjectJIT",(t,e)=>{Vg.init(t,e);let n=t._zod.parse,i=ns(()=>Xj(e)),a=ri.memoizer,r=g=>{let d=i.value,m=d.symbolKeys,w=new Vu(["payload","ctx"],{shape:g,inst:t,memo:a,syms:m}),f=S=>`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`,A=(S,T)=>` let ${S}_ab = false; for (let i = 0; i < ${S}.issues.length; i++) { const iss = ${S}.issues[i]; @@ -85,7 +85,7 @@ ${n.join(` if (${S}_ab && ctx && ctx.abortEarly) { payload.value = newResult; return payload; - }`;w.write("const input = payload.value;");let b=Object.create(null),x=0;for(let S of d.allKeys)b[S]=`key_${x++}`;w.write(a?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let S of d.allKeys){if(S==="__proto__")continue;let T=b[S],M=typeof S=="symbol"?`syms[${m.indexOf(S)}]`:Kh(S),V=`${M} in input`,N=g[S],_=N?._zod?.optin,W=_!==void 0,le=N?._zod?.optout==="optional";if(w.write(`const ${T} = ${f(M)};`),W&&le){let Pe=_==="optional"?`${T}_present`:`${T}.value !== undefined || ${T}_present`;w.write(` + }`;w.write("const input = payload.value;");let b=Object.create(null),x=0;for(let S of d.allKeys)b[S]=`key_${x++}`;w.write(a?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let S of d.allKeys){if(S==="__proto__")continue;let T=b[S],M=typeof S=="symbol"?`syms[${m.indexOf(S)}]`:Xh(S),V=`${M} in input`,N=g[S],_=N?._zod?.optin,W=_!==void 0,le=N?._zod?.optout==="optional";if(w.write(`const ${T} = ${f(M)};`),W&&le){let Pe=_==="optional"?`${T}_present`:`${T}.value !== undefined || ${T}_present`;w.write(` const ${T}_present = ${V}; if (!${T}.issues.length || ${T}_present) { if (${T}.issues.length) {${A(T,M)} @@ -124,20 +124,20 @@ ${n.join(` newResult[${M}] = ${T}.value; } - `)}return w.write("payload.value = newResult;"),w.write("return payload;"),w.compile()},s,o=Ka,l=!ai.jitless,u=l&&Qh.value,p=e.catchall,h;t._zod.parse=(g,d)=>{h??(h=i.value);let m=g.value;return o(m)?l&&u&&d?.async===!1&&d.jitless!==!0?(s||(s=r(e.shape)),g=s(g,d),p?Jj([],m,g,d,h,t,d?.abortEarly===!0):g):n(g,d):(g.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),g)}});function Mj(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=>!Zi(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=>Qi(s,i,Oi())))}),e)}var Ku=P("$ZodUnion",(t,e)=>{Ie.init(t,e),je(t,"optin",i=>i.def.options.some(a=>a._zod.optin==="defaulted")?"defaulted":i.def.options.some(a=>a._zod.optin!==void 0)?"optional":void 0),je(t,"optout",i=>i.def.options.some(a=>a._zod.optout==="optional")?"optional":void 0),je(t,"values",i=>{if(i.def.options.every(a=>a._zod.values))return new Set(i.def.options.flatMap(a=>Array.from(a._zod.values)))}),je(t,"pattern",i=>{if(i.def.options.every(a=>a._zod.pattern)){let a=i.def.options.map(r=>r._zod.pattern);return new RegExp(`^(${a.map(r=>oo(r.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=>Mj(o,i,t,a)):Mj(s,i,t,a)}});function pG(t){let e=new Map;for(let n of t.options){let i=n._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let a of i)if(e.has(a)){if(a!==void 0)throw new Error(`Duplicate discriminator value "${String(a)}"`);e.set(a,null)}else e.set(a,n)}return e}var Lg=P("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Ku.init(t,e);let n=t._zod.parse;je(t,"propValues",a=>{let r={},s=0;for(let o of a.def.options){let l=o._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${a.def.options.indexOf(o)}"`);l[a.def.discriminator]?.has(void 0)&&s++;for(let[c,u]of Object.entries(l)){Object.prototype.hasOwnProperty.call(r,c)||ii(r,c,new Set);for(let p of u)r[c].add(p)}}return!a.def.unionFallback&&s>1&&r[a.def.discriminator]?.delete(void 0),r}),e.options.forEach((a,r)=>{let s=Qr(a._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,e.discriminator))throw new Error(`Invalid discriminated union option at index "${r}"`)});let i=Zr(()=>pG(e));t._zod.parse=(a,r)=>{let s=a.value;if(!Ka(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=s?.[e.discriminator],l=i.value.get(o);return l&&(o!==void 0||r.direction!=="backward")?l._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()).filter(c=>i.value.get(c)!==null),input:s,path:[e.discriminator],inst:t}),a)}}),Fg=P("$ZodIntersection",(t,e)=>{Ie.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,c])=>Ej(n,l,c)):Ej(n,r,s)}});function fg(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(ta(t)&&ta(e)){let n=Object.keys(e),i=Object.keys(t).filter(r=>n.indexOf(r)!==-1),a={...t,...e};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(let r of i){if(r==="__proto__")continue;let s=fg(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;i{let p;if(c.code==="unrecognized_keys"&&!c.path?.length)a??(a=c),p=c.keys;else if(c.code==="invalid_key"&&c.origin==="record"&&c.path?.length===1){let h=String(c.path[0]);r.has(h)||r.set(h,c),p=[h]}else return!1;for(let h of p)i.has(h)||i.set(h,{}),i.get(h)[u]=!0;return!0};for(let c of e.issues)s(c,"l")||t.issues.push(c);for(let c of n.issues)s(c,"r")||t.issues.push(c);let o=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(o.length){let c=a?o.filter(u=>a.keys.includes(u)):[];c.length&&t.issues.push({...a,keys:c});for(let u of o)!c.includes(u)&&r.has(u)&&t.issues.push(r.get(u))}let l=fg(e.value,n.value);if(!l.valid){if(Zi(t))return t;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return t.value=l.data,t}var Vg=P("$ZodRecord",(t,e)=>{Ie.init(t,e);let n=ai.memoizer;n?.attach(t),t._zod.parse=(i,a)=>{let r=i.value;if(!ta(r))return i.issues.push({expected:"record",code:"invalid_type",input:r,inst:t}),i;let s=[],o=e.keyType._zod.values;if(o&&!e.partial){i.value=n?n.alloc(t,i,{},a):{};let l=new Set;for(let u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(l.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let p=e.keyType._zod.run({value:u,issues:[]},a);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(d=>Qi(d,a,Oi())),input:u,path:[u],inst:t});continue}let h=p.value;if(h==="__proto__")continue;let g=e.valueType._zod.run({value:r[u],issues:[]},a);g instanceof Promise?s.push(g.then(d=>{d.issues.length&&i.issues.push(...Gt(u,d.issues)),i.value[h]=d.value})):(g.issues.length&&i.issues.push(...Gt(u,g.issues)),i.value[h]=g.value)}let c;for(let u in r)if(!l.has(u))if(e.mode==="loose"){if(u==="__proto__")continue;i.value[u]=r[u]}else c=c??[],c.push(u);c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:r,inst:t,keys:c,continue:!0})}else{i.value=n?n.alloc(t,i,{},a):{};let l;for(let c of Reflect.ownKeys(r)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,c))continue;let u=e.keyType._zod.run({value:c,issues:[]},a);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&Co.test(c)&&u.issues.length){let d=e.keyType._zod.run({value:Number(c),issues:[]},a);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){e.mode==="loose"?i.value[c]=r[c]:o?(l=l??[],l.push(c)):i.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>Qi(d,a,Oi())),input:c,path:[c],inst:t});continue}let h=u.value;if(h==="__proto__")continue;let g=e.valueType._zod.run({value:r[c],issues:[]},a);g instanceof Promise?s.push(g.then(d=>{d.issues.length&&i.issues.push(...Gt(c,d.issues)),i.value[h]=d.value})):(g.issues.length&&i.issues.push(...Gt(c,g.issues)),i.value[h]=g.value)}l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:r,inst:t,keys:l,continue:!0})}return s.length?Promise.all(s).then(()=>i):i}});var Jg=P("$ZodEnum",(t,e)=>{Ie.init(t,e);let n=Jr(e.entries),i=new Set(n);t._zod.values=i,je(t,"pattern",a=>{let r=Jr(a.def.entries).filter(s=>Xh.has(typeof s));return new RegExp(r.length?`^(${r.map(s=>Dt(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),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}}),Kg=P("$ZodLiteral",(t,e)=>{Ie.init(t,e);let n=new Set(e.values);t._zod.values=n,je(t,"pattern",i=>{let a=i.def.values;return new RegExp(a.length?`^(${a.map(r=>typeof r=="string"?Dt(r):r?Dt(r.toString()):String(r)).join("|")})$`:"^[^\\s\\S]$")}),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 Zg=P("$ZodTransform",(t,e)=>{Ie.init(t,e),t._zod.optin="optional",ai.memoizer?.guard(t),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Xr(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));if(a instanceof Promise)throw new Yi;return n.value=a,n}});function qj(t,e){return t.value=e.issues.length?void 0:e.value,t}var Zu=P("$ZodOptional",(t,e)=>{Ie.init(t,e),je(t,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),t._zod.optout="optional",je(t,"values",n=>{let i=n.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),je(t,"pattern",n=>{let i=n.def.innerType._zod.pattern;return i?new RegExp(`^(${oo(i.source)})?$`):void 0}),t._zod.parse=(n,i)=>{if(n.value===void 0){if(e.innerType._zod.optin!=="defaulted")return n;let a=e.innerType._zod.run({value:n.value,issues:[]},i);return a instanceof Promise?a.then(r=>qj(n,r)):qj(n,a)}return e.innerType._zod.run(n,i)}}),Qg=P("$ZodExactOptional",(t,e)=>{Zu.init(t,e),je(t,"values",n=>n.def.innerType._zod.values),je(t,"pattern",n=>n.def.innerType._zod.pattern),t._zod.parse=(n,i)=>e.innerType._zod.run(n,i)}),Yg=P("$ZodNullable",(t,e)=>{Ie.init(t,e),je(t,"optin",n=>n.def.innerType._zod.optin),je(t,"optout",n=>n.def.innerType._zod.optout),je(t,"pattern",n=>{let i=n.def.innerType._zod.pattern;return i?new RegExp(`^(${oo(i.source)}|null)$`):void 0}),je(t,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),t._zod.parse=(n,i)=>n.value===null?n:e.innerType._zod.run(n,i)}),Xg=P("$ZodDefault",(t,e)=>{Ie.init(t,e),t._zod.optin="defaulted",je(t,"values",n=>n.def.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=>_j(r,e)):_j(a,e)}});function _j(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var em=P("$ZodPrefault",(t,e)=>{Ie.init(t,e),t._zod.optin="defaulted",je(t,"values",n=>n.def.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))}),nm=P("$ZodNonOptional",(t,e)=>{Ie.init(t,e),je(t,"values",n=>{let i=n.def.innerType._zod.values;return i?new Set([...i].filter(a=>a!==void 0)):void 0}),t._zod.parse=(n,i)=>{let a=e.innerType._zod.run(n,i);return a instanceof Promise?a.then(r=>Hj(r,t)):Hj(a,t)}});function Hj(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}function Wj(t,e,n,i){return e.issues.length?(t.value=n.catchValue({...e,value:t.value,error:{issues:e.issues.map(a=>Qi(a,i,Oi()))},input:t.value}),t):(t.value=e.value,e.memo&&(t.memo=!0),t)}var im=P("$ZodCatch",(t,e)=>{Ie.init(t,e),je(t,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),je(t,"optout",n=>n.def.innerType._zod.optout),je(t,"values",n=>n.def.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({value:n.value,issues:[]},i);return a instanceof Promise?a.then(r=>Wj(n,r,e,i)):Wj(n,a,e,i)}});var Qu=P("$ZodPipe",(t,e)=>{Ie.init(t,e),je(t,"values",n=>n.def.in._zod.values),je(t,"optin",n=>n.def.in._zod.optin),je(t,"optout",n=>n.def.out._zod.optout),je(t,"propValues",n=>n.def.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=>Bu(s,e.in,i)):Bu(r,e.in,i)}let a=e.in._zod.run(n,i);return a instanceof Promise?a.then(r=>Bu(r,e.out,i)):Bu(a,e.out,i)}});function Bu(t,e,n){return t.issues.some(i=>i.code!=="unrecognized_keys")?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}var Zj=P("$ZodPreprocess",(t,e)=>{Qu.init(t,e)}),tm=P("$ZodReadonly",(t,e)=>{Ie.init(t,e),je(t,"propValues",n=>n.def.innerType._zod.propValues),je(t,"values",n=>n.def.innerType._zod.values),je(t,"optin",n=>n.def.innerType?._zod?.optin),je(t,"optout",n=>n.def.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.memo||(t.value=Object.freeze(t.value)),t}var am=P("$ZodCustom",(t,e)=>{wn.init(t,e),Ie.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=>Ij(r,n,i,t));Ij(a,n,i,t)}});function Ij(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(Yr(a))}}var sm=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},om="~memo",Qj=[];function Yj(t){return t!==null&&typeof t=="object"}function rm(t){return t.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Xj=new WeakMap,xo=0,ec=1,yo=2;function nc(t,e,n){let i=Xj.get(t);if(i!==void 0)return i?yo:xo;if(e.has(t))return yo;e.add(t);let a=xo,r=u=>{if(a!==yo&&u?._zod){let p=nc(u,e,n);p>a&&(a=p)}},s=(u,p)=>{let h=xo;for(let g of Reflect.ownKeys(u)){let d=Object.getOwnPropertyDescriptor(u,g);if(p&&!d.enumerable)continue;let m=d.get?ec:d.value?._zod?nc(d.value,e,n):xo;m>h&&(h=m)}return h},o=u=>{u>a&&(a=u)},l=t._zod.def,c=l.type;switch(c){case"object":{let u=Qr(l);o(u?s(u,!0):ec),r(l.catchall);break}case"array":r(l.element);break;case"tuple":for(let u of l.items)r(u);r(l.rest);break;case"record":case"map":r(l.keyType),r(l.valueType);break;case"set":r(l.valueType);break;case"union":for(let u of l.options)r(u);break;case"intersection":r(l.left),r(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":r(l.innerType);break;case"pipe":r(l.in),r(l.out);break;case"function":r(l.input),r(l.output);break;case"lazy":{let u=l._cachedInner??(n?t._zod.innerType:void 0);o(u?nc(u,e,!1):ec);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let u in l){let p=Object.getOwnPropertyDescriptor(l,u);if(!p||p.get)continue;let h=p.value;if(!(!h||typeof h!="object")){if(h._zod)r(h);else if(Array.isArray(h))for(let g of h)r(g)}}}return e.delete(t),dG(t,a)}function dG(t,e){return e!==ec&&Xj.set(t,e===yo),e}function hG(t,e){let n=t.buckets.get(e);return n||(n=new WeakMap,t.buckets.set(e,n)),n}var Yu,Xu=[],gG={alloc(t,e,n){let i=Yu;if(!i)return n;Yu=void 0;let a={value:n,issues:null};return i.set(e.value,a),Xu.push(a),n},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let n=t._zod.parse,i=(a,r)=>{if(r.direction!=="backward"&&mG(r,a.value))throw new sm;return n(a,r)};t._zod.parse=i,t._zod.run===n&&(t._zod.run=i)})},attach(t){var e;let n,i=!1,a,r;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let s=t._zod.parse,o=(l,c)=>{if(n===void 0){let f=nc(t,new Set,!1);if(f===xo)return t._zod.parse=s,t._zod.run===o&&(t._zod.run=s),s(l,c);f===yo||i?n=!0:i=!0}let u=l.value;if(!Yj(u))return s(l,c);let p=c[om];p||(p={buckets:new WeakMap,backEdges:void 0},c[om]=p);let h;a===c?h=r:(h=hG(p,t),a=c,r=h);let g=h.get(u);if(g)return l.value=g.value,g.issues?g.issues.length&&l.issues.push(...rm(g.issues)):(l.memo=!0,p.backEdges??(p.backEdges=new WeakSet),p.backEdges.add(g.value)),l;Yu=h;let d=Xu.length,m=s(l,c);Yu=void 0;let w=Xu.length>d?Xu.pop():void 0;return m instanceof Promise?m.then(f=>(w&&(w.issues=f.issues.length?rm(f.issues):Qj),f)):(w&&(w.issues=m.issues.length?rm(m.issues):Qj),m)};t._zod.parse=o,t._zod.run===s&&(t._zod.run=o)})}};function eS(){return gG}function mG(t,e){let n=t[om]?.backEdges;return n!==void 0&&Yj(e)&&n.has(e)}var fG=()=>{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(r){return t[r]??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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function a(r,s){return r==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):i[r]??r}return r=>{switch(r.code){case"invalid_type":{let s=a(r.expected),o=ig(r.input),l=a(o,r.input);return`Invalid input: expected ${s}, received ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${Hu(r.values[0])}`:`Invalid option: expected one of ${qu(r.values,"|")}`;case"too_big":{let s=r.exact?"exactly ":r.inclusive?"<=":"<",o=e(r.origin);return o?`Too big: expected ${r.origin??"value"} to have ${s}${r.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${s}${r.maximum.toString()}`}case"too_small":{let s=r.exact?"exactly ":r.inclusive?">=":">",o=e(r.origin);return o?`Too small: expected ${r.origin} to have ${s}${r.minimum.toString()} ${o.unit}`:`Too small: expected ${r.origin} to be ${s}${r.minimum.toString()}`}case"invalid_format":{let s=r;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 ${n[s.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${qu(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`Invalid discriminator value. Expected ${r.options.map(o=>`'${o}'`).join(" | ")}`:r.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function nS(){return{localeError:fG()}}var iS;var lm=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 wG(){return new lm}(iS=globalThis).__zod_globalRegistry??(iS.__zod_globalRegistry=wG());var Za=globalThis.__zod_globalRegistry;function tS(t){return t.checks&&(t.checks=[...t.checks]),t}function um(t,e){return new t(tS({type:"string",...K(e)}))}function cm(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...K(e)})}function pm(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...K(e)})}function dm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...K(e)})}function hm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...K(e)})}function gm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...K(e)})}function mm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...K(e)})}function fm(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...K(e)})}function wm(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...K(e)})}function vm(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...K(e)})}function Cm(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...K(e)})}function Am(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...K(e)})}function bm(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...K(e)})}function xm(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...K(e)})}function ym(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...K(e)})}function Pm(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...K(e)})}function jm(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...K(e)})}function Sm(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...K(e)})}function Om(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...K(e)})}function Tm(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...K(e)})}function km(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...K(e)})}function Mm(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...K(e)})}function Em(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...K(e)})}function ic(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...K(e)})}function tc(t,e){return new t({type:"string",format:"date",check:"string_format",...K(e)})}function ac(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...K(e)})}function rc(t,e){return new t({type:"string",format:"duration",check:"string_format",...K(e)})}function qm(t,e){return new t(tS({type:"number",checks:[],...K(e)}))}function _m(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...K(e)})}function Hm(t,e){return new t({type:"boolean",...K(e)})}function Wm(t,e){return new t({type:"null",...K(e)})}function Rm(t){return new t({type:"unknown"})}function Im(t,e){return new t({type:"never",...K(e)})}function sc(t,e){return new gg({check:"less_than",...K(e),value:t,inclusive:!1})}function Po(t,e){return new gg({check:"less_than",...K(e),value:t,inclusive:!0})}function oc(t,e){return new mg({check:"greater_than",...K(e),value:t,inclusive:!1})}function jo(t,e){return new mg({check:"greater_than",...K(e),value:t,inclusive:!0})}function lc(t,e){return new gj({check:"multiple_of",...K(e),value:t})}function uc(t,e){return new fj({check:"max_length",...K(e),maximum:t})}function ns(t,e){return new wj({check:"min_length",...K(e),minimum:t})}function cc(t,e){return new vj({check:"length_equals",...K(e),length:t})}function zm(t,e){return new Cj({check:"string_format",format:"regex",...K(e),pattern:t})}function Dm(t){return new Aj({check:"string_format",format:"lowercase",...K(t)})}function Gm(t){return new bj({check:"string_format",format:"uppercase",...K(t)})}function Nm(t,e){return new xj({check:"string_format",format:"includes",...K(e),includes:t})}function Um(t,e){return new yj({check:"string_format",format:"starts_with",...K(e),prefix:t})}function $m(t,e){return new Pj({check:"string_format",format:"ends_with",...K(e),suffix:t})}function aa(t){return new jj({check:"overwrite",tx:t})}function Bm(t){return aa(e=>e.normalize(t))}function Lm(){return aa(t=>t.trim())}function Fm(){return aa(t=>t.toLowerCase())}function Vm(){return aa(t=>t.toUpperCase())}function Jm(){return aa(t=>Zh(t))}function aS(t,e,n){return new t({type:"array",element:e,...K(n)})}function Km(t,e,n){let i=K(n);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function Zm(t,e,n){return new t({type:"custom",check:"custom",fn:e,...K(n)})}function Qm(t,e){let n=vG(i=>(i.addIssue=a=>{if(typeof a=="string")i.issues.push(Yr(a,i.value,n._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),"input"in r||(r.input=i.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),i.issues.push(Yr(r))}},t(i.value,i)),e);return n}function vG(t,e){let n=new wn({check:"custom",...K(e)});return n._zod.check=t,n}function So(t,...e){for(let n of e)for(let i of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,i)&&ii(t,i,n[i]);return t}function To(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??Za,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??"ref",reused:t?.reused??"inline",intersections:[],deferred:[],external:t?.external??void 0}}function vn(t,e,n,i,a){let r=typeof e.unrepresentable=="function"?e.unrepresentable({zodSchema:t,path:i.path,message:a}):e.unrepresentable;if(r==="any")return!1;if(r===void 0||r==="throw")throw new Error(a);return Object.assign(n,r),!0}function ze(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),e.sharedDefsExtractedFor=void 0,e.sharedEmitDoneFor=void 0;let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let u={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,u);else{let h=s.schema,g=e.processors[a.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);g(t,e,h,u)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),ze(p,e,u),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&So(s.schema,l),e.io==="input"&&Ln(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 rS(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function ko(t,e){let n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(t.external&&t.sharedDefsExtractedFor===t.external)return;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,h=t.external.uri??(d=>d);if(p)return{ref:h(p)};let g=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=g,{defId:g,ref:`${h("__shared")}#/${o}/${rS(g)}`}}let l="#",c=`${l}/${o}/`;if(s[1]===n&&!s[1].schema.id)return{ref:l};let u=s[1].schema.id??`__schema${t.counter++}`;return{defId:u,ref:c+rS(u)}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:c}=a(s);o.def={...o.schema},c&&(o.defId=c);let u=o.schema;for(let p in u)delete u[p];u.$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("/")}/ + `)}return w.write("payload.value = newResult;"),w.write("return payload;"),w.compile()},s,o=er,l=!ri.jitless,u=l&&eg.value,p=e.catchall,h;t._zod.parse=(g,d)=>{h??(h=i.value);let m=g.value;return o(m)?l&&u&&d?.async===!1&&d.jitless!==!0?(s||(s=r(e.shape)),g=s(g,d),p?Yj([],m,g,d,h,t,d?.abortEarly===!0):g):n(g,d):(g.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),g)}});function Wj(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=>!Yi(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=>et(s,i,Ti())))}),e)}var Yu=P("$ZodUnion",(t,e)=>{Ie.init(t,e),je(t,"optin",i=>i.def.options.some(a=>a._zod.optin==="defaulted")?"defaulted":i.def.options.some(a=>a._zod.optin!==void 0)?"optional":void 0),je(t,"optout",i=>i.def.options.some(a=>a._zod.optout==="optional")?"optional":void 0),je(t,"values",i=>{if(i.def.options.every(a=>a._zod.values))return new Set(i.def.options.flatMap(a=>Array.from(a._zod.values)))}),je(t,"pattern",i=>{if(i.def.options.every(a=>a._zod.pattern)){let a=i.def.options.map(r=>r._zod.pattern);return new RegExp(`^(${a.map(r=>po(r.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=>Wj(o,i,t,a)):Wj(s,i,t,a)}});function bG(t){let e=new Map;for(let n of t.options){let i=n._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let a of i)if(e.has(a)){if(a!==void 0)throw new Error(`Duplicate discriminator value "${String(a)}"`);e.set(a,null)}else e.set(a,n)}return e}var Jg=P("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Yu.init(t,e);let n=t._zod.parse;je(t,"propValues",a=>{let r={},s=0;for(let o of a.def.options){let l=o._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${a.def.options.indexOf(o)}"`);l[a.def.discriminator]?.has(void 0)&&s++;for(let[c,u]of Object.entries(l)){Object.prototype.hasOwnProperty.call(r,c)||ti(r,c,new Set);for(let p of u)r[c].add(p)}}return!a.def.unionFallback&&s>1&&r[a.def.discriminator]?.delete(void 0),r}),e.options.forEach((a,r)=>{let s=is(a._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,e.discriminator))throw new Error(`Invalid discriminated union option at index "${r}"`)});let i=ns(()=>bG(e));t._zod.parse=(a,r)=>{let s=a.value;if(!er(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=s?.[e.discriminator],l=i.value.get(o);return l&&(o!==void 0||r.direction!=="backward")?l._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()).filter(c=>i.value.get(c)!==null),input:s,path:[e.discriminator],inst:t}),a)}}),Kg=P("$ZodIntersection",(t,e)=>{Ie.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,c])=>Rj(n,l,c)):Rj(n,r,s)}});function Cg(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(ra(t)&&ra(e)){let n=Object.keys(e),i=Object.keys(t).filter(r=>n.indexOf(r)!==-1),a={...t,...e};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(let r of i){if(r==="__proto__")continue;let s=Cg(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;i{let p;if(c.code==="unrecognized_keys"&&!c.path?.length)a??(a=c),p=c.keys;else if(c.code==="invalid_key"&&c.origin==="record"&&c.path?.length===1){let h=String(c.path[0]);r.has(h)||r.set(h,c),p=[h]}else return!1;for(let h of p)i.has(h)||i.set(h,{}),i.get(h)[u]=!0;return!0};for(let c of e.issues)s(c,"l")||t.issues.push(c);for(let c of n.issues)s(c,"r")||t.issues.push(c);let o=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(o.length){let c=a?o.filter(u=>a.keys.includes(u)):[];c.length&&t.issues.push({...a,keys:c});for(let u of o)!c.includes(u)&&r.has(u)&&t.issues.push(r.get(u))}let l=Cg(e.value,n.value);if(!l.valid){if(Yi(t))return t;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return t.value=l.data,t}var Zg=P("$ZodRecord",(t,e)=>{Ie.init(t,e);let n=ri.memoizer;n?.attach(t),t._zod.parse=(i,a)=>{let r=i.value;if(!ra(r))return i.issues.push({expected:"record",code:"invalid_type",input:r,inst:t}),i;let s=[],o=e.keyType._zod.values;if(o&&!e.partial){i.value=n?n.alloc(t,i,{},a):{};let l=new Set;for(let u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(l.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let p=e.keyType._zod.run({value:u,issues:[]},a);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(d=>et(d,a,Ti())),input:u,path:[u],inst:t});continue}let h=p.value;if(h==="__proto__")continue;let g=e.valueType._zod.run({value:r[u],issues:[]},a);g instanceof Promise?s.push(g.then(d=>{d.issues.length&&i.issues.push(...Nt(u,d.issues)),i.value[h]=d.value})):(g.issues.length&&i.issues.push(...Nt(u,g.issues)),i.value[h]=g.value)}let c;for(let u in r)if(!l.has(u))if(e.mode==="loose"){if(u==="__proto__")continue;i.value[u]=r[u]}else c=c??[],c.push(u);c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:r,inst:t,keys:c,continue:!0})}else{i.value=n?n.alloc(t,i,{},a):{};let l;for(let c of Reflect.ownKeys(r)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,c))continue;let u=e.keyType._zod.run({value:c,issues:[]},a);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&yo.test(c)&&u.issues.length){let d=e.keyType._zod.run({value:Number(c),issues:[]},a);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){e.mode==="loose"?i.value[c]=r[c]:o?(l=l??[],l.push(c)):i.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>et(d,a,Ti())),input:c,path:[c],inst:t});continue}let h=u.value;if(h==="__proto__")continue;let g=e.valueType._zod.run({value:r[c],issues:[]},a);g instanceof Promise?s.push(g.then(d=>{d.issues.length&&i.issues.push(...Nt(c,d.issues)),i.value[h]=d.value})):(g.issues.length&&i.issues.push(...Nt(c,g.issues)),i.value[h]=g.value)}l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:r,inst:t,keys:l,continue:!0})}return s.length?Promise.all(s).then(()=>i):i}});var Qg=P("$ZodEnum",(t,e)=>{Ie.init(t,e);let n=Yr(e.entries),i=new Set(n);t._zod.values=i,je(t,"pattern",a=>{let r=Yr(a.def.entries).filter(s=>ig.has(typeof s));return new RegExp(r.length?`^(${r.map(s=>Gt(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),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}}),Xg=P("$ZodLiteral",(t,e)=>{Ie.init(t,e);let n=new Set(e.values);t._zod.values=n,je(t,"pattern",i=>{let a=i.def.values;return new RegExp(a.length?`^(${a.map(r=>typeof r=="string"?Gt(r):r?Gt(r.toString()):String(r)).join("|")})$`:"^[^\\s\\S]$")}),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 Yg=P("$ZodTransform",(t,e)=>{Ie.init(t,e),t._zod.optin="optional",ri.memoizer?.guard(t),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new as(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));if(a instanceof Promise)throw new nt;return n.value=a,n}});function Ij(t,e){return t.value=e.issues.length?void 0:e.value,t}var ec=P("$ZodOptional",(t,e)=>{Ie.init(t,e),je(t,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),t._zod.optout="optional",je(t,"values",n=>{let i=n.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),je(t,"pattern",n=>{let i=n.def.innerType._zod.pattern;return i?new RegExp(`^(${po(i.source)})?$`):void 0}),t._zod.parse=(n,i)=>{if(n.value===void 0){if(e.innerType._zod.optin!=="defaulted")return n;let a=e.innerType._zod.run({value:n.value,issues:[]},i);return a instanceof Promise?a.then(r=>Ij(n,r)):Ij(n,a)}return e.innerType._zod.run(n,i)}}),em=P("$ZodExactOptional",(t,e)=>{ec.init(t,e),je(t,"values",n=>n.def.innerType._zod.values),je(t,"pattern",n=>n.def.innerType._zod.pattern),t._zod.parse=(n,i)=>e.innerType._zod.run(n,i)}),nm=P("$ZodNullable",(t,e)=>{Ie.init(t,e),je(t,"optin",n=>n.def.innerType._zod.optin),je(t,"optout",n=>n.def.innerType._zod.optout),je(t,"pattern",n=>{let i=n.def.innerType._zod.pattern;return i?new RegExp(`^(${po(i.source)}|null)$`):void 0}),je(t,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),t._zod.parse=(n,i)=>n.value===null?n:e.innerType._zod.run(n,i)}),im=P("$ZodDefault",(t,e)=>{Ie.init(t,e),t._zod.optin="defaulted",je(t,"values",n=>n.def.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=>zj(r,e)):zj(a,e)}});function zj(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var tm=P("$ZodPrefault",(t,e)=>{Ie.init(t,e),t._zod.optin="defaulted",je(t,"values",n=>n.def.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))}),am=P("$ZodNonOptional",(t,e)=>{Ie.init(t,e),je(t,"values",n=>{let i=n.def.innerType._zod.values;return i?new Set([...i].filter(a=>a!==void 0)):void 0}),t._zod.parse=(n,i)=>{let a=e.innerType._zod.run(n,i);return a instanceof Promise?a.then(r=>Dj(r,t)):Dj(a,t)}});function Dj(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}function Gj(t,e,n,i){return e.issues.length?(t.value=n.catchValue({...e,value:t.value,error:{issues:e.issues.map(a=>et(a,i,Ti()))},input:t.value}),t):(t.value=e.value,e.memo&&(t.memo=!0),t)}var rm=P("$ZodCatch",(t,e)=>{Ie.init(t,e),je(t,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),je(t,"optout",n=>n.def.innerType._zod.optout),je(t,"values",n=>n.def.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({value:n.value,issues:[]},i);return a instanceof Promise?a.then(r=>Gj(n,r,e,i)):Gj(n,a,e,i)}});var nc=P("$ZodPipe",(t,e)=>{Ie.init(t,e),je(t,"values",n=>n.def.in._zod.values),je(t,"optin",n=>n.def.in._zod.optin),je(t,"optout",n=>n.def.out._zod.optout),je(t,"propValues",n=>n.def.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=>Ju(s,e.in,i)):Ju(r,e.in,i)}let a=e.in._zod.run(n,i);return a instanceof Promise?a.then(r=>Ju(r,e.out,i)):Ju(a,e.out,i)}});function Ju(t,e,n){return t.issues.some(i=>i.code!=="unrecognized_keys")?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}var nS=P("$ZodPreprocess",(t,e)=>{nc.init(t,e)}),sm=P("$ZodReadonly",(t,e)=>{Ie.init(t,e),je(t,"propValues",n=>n.def.innerType._zod.propValues),je(t,"values",n=>n.def.innerType._zod.values),je(t,"optin",n=>n.def.innerType?._zod?.optin),je(t,"optout",n=>n.def.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(Nj):Nj(a)}});function Nj(t){return t.memo||(t.value=Object.freeze(t.value)),t}var om=P("$ZodCustom",(t,e)=>{wn.init(t,e),Ie.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=>Uj(r,n,i,t));Uj(a,n,i,t)}});function Uj(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(ts(a))}}var um=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},cm="~memo",iS=[];function tS(t){return t!==null&&typeof t=="object"}function lm(t){return t.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var aS=new WeakMap,So=0,ac=1,Oo=2;function rc(t,e,n){let i=aS.get(t);if(i!==void 0)return i?Oo:So;if(e.has(t))return Oo;e.add(t);let a=So,r=u=>{if(a!==Oo&&u?._zod){let p=rc(u,e,n);p>a&&(a=p)}},s=(u,p)=>{let h=So;for(let g of Reflect.ownKeys(u)){let d=Object.getOwnPropertyDescriptor(u,g);if(p&&!d.enumerable)continue;let m=d.get?ac:d.value?._zod?rc(d.value,e,n):So;m>h&&(h=m)}return h},o=u=>{u>a&&(a=u)},l=t._zod.def,c=l.type;switch(c){case"object":{let u=is(l);o(u?s(u,!0):ac),r(l.catchall);break}case"array":r(l.element);break;case"tuple":for(let u of l.items)r(u);r(l.rest);break;case"record":case"map":r(l.keyType),r(l.valueType);break;case"set":r(l.valueType);break;case"union":for(let u of l.options)r(u);break;case"intersection":r(l.left),r(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":r(l.innerType);break;case"pipe":r(l.in),r(l.out);break;case"function":r(l.input),r(l.output);break;case"lazy":{let u=l._cachedInner??(n?t._zod.innerType:void 0);o(u?rc(u,e,!1):ac);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let u in l){let p=Object.getOwnPropertyDescriptor(l,u);if(!p||p.get)continue;let h=p.value;if(!(!h||typeof h!="object")){if(h._zod)r(h);else if(Array.isArray(h))for(let g of h)r(g)}}}return e.delete(t),xG(t,a)}function xG(t,e){return e!==ac&&aS.set(t,e===Oo),e}function yG(t,e){let n=t.buckets.get(e);return n||(n=new WeakMap,t.buckets.set(e,n)),n}var ic,tc=[],PG={alloc(t,e,n){let i=ic;if(!i)return n;ic=void 0;let a={value:n,issues:null};return i.set(e.value,a),tc.push(a),n},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let n=t._zod.parse,i=(a,r)=>{if(r.direction!=="backward"&&jG(r,a.value))throw new um;return n(a,r)};t._zod.parse=i,t._zod.run===n&&(t._zod.run=i)})},attach(t){var e;let n,i=!1,a,r;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let s=t._zod.parse,o=(l,c)=>{if(n===void 0){let f=rc(t,new Set,!1);if(f===So)return t._zod.parse=s,t._zod.run===o&&(t._zod.run=s),s(l,c);f===Oo||i?n=!0:i=!0}let u=l.value;if(!tS(u))return s(l,c);let p=c[cm];p||(p={buckets:new WeakMap,backEdges:void 0},c[cm]=p);let h;a===c?h=r:(h=yG(p,t),a=c,r=h);let g=h.get(u);if(g)return l.value=g.value,g.issues?g.issues.length&&l.issues.push(...lm(g.issues)):(l.memo=!0,p.backEdges??(p.backEdges=new WeakSet),p.backEdges.add(g.value)),l;ic=h;let d=tc.length,m=s(l,c);ic=void 0;let w=tc.length>d?tc.pop():void 0;return m instanceof Promise?m.then(f=>(w&&(w.issues=f.issues.length?lm(f.issues):iS),f)):(w&&(w.issues=m.issues.length?lm(m.issues):iS),m)};t._zod.parse=o,t._zod.run===s&&(t._zod.run=o)})}};function rS(){return PG}function jG(t,e){let n=t[cm]?.backEdges;return n!==void 0&&tS(e)&&n.has(e)}var SG=()=>{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(r){return t[r]??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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function a(r,s){return r==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):i[r]??r}return r=>{switch(r.code){case"invalid_type":{let s=a(r.expected),o=rg(r.input),l=a(o,r.input);return`Invalid input: expected ${s}, received ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${zu(r.values[0])}`:`Invalid option: expected one of ${Ru(r.values,"|")}`;case"too_big":{let s=r.exact?"exactly ":r.inclusive?"<=":"<",o=e(r.origin);return o?`Too big: expected ${r.origin??"value"} to have ${s}${r.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${s}${r.maximum.toString()}`}case"too_small":{let s=r.exact?"exactly ":r.inclusive?">=":">",o=e(r.origin);return o?`Too small: expected ${r.origin} to have ${s}${r.minimum.toString()} ${o.unit}`:`Too small: expected ${r.origin} to be ${s}${r.minimum.toString()}`}case"invalid_format":{let s=r;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 ${n[s.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${Ru(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`Invalid discriminator value. Expected ${r.options.map(o=>`'${o}'`).join(" | ")}`:r.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function sS(){return{localeError:SG()}}var oS;var pm=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 OG(){return new pm}(oS=globalThis).__zod_globalRegistry??(oS.__zod_globalRegistry=OG());var nr=globalThis.__zod_globalRegistry;function lS(t){return t.checks&&(t.checks=[...t.checks]),t}function dm(t,e){return new t(lS({type:"string",...K(e)}))}function hm(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...K(e)})}function gm(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...K(e)})}function mm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...K(e)})}function fm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...K(e)})}function wm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...K(e)})}function vm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...K(e)})}function Cm(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...K(e)})}function Am(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...K(e)})}function bm(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...K(e)})}function xm(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...K(e)})}function ym(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...K(e)})}function Pm(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...K(e)})}function jm(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...K(e)})}function Sm(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...K(e)})}function Om(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...K(e)})}function Tm(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...K(e)})}function km(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...K(e)})}function Mm(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...K(e)})}function Em(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...K(e)})}function qm(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...K(e)})}function _m(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...K(e)})}function Hm(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...K(e)})}function sc(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...K(e)})}function oc(t,e){return new t({type:"string",format:"date",check:"string_format",...K(e)})}function lc(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...K(e)})}function uc(t,e){return new t({type:"string",format:"duration",check:"string_format",...K(e)})}function Wm(t,e){return new t(lS({type:"number",checks:[],...K(e)}))}function Rm(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...K(e)})}function Im(t,e){return new t({type:"boolean",...K(e)})}function zm(t,e){return new t({type:"null",...K(e)})}function Dm(t){return new t({type:"unknown"})}function Gm(t,e){return new t({type:"never",...K(e)})}function cc(t,e){return new wg({check:"less_than",...K(e),value:t,inclusive:!1})}function To(t,e){return new wg({check:"less_than",...K(e),value:t,inclusive:!0})}function pc(t,e){return new vg({check:"greater_than",...K(e),value:t,inclusive:!1})}function ko(t,e){return new vg({check:"greater_than",...K(e),value:t,inclusive:!0})}function dc(t,e){return new Cj({check:"multiple_of",...K(e),value:t})}function hc(t,e){return new bj({check:"max_length",...K(e),maximum:t})}function ss(t,e){return new xj({check:"min_length",...K(e),minimum:t})}function gc(t,e){return new yj({check:"length_equals",...K(e),length:t})}function Nm(t,e){return new Pj({check:"string_format",format:"regex",...K(e),pattern:t})}function Um(t){return new jj({check:"string_format",format:"lowercase",...K(t)})}function $m(t){return new Sj({check:"string_format",format:"uppercase",...K(t)})}function Bm(t,e){return new Oj({check:"string_format",format:"includes",...K(e),includes:t})}function Lm(t,e){return new Tj({check:"string_format",format:"starts_with",...K(e),prefix:t})}function Fm(t,e){return new kj({check:"string_format",format:"ends_with",...K(e),suffix:t})}function sa(t){return new Mj({check:"overwrite",tx:t})}function Vm(t){return sa(e=>e.normalize(t))}function Jm(){return sa(t=>t.trim())}function Km(){return sa(t=>t.toLowerCase())}function Zm(){return sa(t=>t.toUpperCase())}function Qm(){return sa(t=>Yh(t))}function uS(t,e,n){return new t({type:"array",element:e,...K(n)})}function Xm(t,e,n){let i=K(n);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function Ym(t,e,n){return new t({type:"custom",check:"custom",fn:e,...K(n)})}function ef(t,e){let n=TG(i=>(i.addIssue=a=>{if(typeof a=="string")i.issues.push(ts(a,i.value,n._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),"input"in r||(r.input=i.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),i.issues.push(ts(r))}},t(i.value,i)),e);return n}function TG(t,e){let n=new wn({check:"custom",...K(e)});return n._zod.check=t,n}function Mo(t,...e){for(let n of e)for(let i of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,i)&&ti(t,i,n[i]);return t}function qo(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??nr,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??"ref",reused:t?.reused??"inline",intersections:[],deferred:[],external:t?.external??void 0}}function vn(t,e,n,i,a){let r=typeof e.unrepresentable=="function"?e.unrepresentable({zodSchema:t,path:i.path,message:a}):e.unrepresentable;if(r==="any")return!1;if(r===void 0||r==="throw")throw new Error(a);return Object.assign(n,r),!0}function ze(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),e.sharedDefsExtractedFor=void 0,e.sharedEmitDoneFor=void 0;let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let u={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,u);else{let h=s.schema,g=e.processors[a.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);g(t,e,h,u)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),ze(p,e,u),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Mo(s.schema,l),e.io==="input"&&Ln(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 cS(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function _o(t,e){let n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(t.external&&t.sharedDefsExtractedFor===t.external)return;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,h=t.external.uri??(d=>d);if(p)return{ref:h(p)};let g=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=g,{defId:g,ref:`${h("__shared")}#/${o}/${cS(g)}`}}let l="#",c=`${l}/${o}/`;if(s[1]===n&&!s[1].schema.id)return{ref:l};let u=s[1].schema.id??`__schema${t.counter++}`;return{defId:u,ref:c+cS(u)}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:c}=a(s);o.def={...o.schema},c&&(o.defId=c);let u=o.schema;for(let p in u)delete u[p];u.$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 s of t.seen.entries()){let o=s[1];if(e===s[0]){r(s);continue}if(t.external){let c=t.external.registry.get(s[0])?.id;if(e!==s[0]&&c){r(s);continue}}if(t.metadataRegistry.get(s[0])?.id){r(s);continue}if(o.cycle){r(s);continue}o.count>1&&t.reused==="ref"&&r(s)}t.external&&(t.sharedDefsExtractedFor=t.external)}function lS(t){let e=t.anyOf;if(!Array.isArray(e)||e.length===0||t.type!==void 0)return;let n=[];for(let i of e){if(!i||typeof i!="object")return;lS(i);let a=Object.keys(i);if(a.length!==1||a[0]!=="type")return;let r=i.type;for(let s of Array.isArray(r)?r:[r]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete t.anyOf,t.type=n.length===1?n[0]:n}var uS=new Set(["type","properties","required","additionalProperties"]),sS=["oneOf","anyOf"];function oS(t){let e=t.additionalProperties;return e===void 0||e===!1||typeof e!="object"||e===null?null:Object.keys(e).length?e:null}function Ym(t){let e=[];for(let r of t){if(typeof r!="object"||r.type!=="object")return null;for(let s in r)if(!uS.has(s))return null;e.push(r)}let n={},i=new Set;for(let r of e){for(let s in r.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let o=[];for(let c of e){let u=c.properties?.[s]??oS(c);u!=null&&(o.some(p=>JSON.stringify(p)===JSON.stringify(u))||o.push(u))}let l=o.length===1?o[0]:Ym(o)??{allOf:o};ii(n,s,l)}for(let s of r.required??[])i.add(s)}let a={type:"object",properties:n};if(i.size&&(a.required=[...i]),e.every(r=>r.additionalProperties===!1))a.additionalProperties=!1;else{let r=[];for(let s of e){let o=oS(s);o&&!r.some(l=>JSON.stringify(l)===JSON.stringify(o))&&r.push(o)}r.length===1?a.additionalProperties=r[0]:r.length>1&&(a.additionalProperties={allOf:r})}return a}function CG(t){let e=t.allOf;if(!Array.isArray(e)||e.length<2)return;for(let a of uS)if(a in t)return;let n=e.filter(a=>sS.some(r=>Array.isArray(a[r]))),i=null;if(!n.length)i=Ym(e);else{let a=n[0],r=sS.find(l=>Array.isArray(a[l]));if(Object.keys(a).length!==1)return;let s=e.filter(l=>l!==a),o=a[r].map(l=>Ym([...s,l]));if(o.some(l=>!l))return;i={[r]:o}}i&&(delete t.allOf,So(t,i))}function Mo(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 c=l.def??l.schema,u={...c},p=l.ref;if(l.ref=null,p){i(p);let g=t.seen.get(p),d=g.schema;if(d.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(d)):So(c,d),So(c,u),o._zod.parent===p)for(let w in c)w==="$ref"||w==="allOf"||w in u||delete c[w];if(d.$ref&&g.def)for(let w in c)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(c[w])===JSON.stringify(g.def[w])&&delete c[w]}let h=o._zod.parent;if(h&&h!==p){i(h);let g=t.seen.get(h);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let d in c)d==="$ref"||d==="allOf"||d in g.def&&JSON.stringify(c[d])===JSON.stringify(g.def[d])&&delete c[d]}t.override({zodSchema:o,jsonSchema:c,path:l.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let o of[...t.seen.entries()].reverse())i(o[0]);if(t.target!=="openapi-3.0")for(let o of t.seen.entries())lS(o[1].def??o[1].schema);for(let o of t.deferred)o();if(t.intersections.length){let o=new Map;for(let l of t.seen.values())for(let c of[l.schema,l.def]){let u=c?.allOf;if(!Array.isArray(u))continue;let p=o.get(u);p?p.push(c):o.set(u,[c])}for(let l of t.intersections)for(let c of o.get(l)??[])CG(c)}}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)}So(a,n.defId?n.schema: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??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,ii(s,l.defId,l.def))}t.external&&(t.sharedEmitDoneFor=t.external),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:Oo(e,"input",t.processors),output:Oo(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function Ln(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 Ln(i.element,n);if(i.type==="set")return Ln(i.valueType,n);if(i.type==="lazy")return Ln(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"||i.type==="catch")return Ln(i.innerType,n);if(i.type==="intersection")return Ln(i.left,n)||Ln(i.right,n);if(i.type==="record"||i.type==="map")return Ln(i.keyType,n)||Ln(i.valueType,n);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:Ln(i.in,n)||Ln(i.out,n);if(i.type==="object"){for(let a in i.shape)if(Ln(i.shape[a],n))return!0;return!1}if(i.type==="union"){for(let a of i.options)if(Ln(a,n))return!0;return!1}if(i.type==="tuple"){for(let a of i.items)if(Ln(a,n))return!0;return!!(i.rest&&Ln(i.rest,n))}return!1}var cS=(t,e={})=>n=>{let i=To({...n,processors:e});return ze(t,i),ko(i,t),Mo(i,t)},Oo=(t,e,n={})=>i=>{let{libraryOptions:a,target:r}=i??{},s=To({...a??{},target:r,io:e,processors:n});return ze(t,s),ko(s,t),Mo(s,t)};var is=(t,e,n)=>{(t[e]===void 0||n>t[e])&&(t[e]=n)},ts=(t,e,n)=>{(t[e]===void 0||n{is(t,"minimum",e),ts(t,"maximum",e)},fS=(t,e)=>{t.multipleOf??(t.multipleOf=[]),t.multipleOf.includes(e)||t.multipleOf.push(e)},wS=(t,e)=>{t.patterns??(t.patterns=new Set),t.patterns.add(e)},vS=(t,e)=>{t.mime=t.mime?t.mime.filter(n=>e.includes(n)):[...e]},CS=(t,e)=>{t.format=e,e.includes("int")&&(t.isInt=!0)},dS=(t,e)=>is(t,"minimum",e.minimum),hS=(t,e)=>ts(t,"maximum",e.maximum),gS=t=>(e,n)=>{CS(e,n.format);let[i,a]=t[n.format];is(e,"minimum",i),ts(e,"maximum",a)},AG={greater_than:(t,e)=>is(t,e.inclusive?"minimum":"exclusiveMinimum",e.value),less_than:(t,e)=>ts(t,e.inclusive?"maximum":"exclusiveMaximum",e.value),multiple_of:(t,e)=>fS(t,e.value),number_format:gS(lo),bigint_format:gS(Wu),min_length:dS,max_length:hS,length_equals:(t,e)=>pS(t,e.length),min_size:dS,max_size:hS,size_equals:(t,e)=>pS(t,e.size),string_format:(t,e)=>{CS(t,e.format),e.pattern&&wS(t,e.pattern),(e.format==="base64"||e.format==="base64url")&&(t.contentEncoding=e.format),(e.local||e.precision===-1)&&(t.laxFormat=!0)},mime_type:(t,e)=>vS(t,e.mime)};function ri(t){let e={},n=t._zod.def,i=t._zod.traits.has("$ZodCheck")?[t,...n.checks??[]]:n.checks??[];for(let r of i)AG[r._zod.def.check]?.(e,r._zod.def);let a=t._zod.bag;a.minimum!==void 0&&is(e,"minimum",a.minimum),a.exclusiveMinimum!==void 0&&is(e,"exclusiveMinimum",a.exclusiveMinimum),a.maximum!==void 0&&ts(e,"maximum",a.maximum),a.exclusiveMaximum!==void 0&&ts(e,"exclusiveMaximum",a.exclusiveMaximum),a.multipleOf!==void 0&&fS(e,a.multipleOf),a.format!==void 0&&(e.format??(e.format=a.format),a.format.includes("int")&&(e.isInt=!0)),a.mime&&vS(e,a.mime);for(let r of a.patterns??[])wS(e,r);return e}var bG={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},xG=new Map([[_g,nj],[Vu,ij]]),AS=t=>xG.get(t)??t,nf=(t,e,n,i)=>{let a=n;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:c,laxFormat:u}=ri(t);if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=bG[o]??o,a.format===""&&delete a.format,(o==="time"||u)&&delete a.format),c&&(a.contentEncoding=c),l&&l.size>0){let p=[...l].map(AS);p.length===1?a.pattern=p[0].source:p.length>1&&(a.allOf=[...p.map(h=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},tf=(t,e,n,i)=>{let a=n,{minimum:r,maximum:s,multipleOf:o,exclusiveMaximum:l,exclusiveMinimum:c,isInt:u}=ri(t);a.type=u?"integer":"number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),h=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),g=e.target==="draft-04"||e.target==="openapi-3.0";if(p?g?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),h?g?(a.maximum=l,a.exclusiveMaximum=!0):a.exclusiveMaximum=l:typeof s=="number"&&(a.maximum=s),o){let d=new Set;for(let f of o)Number.isFinite(f)&&f!==0?d.add(Math.abs(f)):vn(t,e,a,i,`A multipleOf divisor of ${f} cannot be represented in JSON Schema`);let[m,...w]=d;m!==void 0&&(a.multipleOf=m),w.length&&(a.allOf=[...a.allOf??[],...w.map(f=>({multipleOf:f}))])}},af=(t,e,n,i)=>{n.type="boolean"},bS=(t,e,n,i)=>{vn(t,e,n,i,"BigInt cannot be represented in JSON Schema")},xS=(t,e,n,i)=>{vn(t,e,n,i,"Symbols cannot be represented in JSON Schema")},rf=(t,e,n,i)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},yS=(t,e,n,i)=>{vn(t,e,n,i,"Undefined cannot be represented in JSON Schema")},PS=(t,e,n,i)=>{vn(t,e,n,i,"Void cannot be represented in JSON Schema")},sf=(t,e,n,i)=>{n.not={}},jS=(t,e,n,i)=>{},of=(t,e,n,i)=>{},SS=(t,e,n,i)=>{vn(t,e,n,i,"Date cannot be represented in JSON Schema")},lf=(t,e,n,i)=>{let a=t._zod.def,r=Jr(a.entries);if(r.length===0){n.not={};return}r.every(s=>typeof s=="number")&&(n.type="number"),r.every(s=>typeof s=="string")&&(n.type="string"),n.enum=r},uf=(t,e,n,i)=>{let a=t._zod.def;if(a.values.length===0){n.not={};return}let r=[];for(let s of a.values)if(s===void 0){if(vn(t,e,n,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(vn(t,e,n,i,"BigInt literals cannot be represented in JSON Schema"))return;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},OS=(t,e,n,i)=>{vn(t,e,n,i,"NaN cannot be represented in JSON Schema")},TS=(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},kS=(t,e,n,i)=>{let a=n;a.type="string",a.format="binary",a.contentEncoding="binary";let{minimum:r,maximum:s,mime:o}=ri(t);r!==void 0&&(a.minLength=r),s!==void 0&&(a.maxLength=s),o&&(o.length===0?a.not={}:o.length===1?a.contentMediaType=o[0]:a.anyOf=o.map(l=>({contentMediaType:l})))},MS=(t,e,n,i)=>{n.type="boolean"},cf=(t,e,n,i)=>{vn(t,e,n,i,"Custom types cannot be represented in JSON Schema")},ES=(t,e,n,i)=>{vn(t,e,n,i,"Function types cannot be represented in JSON Schema")},pf=(t,e,n,i)=>{vn(t,e,n,i,"Transforms cannot be represented in JSON Schema")},qS=(t,e,n,i)=>{vn(t,e,n,i,"Map cannot be represented in JSON Schema")},_S=(t,e,n,i)=>{vn(t,e,n,i,"Set cannot be represented in JSON Schema")},df=(t,e,n,i)=>{let a=n,r=t._zod.def,{minimum:s,maximum:o}=ri(t);typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=ze(r.element,e,{...i,path:[...i.path,"items"]})};function Eo(t){let e=t._zod.def;return e.type==="pipe"&&e.in._zod.traits.has("$ZodTransform")?Eo(e.out):e.type==="catch"?Eo(e.innerType):t._zod.optin}var hf=(t,e,n,i)=>{let a=n,r=t._zod.def,s=r.shape;if(Object.getOwnPropertySymbols(s).length&&vn(t,e,a,i,"Symbol keys cannot be represented in JSON Schema"))return;a.type="object",a.properties={};for(let c in s)ii(a.properties,c,ze(s[c],e,{...i,path:[...i.path,"properties",c]}));let l=[];for(let c of Object.keys(s)){let u=r.shape[c];(e.io==="input"?Eo(u)===void 0:u._zod.optout===void 0)&&l.push(c)}l.length>0&&(a.required=l),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=ze(r.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},gf=(t,e,n,i)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>ze(o,e,{...i,path:[...i.path,r?"oneOf":"anyOf",l]}));r?n.oneOf=s:n.anyOf=s},mf=(t,e,n,i)=>{let a=t._zod.def,r=ze(a.left,e,{...i,path:[...i.path,"allOf",0]}),s=ze(a.right,e,{...i,path:[...i.path,"allOf",1]}),o=c=>"allOf"in c&&Object.keys(c).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];n.allOf=l,e.intersections.push(l)},HS=(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((m,w)=>ze(m,e,{...i,path:[...i.path,s,w]})),c=r.rest?ze(r.rest,e,{...i,path:[...i.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null,u=r.items.length;for(;u>0;){let m=r.items[u-1];if(!(e.io==="input"?Eo(m)!==void 0:m._zod.optout==="optional"))break;u--}let p=r.items.length,h=!r.rest;e.target==="draft-2020-12"?(a.prefixItems=l,h?a.items=!1:c&&(a.items=c),u>0&&(a.minItems=u),h&&(a.maxItems=p)):e.target==="openapi-3.0"?(a.items={anyOf:l},c&&a.items.anyOf.push(c),u>0&&(a.minItems=u),h&&(a.maxItems=p)):(a.items=l,h?a.additionalItems=!1:c&&(a.additionalItems=c),u>0&&(a.minItems=u),h&&(a.maxItems=p));let{minimum:g,maximum:d}=ri(t);typeof g=="number"&&(a.minItems=g),typeof d=="number"&&(a.maxItems=d)};function Xm(t,e,n){if(e.$ref){if(n.has(e))return e;n.add(e);let d=t.get(e)?.def;if(!d)return e;let m=Xm(t,d,n);return m===d?e:m}for(let d of["anyOf","oneOf"]){let m=e[d];if(!Array.isArray(m))continue;let w=m.map(f=>Xm(t,f,n));w.some((f,A)=>f!==m[A])&&(e={...e,[d]:w})}let i=Array.isArray(e.type)?e.type:[e.type],a=!i.includes("string")&&i.some(d=>d==="number"||d==="integer"),r=e.enum??(e.const!==void 0?[e.const]:void 0);if(!a&&!r?.some(d=>typeof d=="number"))return e;let{minimum:s,maximum:o,exclusiveMinimum:l,exclusiveMaximum:c,multipleOf:u,format:p,id:h,...g}=e;return g.enum?g.enum=g.enum.map(d=>typeof d=="number"?String(d):d):typeof g.const=="number"&&(g.const=String(g.const)),a&&(g.type="string",r||(g.pattern=(i.includes("number")?Co:dg).source)),g}var ef=new WeakMap;function yG(t){let e=new Map;for(let i of t.seen.values())i.def&&!e.has(i.schema)&&e.set(i.schema,i);let n=new Map;for(let i of ef.get(t)??[]){let a=t.seen.get(i),r=(a?.def??a?.schema)?.propertyNames;if(!r||r===!0||n.has(r))continue;let s=Xm(e,r,new Set);s!==r&&n.set(r,s)}if(n.size)for(let i of t.seen.values())for(let a of[i.schema,i.def]){let r=a&&n.get(a.propertyNames);r&&(a.propertyNames=r)}}var ff=(t,e,n,i)=>{let a=n,r=t._zod.def;a.type="object";let s=r.keyType,o=ri(s).patterns;if(r.mode==="loose"&&o&&o.size>0){let u=ze(r.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});a.patternProperties={};for(let p of o)ii(a.patternProperties,AS(p).source,u)}else{if(e.target==="draft-07"||e.target==="draft-2020-12"){a.propertyNames=ze(r.keyType,e,{...i,path:[...i.path,"propertyNames"]});let u=ef.get(e);u||(u=[],ef.set(e,u),e.deferred.push(()=>yG(e))),u.push(t)}a.additionalProperties=ze(r.valueType,e,{...i,path:[...i.path,"additionalProperties"]})}let l=s._zod.values,c=e.io==="input"&&Eo(r.valueType)!==void 0;if(l&&!r.partial&&!c){let u=[...l].filter(p=>typeof p=="string"||typeof p=="number");u.length>0&&(a.required=u.map(String))}},wf=(t,e,n,i)=>{let a=t._zod.def,r=ze(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"}]},vf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},Cf=Symbol();function WS(t,e,n,i,a){let r=!1,s=JSON.stringify(t,(o,l)=>typeof l!="bigint"?l:(r=!0,null));return r?(vn(e,n,i,a,"BigInt defaults cannot be represented in JSON Schema"),Cf):JSON.parse(s)}var Af=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType;let s=WS(a.defaultValue,t,e,n,i);s!==Cf&&(n.default=s)},bf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);if(r.ref=a.innerType,e.io!=="input")return;let s=WS(a.defaultValue,t,e,n,i);s!==Cf&&(n._prefault=s)},xf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{vn(t,e,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},yf=(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;ze(s,e,i);let o=e.seen.get(t);o.ref=s},Pf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType,n.readOnly=!0},RS=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},pc=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},IS=(t,e,n,i)=>{let a=t._zod.innerType;ze(a,e,i);let r=e.seen.get(t);r.ref=a},mS={string:nf,number:tf,boolean:af,bigint:bS,symbol:xS,null:rf,undefined:yS,void:PS,never:sf,any:jS,unknown:of,date:SS,enum:lf,literal:uf,nan:OS,template_literal:TS,file:kS,success:MS,custom:cf,function:ES,transform:pf,map:qS,set:_S,array:df,object:hf,union:gf,intersection:mf,tuple:HS,record:ff,nullable:wf,nonoptional:vf,default:Af,prefault:bf,catch:xf,pipe:yf,readonly:Pf,promise:RS,optional:pc,lazy:IS};function jf(t,e){if("_idmap"in t){let i=t,a=To({...e,processors:mS}),r={};for(let l of i._idmap.entries()){let[c,u]=l;ze(u,a)}let s={},o={registry:i,uri:e?.uri,defs:r};a.external=o;for(let l of i._idmap.entries()){let[c,u]=l;ko(a,u),ii(s,c,Mo(a,u))}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let n=To({...e,processors:mS});return ze(t,n),ko(n,t),Mo(n,t)}var fN=P("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");Ie.init(t,e),t.def=e,t.type=e.type},{get with(){return this.check},set with(t){wt(this,"with",t)},parse(t,e){return lg(this,t,e,{callee:this.parse})},parseAsync(t,e){return ug(this,t,e,{callee:this.parseAsync})},safeParse(t,e){return fo(this,t,e)},safeParseAsync(t,e){return vo(this,t,e)},check(...t){let e=this.def;return this.clone({...e,checks:[...e.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0})},clone(t,e){return ti(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},apply(t,...e){return e.length===0?t(this):t(this,...e)}});var wN=P("ZodMiniObject",(t,e)=>{Bg.init(t,e),fN.init(t,e),ag(t,"shape",n=>n._zod.def.shape,!1)});function Sf(t,e){let n={type:"object",shape:t??{},...K(e)};return new wN(n)}function Ct(t){return!!t._zod}function Ya(t){let e=Object.values(t);if(e.length===0)return Sf({});let n=e.every(Ct),i=e.every(a=>!Ct(a));if(n)return Sf(t);if(i)return $h(t);throw new Error("Mixed Zod versions detected in object shape.")}function ra(t,e){return Ct(t)?fo(t,e):t.safeParse(e)}async function dc(t,e){return Ct(t)?await vo(t,e):await t.safeParseAsync(e)}function sa(t){if(!t)return;let e;if(Ct(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function as(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 Ya(t)}}if(Ct(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 CN(t){return t.length===0?"object root":t.reduce((e,n,i)=>i===0?String(n):typeof n=="number"?`${e}[${n}]`:`${e}.${n}`,"")}function hc(t){if(t&&typeof t=="object"){if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0)return t.issues.map(e=>e.path?.length?`${e.message} at ${CN(e.path)}`:e.message).join(` -`);if("message"in t&&typeof t.message=="string")return t.message;try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function DS(t){return t.description}function GS(t){if(Ct(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function rs(t){if(Ct(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 NS=new WeakSet([Object.prototype,Error.prototype]);function gc(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get(){let i=n(this);return Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0})}})}var SN=(t,e)=>{TP.init(t,e),t.name="ZodError";let n=Object.getPrototypeOf(t);NS.has(n)||(NS.add(n),gc(n,"format",i=>a=>MP(i,a)),gc(n,"flatten",i=>a=>kP(i,a)),gc(n,"addIssue",i=>a=>{i.issues.push(a),i.message=JSON.stringify(i.issues,Kr,2)}),gc(n,"addIssues",i=>a=>{i.issues.push(...a),i.message=JSON.stringify(i.issues,Kr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))};var Ti=P("ZodError",SN,void 0,{Parent:Error});var US=ho(Ti),$S=go(Ti),BS=mo(Ti),LS=wo(Ti),FS=qP(Ti),VS=_P(Ti),JS=HP(Ti),KS=WP(Ti),ZS=RP(Ti),QS=IP(Ti),YS=zP(Ti),XS=DP(Ti);function TN(){ai.localeError||Oi(nS())}function fc(){ai.memoizer||Oi({memoizer:eS()})}var Je=P("ZodType",(t,e)=>(TN(),Ie.init(t,e),t.def=e,t.type=e.type,t),{check(...t){let e=this.def;return this.clone(X.mergeDefs(e,{checks:[...e.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,e){return ti(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},refine(t,e){return this.check(wU(t,e))},superRefine(t,e){return this.check(vU(t,e))},overwrite(t){return this.check(aa(t))},optional(){return Ve(this)},exactOptional(){return rU(this)},nullable(){return iO(this)},nullish(){return Ve(iO(this))},nonoptional(t){return pU(this,t)},array(){return fe(this)},or(t){return $e([this,t])},and(t){return wc(this,t)},transform(t){return tO(this,uO(t))},default(t){return lU(this,t)},prefault(t){return cU(this,t)},catch(t){return hU(this,t)},pipe(t){return tO(this,t)},readonly(){return fU(this)},describe(t){let e=this.clone();return Za.add(e,{description:t}),e},meta(...t){if(t.length===0)return Za.get(this);let e=this.clone();return Za.add(e,t[0]),e},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...e){return e.length===0?t(this):t(this,...e)},get"~standard"(){return X.hide(this,"~standard",{...wg(this),jsonSchema:{input:Oo(this,"input"),output:Oo(this,"output")}})},set"~standard"(t){X.own(this,"~standard",t)},parse:function t(e,n){return US(this,e,n,{callee:t})},parseAsync:async function t(e,n){return await $S(this,e,n,{callee:t})},safeParse(t,e){return BS(this,t,e)},async safeParseAsync(t,e){return LS(this,t,e)},get spa(){return this?.safeParseAsync},set spa(t){X.own(this,"spa",t)},validate(t,e){return Gu(this,t,e)},validateAsync(t,e){return Nu(this,t,e)},encode:function t(e,n){return FS(this,e,n,{callee:t})},decode:function t(e,n){return VS(this,e,n,{callee:t})},encodeAsync:async function t(e,n){return await JS(this,e,n,{callee:t})},decodeAsync:async function t(e,n){return await KS(this,e,n,{callee:t})},safeEncode(t,e){return ZS(this,t,e)},safeDecode(t,e){return QS(this,t,e)},async safeEncodeAsync(t,e){return YS(this,t,e)},async safeDecodeAsync(t,e){return XS(this,t,e)},toJSONSchema(t){return cS(this,{})(t)},get description(){return Za.get(this)?.description},get _def(){return this._zod.def}}),aO=P("_ZodString",(t,e)=>{bo.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>nf(t,n,i,a)},X.derived({format:t=>ri(t).format??null,minLength:t=>ri(t).minimum??null,maxLength:t=>ri(t).maximum??null},{regex(...t){return this.check(zm(...t))},includes(...t){return this.check(Nm(...t))},startsWith(...t){return this.check(Um(...t))},endsWith(...t){return this.check($m(...t))},min(...t){return this.check(ns(...t))},max(...t){return this.check(uc(...t))},length(...t){return this.check(cc(...t))},nonempty(...t){return this.check(ns(1,...t))},lowercase(t){return this.check(Dm(t))},uppercase(t){return this.check(Gm(t))},trim(){return this.check(Lm())},normalize(...t){return this.check(Bm(...t))},toLowerCase(){return this.check(Fm())},toUpperCase(){return this.check(Vm())},slugify(){return this.check(Jm())}})),kN=P("ZodString",(t,e)=>{bo.init(t,e),aO.init(t,e)},{email(t){return this.check(cm(MN,t))},url(t){return this.check(fm(qN,t))},jwt(t){return this.check(Em(VN,t))},emoji(t){return this.check(wm(_N,t))},guid(t){return this.check(pm(EN,t))},uuid(t){return this.check(dm(mc,t))},uuidv4(t){return this.check(hm(mc,t))},uuidv6(t){return this.check(gm(mc,t))},uuidv7(t){return this.check(mm(mc,t))},nanoid(t){return this.check(vm(HN,t))},cuid(t){return this.check(Cm(WN,t))},cuid2(t){return this.check(Am(RN,t))},ulid(t){return this.check(bm(IN,t))},base64(t){return this.check(Tm(BN,t))},base64url(t){return this.check(km(LN,t))},xid(t){return this.check(xm(zN,t))},ksuid(t){return this.check(ym(DN,t))},ipv4(t){return this.check(Pm(GN,t))},ipv6(t){return this.check(jm(NN,t))},cidrv4(t){return this.check(Sm(UN,t))},cidrv6(t){return this.check(Om($N,t))},e164(t){return this.check(Mm(FN,t))},datetime(t){return this.check(ic(qo,t))},date(t){return this.check(tc(_o,t))},time(t){return this.check(ac(Ho,t))},duration(t){return this.check(rc(Wo,t))}});function y(t){return um(kN,t)}var Qe=P("ZodStringFormat",(t,e)=>{Ne.init(t,e),aO.init(t,e)}),qo=P("ZodISODateTime",(t,e)=>{Nj.init(t,e),Qe.init(t,e)}),_o=P("ZodISODate",(t,e)=>{Uj.init(t,e),Qe.init(t,e)}),Ho=P("ZodISOTime",(t,e)=>{$j.init(t,e),Qe.init(t,e)}),Wo=P("ZodISODuration",(t,e)=>{Bj.init(t,e),Qe.init(t,e)}),MN=P("ZodEmail",(t,e)=>{Ag.init(t,e),Qe.init(t,e)});var EN=P("ZodGUID",(t,e)=>{vg.init(t,e),Qe.init(t,e)});var mc=P("ZodUUID",(t,e)=>{Cg.init(t,e),Qe.init(t,e)});var qN=P("ZodURL",(t,e)=>{bg.init(t,e),Qe.init(t,e)});var _N=P("ZodEmoji",(t,e)=>{xg.init(t,e),Qe.init(t,e)});var HN=P("ZodNanoID",(t,e)=>{yg.init(t,e),Qe.init(t,e)});var WN=P("ZodCUID",(t,e)=>{Pg.init(t,e),Qe.init(t,e)});var RN=P("ZodCUID2",(t,e)=>{jg.init(t,e),Qe.init(t,e)});var IN=P("ZodULID",(t,e)=>{Sg.init(t,e),Qe.init(t,e)});var zN=P("ZodXID",(t,e)=>{Og.init(t,e),Qe.init(t,e)});var DN=P("ZodKSUID",(t,e)=>{Tg.init(t,e),Qe.init(t,e)});var GN=P("ZodIPv4",(t,e)=>{kg.init(t,e),Qe.init(t,e)});var NN=P("ZodIPv6",(t,e)=>{Mg.init(t,e),Qe.init(t,e)});var UN=P("ZodCIDRv4",(t,e)=>{Eg.init(t,e),Qe.init(t,e)});var $N=P("ZodCIDRv6",(t,e)=>{qg.init(t,e),Qe.init(t,e)});var BN=P("ZodBase64",(t,e)=>{Hg.init(t,e),Qe.init(t,e)});var LN=P("ZodBase64URL",(t,e)=>{Wg.init(t,e),Qe.init(t,e)});var FN=P("ZodE164",(t,e)=>{Rg.init(t,e),Qe.init(t,e)});var VN=P("ZodJWT",(t,e)=>{Ig.init(t,e),Qe.init(t,e)});var rO=P("ZodNumber",(t,e)=>{Ju.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>tf(t,n,i,a),t.isFinite=!0},X.derived({minValue:t=>{let{minimum:e,exclusiveMinimum:n}=ri(t);return Math.max(e??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:t=>{let{maximum:e,exclusiveMaximum:n}=ri(t);return Math.min(e??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:t=>{let{isInt:e,multipleOf:n}=ri(t);return!!e||!!n?.some(Number.isSafeInteger)},format:t=>ri(t).format??null},{gt(t,e){return this.check(oc(t,e))},gte(t,e){return this.check(jo(t,e))},min(t,e){return this.check(jo(t,e))},lt(t,e){return this.check(sc(t,e))},lte(t,e){return this.check(Po(t,e))},max(t,e){return this.check(Po(t,e))},int(t){return this.check(eO(t))},safe(t){return this.check(eO(t))},positive(t){return this.check(oc(0,t))},nonnegative(t){return this.check(jo(0,t))},negative(t){return this.check(sc(0,t))},nonpositive(t){return this.check(Po(0,t))},multipleOf(t,e){return this.check(lc(t,e))},step(t,e){return this.check(lc(t,e))},finite(){return this}}));function _e(t){return qm(rO,t)}var JN=P("ZodNumberFormat",(t,e)=>{zg.init(t,e),rO.init(t,e)});function eO(t){return _m(JN,t)}var KN=P("ZodBoolean",(t,e)=>{Dg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>af(t,n,i,a)});function Cn(t){return Hm(KN,t)}var ZN=P("ZodNull",(t,e)=>{Gg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>rf(t,n,i,a)});function sO(t){return Wm(ZN,t)}var QN=P("ZodUnknown",(t,e)=>{Ng.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>of(t,n,i,a)});function Fe(){return Rm(QN)}var YN=P("ZodNever",(t,e)=>{Ug.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>sf(t,n,i,a)});function XN(t){return Im(YN,t)}var eU=P("ZodArray",(t,e)=>{fc(),$g.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>df(t,n,i,a),t.element=e.element},{min(t,e){return this.check(ns(t,e))},nonempty(t){return this.check(ns(1,t))},max(t,e){return this.check(uc(t,e))},length(t,e){return this.check(cc(t,e))},unwrap(){return this.element}});function fe(t,e){return aS(eU,t,e)}var oO=P("ZodObject",(t,e)=>{fc(),Kj.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>hf(t,n,i,a),X.installLazyProp(t,"shape",n=>n._zod.def.shape,!1)},{keyof(){return si(Object.keys(this._zod.def.shape))},catchall(t){return this.clone(X.mergeDefs(this._zod.def,{catchall:t}))},passthrough(){return this.clone(X.mergeDefs(this._zod.def,{catchall:Fe()}))},loose(){return this.clone(X.mergeDefs(this._zod.def,{catchall:Fe()}))},strict(){return this.clone(X.mergeDefs(this._zod.def,{catchall:XN()}))},strip(){return this.clone(X.mergeDefs(this._zod.def,{catchall:void 0}))},extend(t){return X.extend(this,t)},safeExtend(t){return X.safeExtend(this,t)},merge(t){return X.merge(this,t)},pick(t){return X.pick(this,t)},omit(t){return X.omit(this,t)},partial(...t){return X.partial(vc,this,t[0])},exactPartial(...t){return X.partial(cO,this,t[0],"exactPartial")},required(...t){return X.required(pO,this,t[0])}});function D(t,e){let n={type:"object",shape:t??{},...X.normalizeParams(e)};return new oO(n)}function Fn(t,e){return new oO({type:"object",shape:t,catchall:Fe(),...X.normalizeParams(e)})}var lO=P("ZodUnion",(t,e)=>{Ku.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>gf(t,n,i,a),t.options=e.options});function $e(t,e){return new lO({type:"union",options:t,...X.normalizeParams(e)})}var nU=P("ZodDiscriminatedUnion",(t,e)=>{lO.init(t,e),Lg.init(t,e)});function Tf(t,e,n){return new nU({type:"union",options:e,discriminator:t,...X.normalizeParams(n)})}var iU=P("ZodIntersection",(t,e)=>{Fg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>mf(t,n,i,a)});function wc(t,e){return new iU({type:"intersection",left:t,right:e})}var nO=P("ZodRecord",(t,e)=>{fc(),Vg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>ff(t,n,i,a),t.keyType=e.keyType,t.valueType=e.valueType});function Ue(t,e,n){return!e||!e._zod?new nO({type:"record",keyType:y(),valueType:t,...X.normalizeParams(e)}):new nO({type:"record",keyType:t,valueType:e,...X.normalizeParams(n)})}var Of=P("ZodEnum",(t,e)=>{Jg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(i,a,r)=>lf(t,i,a,r),t.enum=e.entries,t.options=[...t._zod.values];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 Of({...e,checks:[],...X.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 Of({...e,checks:[],...X.normalizeParams(a),entries:r})}});function si(t,e){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Of({type:"enum",entries:n,...X.normalizeParams(e)})}var tU=P("ZodLiteral",(t,e)=>{Kg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>uf(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 L(t,e){return new tU({type:"literal",values:Array.isArray(t)?t:[t],...X.normalizeParams(e)})}var aU=P("ZodTransform",(t,e)=>{fc(),Zg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>pf(t,n,i,a),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Xr(t.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(X.issue(r,n.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=t),n.issues.push(X.issue(s))}};let a=e.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n)):(n.value=a,n)}});function uO(t){return new aU({type:"transform",transform:t})}var vc=P("ZodOptional",(t,e)=>{Zu.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>pc(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function Ve(t){return new vc({type:"optional",innerType:t})}var cO=P("ZodExactOptional",(t,e)=>{Qg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>pc(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function rU(t){return new cO({type:"optional",innerType:t})}var sU=P("ZodNullable",(t,e)=>{Yg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>wf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function iO(t){return new sU({type:"nullable",innerType:t})}var oU=P("ZodDefault",(t,e)=>{Xg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Af(t,n,i,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function lU(t,e){return new oU({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():X.shallowClone(e)}})}var uU=P("ZodPrefault",(t,e)=>{em.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>bf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function cU(t,e){return new uU({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():X.shallowClone(e)}})}var pO=P("ZodNonOptional",(t,e)=>{nm.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>vf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function pU(t,e){return new pO({type:"nonoptional",innerType:t,...X.normalizeParams(e)})}var dU=P("ZodCatch",(t,e)=>{im.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>xf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function hU(t,e){return new dU({type:"catch",innerType:t,catchValue:typeof e=="function"?e:X.constantCatch(e)})}var dO=P("ZodPipe",(t,e)=>{Qu.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>yf(t,n,i,a),t.in=e.in,t.out=e.out});function tO(t,e){return new dO({type:"pipe",in:t,out:e})}var gU=P("ZodPreprocess",(t,e)=>{dO.init(t,e),Zj.init(t,e)}),mU=P("ZodReadonly",(t,e)=>{tm.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Pf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function fU(t){return new mU({type:"readonly",innerType:t})}var hO=P("ZodCustom",(t,e)=>{am.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>cf(t,n,i,a)});function gO(t,e){return Km(hO,t??(()=>!0),e)}function wU(t,e={}){return Zm(hO,t,e)}function vU(t,e){return Qm(t,e)}function kf(t,e){return new gU({type:"pipe",in:uO(t),out:e})}var Cc={};Dh(Cc,{ZodISODate:()=>_o,ZodISODateTime:()=>qo,ZodISODuration:()=>Wo,ZodISOTime:()=>Ho,date:()=>AU,datetime:()=>CU,duration:()=>xU,time:()=>bU});function CU(t){return ic(qo,t)}function AU(t){return tc(_o,t)}function bU(t){return ac(Ho,t)}function xU(t){return rc(Wo,t)}var Ef="2025-11-25";var mO=[Ef,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],oa="io.modelcontextprotocol/related-task",bc="2.0",dn=gO(t=>t!==null&&(typeof t=="object"||typeof t=="function")),fO=$e([y(),_e().int()]),wO=y(),Yae=Fn({ttl:_e().optional(),pollInterval:_e().optional()}),yU=D({ttl:_e().optional()}),PU=D({taskId:y()}),qf=Fn({progressToken:fO.optional(),[oa]:PU.optional()}),ki=D({_meta:qf.optional()}),Ro=ki.extend({task:yU.optional()}),vO=t=>Ro.safeParse(t).success,Mn=D({method:y(),params:ki.loose().optional()}),Di=D({_meta:qf.optional()}),Gi=D({method:y(),params:Di.loose().optional()}),En=Fn({_meta:qf.optional()}),xc=$e([y(),_e().int()]),CO=D({jsonrpc:L(bc),id:xc,...Mn.shape}).strict(),_f=t=>CO.safeParse(t).success,AO=D({jsonrpc:L(bc),...Gi.shape}).strict(),bO=t=>AO.safeParse(t).success,Hf=D({jsonrpc:L(bc),id:xc,result:En}).strict(),Io=t=>Hf.safeParse(t).success;var J;(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"})(J||(J={}));var Wf=D({jsonrpc:L(bc),id:xc.optional(),error:D({code:_e().int(),message:y(),data:Fe().optional()})}).strict();var xO=t=>Wf.safeParse(t).success;var yO=$e([CO,AO,Hf,Wf]),Xae=$e([Hf,Wf]),yc=En.strict(),jU=Di.extend({requestId:xc.optional(),reason:y().optional()}),Pc=Gi.extend({method:L("notifications/cancelled"),params:jU}),SU=D({src:y(),mimeType:y().optional(),sizes:fe(y()).optional(),theme:si(["light","dark"]).optional()}),zo=D({icons:fe(SU).optional()}),ss=D({name:y(),title:y().optional()}),PO=ss.extend({...ss.shape,...zo.shape,version:y(),websiteUrl:y().optional(),description:y().optional()}),OU=wc(D({applyDefaults:Cn().optional()}),Ue(y(),Fe())),TU=kf(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,wc(D({form:OU.optional(),url:dn.optional()}),Ue(y(),Fe()).optional())),kU=Fn({list:dn.optional(),cancel:dn.optional(),requests:Fn({sampling:Fn({createMessage:dn.optional()}).optional(),elicitation:Fn({create:dn.optional()}).optional()}).optional()}),MU=Fn({list:dn.optional(),cancel:dn.optional(),requests:Fn({tools:Fn({call:dn.optional()}).optional()}).optional()}),EU=D({experimental:Ue(y(),dn).optional(),sampling:D({context:dn.optional(),tools:dn.optional()}).optional(),elicitation:TU.optional(),roots:D({listChanged:Cn().optional()}).optional(),tasks:kU.optional(),extensions:Ue(y(),dn).optional()}),qU=ki.extend({protocolVersion:y(),capabilities:EU,clientInfo:PO}),Rf=Mn.extend({method:L("initialize"),params:qU});var _U=D({experimental:Ue(y(),dn).optional(),logging:dn.optional(),completions:dn.optional(),prompts:D({listChanged:Cn().optional()}).optional(),resources:D({subscribe:Cn().optional(),listChanged:Cn().optional()}).optional(),tools:D({listChanged:Cn().optional()}).optional(),tasks:MU.optional(),extensions:Ue(y(),dn).optional()}),HU=En.extend({protocolVersion:y(),capabilities:_U,serverInfo:PO,instructions:y().optional()}),If=Gi.extend({method:L("notifications/initialized"),params:Di.optional()});var jc=Mn.extend({method:L("ping"),params:ki.optional()}),WU=D({progress:_e(),total:Ve(_e()),message:Ve(y())}),RU=D({...Di.shape,...WU.shape,progressToken:fO}),Sc=Gi.extend({method:L("notifications/progress"),params:RU}),IU=ki.extend({cursor:wO.optional()}),Do=Mn.extend({params:IU.optional()}),Go=En.extend({nextCursor:wO.optional()}),zU=si(["working","input_required","completed","failed","cancelled"]),No=D({taskId:y(),status:zU,ttl:$e([_e(),sO()]),createdAt:y(),lastUpdatedAt:y(),pollInterval:Ve(_e()),statusMessage:Ve(y())}),os=En.extend({task:No}),DU=Di.merge(No),Uo=Gi.extend({method:L("notifications/tasks/status"),params:DU}),Oc=Mn.extend({method:L("tasks/get"),params:ki.extend({taskId:y()})}),Tc=En.merge(No),kc=Mn.extend({method:L("tasks/result"),params:ki.extend({taskId:y()})}),ere=En.loose(),Mc=Do.extend({method:L("tasks/list")}),Ec=Go.extend({tasks:fe(No)}),qc=Mn.extend({method:L("tasks/cancel"),params:ki.extend({taskId:y()})}),jO=En.merge(No),SO=D({uri:y(),mimeType:Ve(y()),_meta:Ue(y(),Fe()).optional()}),OO=SO.extend({text:y()}),zf=y().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),TO=SO.extend({blob:zf}),$o=si(["user","assistant"]),ls=D({audience:fe($o).optional(),priority:_e().min(0).max(1).optional(),lastModified:Cc.datetime({offset:!0}).optional()}),kO=D({...ss.shape,...zo.shape,uri:y(),description:Ve(y()),mimeType:Ve(y()),size:Ve(_e()),annotations:ls.optional(),_meta:Ve(Fn({}))}),GU=D({...ss.shape,...zo.shape,uriTemplate:y(),description:Ve(y()),mimeType:Ve(y()),annotations:ls.optional(),_meta:Ve(Fn({}))}),_c=Do.extend({method:L("resources/list")}),NU=Go.extend({resources:fe(kO)}),Hc=Do.extend({method:L("resources/templates/list")}),UU=Go.extend({resourceTemplates:fe(GU)}),Df=ki.extend({uri:y()}),$U=Df,Wc=Mn.extend({method:L("resources/read"),params:$U}),BU=En.extend({contents:fe($e([OO,TO]))}),LU=Gi.extend({method:L("notifications/resources/list_changed"),params:Di.optional()}),FU=Df,VU=Mn.extend({method:L("resources/subscribe"),params:FU}),JU=Df,KU=Mn.extend({method:L("resources/unsubscribe"),params:JU}),ZU=Di.extend({uri:y()}),QU=Gi.extend({method:L("notifications/resources/updated"),params:ZU}),YU=D({name:y(),description:Ve(y()),required:Ve(Cn())}),XU=D({...ss.shape,...zo.shape,description:Ve(y()),arguments:Ve(fe(YU)),_meta:Ve(Fn({}))}),Rc=Do.extend({method:L("prompts/list")}),e$=Go.extend({prompts:fe(XU)}),n$=ki.extend({name:y(),arguments:Ue(y(),y()).optional()}),Ic=Mn.extend({method:L("prompts/get"),params:n$}),Gf=D({type:L("text"),text:y(),annotations:ls.optional(),_meta:Ue(y(),Fe()).optional()}),Nf=D({type:L("image"),data:zf,mimeType:y(),annotations:ls.optional(),_meta:Ue(y(),Fe()).optional()}),Uf=D({type:L("audio"),data:zf,mimeType:y(),annotations:ls.optional(),_meta:Ue(y(),Fe()).optional()}),i$=D({type:L("tool_use"),name:y(),id:y(),input:Ue(y(),Fe()),_meta:Ue(y(),Fe()).optional()}),t$=D({type:L("resource"),resource:$e([OO,TO]),annotations:ls.optional(),_meta:Ue(y(),Fe()).optional()}),a$=kO.extend({type:L("resource_link")}),$f=$e([Gf,Nf,Uf,a$,t$]),r$=D({role:$o,content:$f}),s$=En.extend({description:y().optional(),messages:fe(r$)}),o$=Gi.extend({method:L("notifications/prompts/list_changed"),params:Di.optional()}),l$=D({title:y().optional(),readOnlyHint:Cn().optional(),destructiveHint:Cn().optional(),idempotentHint:Cn().optional(),openWorldHint:Cn().optional()}),u$=D({taskSupport:si(["required","optional","forbidden"]).optional()}),MO=D({...ss.shape,...zo.shape,description:y().optional(),inputSchema:D({type:L("object"),properties:Ue(y(),dn).optional(),required:fe(y()).optional()}).catchall(Fe()),outputSchema:D({type:L("object"),properties:Ue(y(),dn).optional(),required:fe(y()).optional()}).catchall(Fe()).optional(),annotations:l$.optional(),execution:u$.optional(),_meta:Ue(y(),Fe()).optional()}),zc=Do.extend({method:L("tools/list")}),c$=Go.extend({tools:fe(MO)}),Dc=En.extend({content:fe($f).default([]),structuredContent:Ue(y(),Fe()).optional(),isError:Cn().optional()}),nre=Dc.or(En.extend({toolResult:Fe()})),p$=Ro.extend({name:y(),arguments:Ue(y(),Fe()).optional()}),us=Mn.extend({method:L("tools/call"),params:p$}),d$=Gi.extend({method:L("notifications/tools/list_changed"),params:Di.optional()}),ire=D({autoRefresh:Cn().default(!0),debounceMs:_e().int().nonnegative().default(300)}),Bo=si(["debug","info","notice","warning","error","critical","alert","emergency"]),h$=ki.extend({level:Bo}),Bf=Mn.extend({method:L("logging/setLevel"),params:h$}),g$=Di.extend({level:Bo,logger:y().optional(),data:Fe()}),m$=Gi.extend({method:L("notifications/message"),params:g$}),f$=D({name:y().optional()}),w$=D({hints:fe(f$).optional(),costPriority:_e().min(0).max(1).optional(),speedPriority:_e().min(0).max(1).optional(),intelligencePriority:_e().min(0).max(1).optional()}),v$=D({mode:si(["auto","required","none"]).optional()}),C$=D({type:L("tool_result"),toolUseId:y().describe("The unique identifier for the corresponding tool call."),content:fe($f).default([]),structuredContent:D({}).loose().optional(),isError:Cn().optional(),_meta:Ue(y(),Fe()).optional()}),A$=Tf("type",[Gf,Nf,Uf]),Ac=Tf("type",[Gf,Nf,Uf,i$,C$]),b$=D({role:$o,content:$e([Ac,fe(Ac)]),_meta:Ue(y(),Fe()).optional()}),x$=Ro.extend({messages:fe(b$),modelPreferences:w$.optional(),systemPrompt:y().optional(),includeContext:si(["none","thisServer","allServers"]).optional(),temperature:_e().optional(),maxTokens:_e().int(),stopSequences:fe(y()).optional(),metadata:dn.optional(),tools:fe(MO).optional(),toolChoice:v$.optional()}),y$=Mn.extend({method:L("sampling/createMessage"),params:x$}),Lo=En.extend({model:y(),stopReason:Ve(si(["endTurn","stopSequence","maxTokens"]).or(y())),role:$o,content:A$}),Lf=En.extend({model:y(),stopReason:Ve(si(["endTurn","stopSequence","maxTokens","toolUse"]).or(y())),role:$o,content:$e([Ac,fe(Ac)])}),P$=D({type:L("boolean"),title:y().optional(),description:y().optional(),default:Cn().optional()}),j$=D({type:L("string"),title:y().optional(),description:y().optional(),minLength:_e().optional(),maxLength:_e().optional(),format:si(["email","uri","date","date-time"]).optional(),default:y().optional()}),S$=D({type:si(["number","integer"]),title:y().optional(),description:y().optional(),minimum:_e().optional(),maximum:_e().optional(),default:_e().optional()}),O$=D({type:L("string"),title:y().optional(),description:y().optional(),enum:fe(y()),default:y().optional()}),T$=D({type:L("string"),title:y().optional(),description:y().optional(),oneOf:fe(D({const:y(),title:y()})),default:y().optional()}),k$=D({type:L("string"),title:y().optional(),description:y().optional(),enum:fe(y()),enumNames:fe(y()).optional(),default:y().optional()}),M$=$e([O$,T$]),E$=D({type:L("array"),title:y().optional(),description:y().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:D({type:L("string"),enum:fe(y())}),default:fe(y()).optional()}),q$=D({type:L("array"),title:y().optional(),description:y().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:D({anyOf:fe(D({const:y(),title:y()}))}),default:fe(y()).optional()}),_$=$e([E$,q$]),H$=$e([k$,M$,_$]),W$=$e([H$,P$,j$,S$]),R$=Ro.extend({mode:L("form").optional(),message:y(),requestedSchema:D({type:L("object"),properties:Ue(y(),W$),required:fe(y()).optional()})}),I$=Ro.extend({mode:L("url"),message:y(),elicitationId:y(),url:y().url()}),z$=$e([R$,I$]),D$=Mn.extend({method:L("elicitation/create"),params:z$}),G$=Di.extend({elicitationId:y()}),N$=Gi.extend({method:L("notifications/elicitation/complete"),params:G$}),cs=En.extend({action:si(["accept","decline","cancel"]),content:kf(t=>t===null?void 0:t,Ue(y(),$e([y(),_e(),Cn(),fe(y())])).optional())}),U$=D({type:L("ref/resource"),uri:y()});var $$=D({type:L("ref/prompt"),name:y()}),B$=ki.extend({ref:$e([$$,U$]),argument:D({name:y(),value:y()}),context:D({arguments:Ue(y(),y()).optional()}).optional()}),Gc=Mn.extend({method:L("completion/complete"),params:B$});function EO(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function qO(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var L$=En.extend({completion:Fn({values:fe(y()).max(100),total:Ve(_e().int()),hasMore:Ve(Cn())})}),F$=D({uri:y().startsWith("file://"),name:y().optional(),_meta:Ue(y(),Fe()).optional()}),V$=Mn.extend({method:L("roots/list"),params:ki.optional()}),Ff=En.extend({roots:fe(F$)}),J$=Gi.extend({method:L("notifications/roots/list_changed"),params:Di.optional()}),tre=$e([jc,Rf,Gc,Bf,Ic,Rc,_c,Hc,Wc,VU,KU,us,zc,Oc,kc,Mc,qc]),are=$e([Pc,Sc,If,J$,Uo]),rre=$e([yc,Lo,Lf,cs,Ff,Tc,Ec,os]),sre=$e([jc,y$,D$,V$,Oc,kc,Mc,qc]),ore=$e([Pc,Sc,m$,QU,LU,d$,o$,Uo,N$]),lre=$e([yc,HU,L$,s$,e$,NU,UU,BU,Dc,c$,Tc,Ec,os]),B=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===J.UrlElicitationRequired&&i){let a=i;if(a.elicitations)return new Mf(a.elicitations,n)}return new t(e,n,i)}},Mf=class extends B{constructor(e,n=`URL elicitation${e.length>1?"s":""} required`){super(J.UrlElicitationRequired,n,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function la(t){return t==="completed"||t==="failed"||t==="cancelled"}var HO=Symbol("Let zodToJsonSchema decide on which parser to use");var _O={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"},WO=t=>typeof t=="string"?{..._O,name:t}:{..._O,...t};var RO=t=>{let e=WO(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 Vf(t,e,n,i){i?.errorMessages&&n&&(t.errorMessage={...t.errorMessage,[e]:n})}function we(t,e,n,i,a){t[e]=n,Vf(t,e,i,a)}var Nc=(t,e)=>{let n=0;for(;nee(t.innerType._def,e);function Jf(t,e,n){let i=n??e.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((a,r)=>Jf(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 K$(t,e)}}var K$=(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":we(n,"minimum",i.value,i.message,e);break;case"max":we(n,"maximum",i.value,i.message,e);break}return n};function NO(t,e){return{...ee(t.innerType._def,e),default:t.defaultValue()}}function UO(t,e){return e.effectStrategy==="input"?ee(t.schema._def,e):Ke(e)}function $O(t){return{type:"string",enum:Array.from(t.values)}}var Z$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function BO(t,e){let n=[ee(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),ee(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(Z$(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 LO(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 Kf,Xi={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:()=>(Kf===void 0&&(Kf=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Kf),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 $c(t,e){let n={type:"string"};if(t.checks)for(let i of t.checks)switch(i.kind){case"min":we(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value,i.message,e);break;case"max":we(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":et(n,"email",i.message,e);break;case"format:idn-email":et(n,"idn-email",i.message,e);break;case"pattern:zod":Vn(n,Xi.email,i.message,e);break}break;case"url":et(n,"uri",i.message,e);break;case"uuid":et(n,"uuid",i.message,e);break;case"regex":Vn(n,i.regex,i.message,e);break;case"cuid":Vn(n,Xi.cuid,i.message,e);break;case"cuid2":Vn(n,Xi.cuid2,i.message,e);break;case"startsWith":Vn(n,RegExp(`^${Zf(i.value,e)}`),i.message,e);break;case"endsWith":Vn(n,RegExp(`${Zf(i.value,e)}$`),i.message,e);break;case"datetime":et(n,"date-time",i.message,e);break;case"date":et(n,"date",i.message,e);break;case"time":et(n,"time",i.message,e);break;case"duration":et(n,"duration",i.message,e);break;case"length":we(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value,i.message,e),we(n,"maxLength",typeof n.maxLength=="number"?Math.min(n.maxLength,i.value):i.value,i.message,e);break;case"includes":{Vn(n,RegExp(Zf(i.value,e)),i.message,e);break}case"ip":{i.version!=="v6"&&et(n,"ipv4",i.message,e),i.version!=="v4"&&et(n,"ipv6",i.message,e);break}case"base64url":Vn(n,Xi.base64url,i.message,e);break;case"jwt":Vn(n,Xi.jwt,i.message,e);break;case"cidr":{i.version!=="v6"&&Vn(n,Xi.ipv4Cidr,i.message,e),i.version!=="v4"&&Vn(n,Xi.ipv6Cidr,i.message,e);break}case"emoji":Vn(n,Xi.emoji(),i.message,e);break;case"ulid":{Vn(n,Xi.ulid,i.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{et(n,"binary",i.message,e);break}case"contentEncoding:base64":{we(n,"contentEncoding","base64",i.message,e);break}case"pattern:zod":{Vn(n,Xi.base64,i.message,e);break}}break}case"nanoid":Vn(n,Xi.nanoid,i.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return n}function Zf(t,e){return e.patternStrategy==="escape"?Y$(t):t}var Q$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Y$(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}}})):we(t,"format",e,n,i)}function Vn(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:FO(e,i),...n&&i.errorMessages&&{errorMessage:{pattern:n}}})):we(t,"pattern",FO(e,i),n,i)}function FO(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;l1&&t.reused==="ref"&&r(s)}t.external&&(t.sharedDefsExtractedFor=t.external)}function hS(t){let e=t.anyOf;if(!Array.isArray(e)||e.length===0||t.type!==void 0)return;let n=[];for(let i of e){if(!i||typeof i!="object")return;hS(i);let a=Object.keys(i);if(a.length!==1||a[0]!=="type")return;let r=i.type;for(let s of Array.isArray(r)?r:[r]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete t.anyOf,t.type=n.length===1?n[0]:n}var gS=new Set(["type","properties","required","additionalProperties"]),pS=["oneOf","anyOf"];function dS(t){let e=t.additionalProperties;return e===void 0||e===!1||typeof e!="object"||e===null?null:Object.keys(e).length?e:null}function nf(t){let e=[];for(let r of t){if(typeof r!="object"||r.type!=="object")return null;for(let s in r)if(!gS.has(s))return null;e.push(r)}let n={},i=new Set;for(let r of e){for(let s in r.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let o=[];for(let c of e){let u=c.properties?.[s]??dS(c);u!=null&&(o.some(p=>JSON.stringify(p)===JSON.stringify(u))||o.push(u))}let l=o.length===1?o[0]:nf(o)??{allOf:o};ti(n,s,l)}for(let s of r.required??[])i.add(s)}let a={type:"object",properties:n};if(i.size&&(a.required=[...i]),e.every(r=>r.additionalProperties===!1))a.additionalProperties=!1;else{let r=[];for(let s of e){let o=dS(s);o&&!r.some(l=>JSON.stringify(l)===JSON.stringify(o))&&r.push(o)}r.length===1?a.additionalProperties=r[0]:r.length>1&&(a.additionalProperties={allOf:r})}return a}function kG(t){let e=t.allOf;if(!Array.isArray(e)||e.length<2)return;for(let a of gS)if(a in t)return;let n=e.filter(a=>pS.some(r=>Array.isArray(a[r]))),i=null;if(!n.length)i=nf(e);else{let a=n[0],r=pS.find(l=>Array.isArray(a[l]));if(Object.keys(a).length!==1)return;let s=e.filter(l=>l!==a),o=a[r].map(l=>nf([...s,l]));if(o.some(l=>!l))return;i={[r]:o}}i&&(delete t.allOf,Mo(t,i))}function Ho(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 c=l.def??l.schema,u={...c},p=l.ref;if(l.ref=null,p){i(p);let g=t.seen.get(p),d=g.schema;if(d.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(d)):Mo(c,d),Mo(c,u),o._zod.parent===p)for(let w in c)w==="$ref"||w==="allOf"||w in u||delete c[w];if(d.$ref&&g.def)for(let w in c)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(c[w])===JSON.stringify(g.def[w])&&delete c[w]}let h=o._zod.parent;if(h&&h!==p){i(h);let g=t.seen.get(h);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let d in c)d==="$ref"||d==="allOf"||d in g.def&&JSON.stringify(c[d])===JSON.stringify(g.def[d])&&delete c[d]}t.override({zodSchema:o,jsonSchema:c,path:l.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let o of[...t.seen.entries()].reverse())i(o[0]);if(t.target!=="openapi-3.0")for(let o of t.seen.entries())hS(o[1].def??o[1].schema);for(let o of t.deferred)o();if(t.intersections.length){let o=new Map;for(let l of t.seen.values())for(let c of[l.schema,l.def]){let u=c?.allOf;if(!Array.isArray(u))continue;let p=o.get(u);p?p.push(c):o.set(u,[c])}for(let l of t.intersections)for(let c of o.get(l)??[])kG(c)}}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)}Mo(a,n.defId?n.schema: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??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,ti(s,l.defId,l.def))}t.external&&(t.sharedEmitDoneFor=t.external),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:Eo(e,"input",t.processors),output:Eo(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function Ln(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 Ln(i.element,n);if(i.type==="set")return Ln(i.valueType,n);if(i.type==="lazy")return Ln(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"||i.type==="catch")return Ln(i.innerType,n);if(i.type==="intersection")return Ln(i.left,n)||Ln(i.right,n);if(i.type==="record"||i.type==="map")return Ln(i.keyType,n)||Ln(i.valueType,n);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:Ln(i.in,n)||Ln(i.out,n);if(i.type==="object"){for(let a in i.shape)if(Ln(i.shape[a],n))return!0;return!1}if(i.type==="union"){for(let a of i.options)if(Ln(a,n))return!0;return!1}if(i.type==="tuple"){for(let a of i.items)if(Ln(a,n))return!0;return!!(i.rest&&Ln(i.rest,n))}return!1}var mS=(t,e={})=>n=>{let i=qo({...n,processors:e});return ze(t,i),_o(i,t),Ho(i,t)},Eo=(t,e,n={})=>i=>{let{libraryOptions:a,target:r}=i??{},s=qo({...a??{},target:r,io:e,processors:n});return ze(t,s),_o(s,t),Ho(s,t)};var os=(t,e,n)=>{(t[e]===void 0||n>t[e])&&(t[e]=n)},ls=(t,e,n)=>{(t[e]===void 0||n{os(t,"minimum",e),ls(t,"maximum",e)},bS=(t,e)=>{t.multipleOf??(t.multipleOf=[]),t.multipleOf.includes(e)||t.multipleOf.push(e)},xS=(t,e)=>{t.patterns??(t.patterns=new Set),t.patterns.add(e)},yS=(t,e)=>{t.mime=t.mime?t.mime.filter(n=>e.includes(n)):[...e]},PS=(t,e)=>{t.format=e,e.includes("int")&&(t.isInt=!0)},wS=(t,e)=>os(t,"minimum",e.minimum),vS=(t,e)=>ls(t,"maximum",e.maximum),CS=t=>(e,n)=>{PS(e,n.format);let[i,a]=t[n.format];os(e,"minimum",i),ls(e,"maximum",a)},MG={greater_than:(t,e)=>os(t,e.inclusive?"minimum":"exclusiveMinimum",e.value),less_than:(t,e)=>ls(t,e.inclusive?"maximum":"exclusiveMaximum",e.value),multiple_of:(t,e)=>bS(t,e.value),number_format:CS(ho),bigint_format:CS(Du),min_length:wS,max_length:vS,length_equals:(t,e)=>fS(t,e.length),min_size:wS,max_size:vS,size_equals:(t,e)=>fS(t,e.size),string_format:(t,e)=>{PS(t,e.format),e.pattern&&xS(t,e.pattern),(e.format==="base64"||e.format==="base64url")&&(t.contentEncoding=e.format),(e.local||e.precision===-1)&&(t.laxFormat=!0)},mime_type:(t,e)=>yS(t,e.mime)};function si(t){let e={},n=t._zod.def,i=t._zod.traits.has("$ZodCheck")?[t,...n.checks??[]]:n.checks??[];for(let r of i)MG[r._zod.def.check]?.(e,r._zod.def);let a=t._zod.bag;a.minimum!==void 0&&os(e,"minimum",a.minimum),a.exclusiveMinimum!==void 0&&os(e,"exclusiveMinimum",a.exclusiveMinimum),a.maximum!==void 0&&ls(e,"maximum",a.maximum),a.exclusiveMaximum!==void 0&&ls(e,"exclusiveMaximum",a.exclusiveMaximum),a.multipleOf!==void 0&&bS(e,a.multipleOf),a.format!==void 0&&(e.format??(e.format=a.format),a.format.includes("int")&&(e.isInt=!0)),a.mime&&yS(e,a.mime);for(let r of a.patterns??[])xS(e,r);return e}var EG={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},qG=new Map([[Rg,sj],[Qu,oj]]),jS=t=>qG.get(t)??t,rf=(t,e,n,i)=>{let a=n;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:c,laxFormat:u}=si(t);if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=EG[o]??o,a.format===""&&delete a.format,(o==="time"||u)&&delete a.format),c&&(a.contentEncoding=c),l&&l.size>0){let p=[...l].map(jS);p.length===1?a.pattern=p[0].source:p.length>1&&(a.allOf=[...p.map(h=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},sf=(t,e,n,i)=>{let a=n,{minimum:r,maximum:s,multipleOf:o,exclusiveMaximum:l,exclusiveMinimum:c,isInt:u}=si(t);a.type=u?"integer":"number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),h=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),g=e.target==="draft-04"||e.target==="openapi-3.0";if(p?g?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),h?g?(a.maximum=l,a.exclusiveMaximum=!0):a.exclusiveMaximum=l:typeof s=="number"&&(a.maximum=s),o){let d=new Set;for(let f of o)Number.isFinite(f)&&f!==0?d.add(Math.abs(f)):vn(t,e,a,i,`A multipleOf divisor of ${f} cannot be represented in JSON Schema`);let[m,...w]=d;m!==void 0&&(a.multipleOf=m),w.length&&(a.allOf=[...a.allOf??[],...w.map(f=>({multipleOf:f}))])}},of=(t,e,n,i)=>{n.type="boolean"},SS=(t,e,n,i)=>{vn(t,e,n,i,"BigInt cannot be represented in JSON Schema")},OS=(t,e,n,i)=>{vn(t,e,n,i,"Symbols cannot be represented in JSON Schema")},lf=(t,e,n,i)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},TS=(t,e,n,i)=>{vn(t,e,n,i,"Undefined cannot be represented in JSON Schema")},kS=(t,e,n,i)=>{vn(t,e,n,i,"Void cannot be represented in JSON Schema")},uf=(t,e,n,i)=>{n.not={}},MS=(t,e,n,i)=>{},cf=(t,e,n,i)=>{},ES=(t,e,n,i)=>{vn(t,e,n,i,"Date cannot be represented in JSON Schema")},pf=(t,e,n,i)=>{let a=t._zod.def,r=Yr(a.entries);if(r.length===0){n.not={};return}r.every(s=>typeof s=="number")&&(n.type="number"),r.every(s=>typeof s=="string")&&(n.type="string"),n.enum=r},df=(t,e,n,i)=>{let a=t._zod.def;if(a.values.length===0){n.not={};return}let r=[];for(let s of a.values)if(s===void 0){if(vn(t,e,n,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(vn(t,e,n,i,"BigInt literals cannot be represented in JSON Schema"))return;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},qS=(t,e,n,i)=>{vn(t,e,n,i,"NaN cannot be represented in JSON Schema")},_S=(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},HS=(t,e,n,i)=>{let a=n;a.type="string",a.format="binary",a.contentEncoding="binary";let{minimum:r,maximum:s,mime:o}=si(t);r!==void 0&&(a.minLength=r),s!==void 0&&(a.maxLength=s),o&&(o.length===0?a.not={}:o.length===1?a.contentMediaType=o[0]:a.anyOf=o.map(l=>({contentMediaType:l})))},WS=(t,e,n,i)=>{n.type="boolean"},hf=(t,e,n,i)=>{vn(t,e,n,i,"Custom types cannot be represented in JSON Schema")},RS=(t,e,n,i)=>{vn(t,e,n,i,"Function types cannot be represented in JSON Schema")},gf=(t,e,n,i)=>{vn(t,e,n,i,"Transforms cannot be represented in JSON Schema")},IS=(t,e,n,i)=>{vn(t,e,n,i,"Map cannot be represented in JSON Schema")},zS=(t,e,n,i)=>{vn(t,e,n,i,"Set cannot be represented in JSON Schema")},mf=(t,e,n,i)=>{let a=n,r=t._zod.def,{minimum:s,maximum:o}=si(t);typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=ze(r.element,e,{...i,path:[...i.path,"items"]})};function Wo(t){let e=t._zod.def;return e.type==="pipe"&&e.in._zod.traits.has("$ZodTransform")?Wo(e.out):e.type==="catch"?Wo(e.innerType):t._zod.optin}var ff=(t,e,n,i)=>{let a=n,r=t._zod.def,s=r.shape;if(Object.getOwnPropertySymbols(s).length&&vn(t,e,a,i,"Symbol keys cannot be represented in JSON Schema"))return;a.type="object",a.properties={};for(let c in s)ti(a.properties,c,ze(s[c],e,{...i,path:[...i.path,"properties",c]}));let l=[];for(let c of Object.keys(s)){let u=r.shape[c];(e.io==="input"?Wo(u)===void 0:u._zod.optout===void 0)&&l.push(c)}l.length>0&&(a.required=l),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=ze(r.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},wf=(t,e,n,i)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>ze(o,e,{...i,path:[...i.path,r?"oneOf":"anyOf",l]}));r?n.oneOf=s:n.anyOf=s},vf=(t,e,n,i)=>{let a=t._zod.def,r=ze(a.left,e,{...i,path:[...i.path,"allOf",0]}),s=ze(a.right,e,{...i,path:[...i.path,"allOf",1]}),o=c=>"allOf"in c&&Object.keys(c).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];n.allOf=l,e.intersections.push(l)},DS=(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((m,w)=>ze(m,e,{...i,path:[...i.path,s,w]})),c=r.rest?ze(r.rest,e,{...i,path:[...i.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null,u=r.items.length;for(;u>0;){let m=r.items[u-1];if(!(e.io==="input"?Wo(m)!==void 0:m._zod.optout==="optional"))break;u--}let p=r.items.length,h=!r.rest;e.target==="draft-2020-12"?(a.prefixItems=l,h?a.items=!1:c&&(a.items=c),u>0&&(a.minItems=u),h&&(a.maxItems=p)):e.target==="openapi-3.0"?(a.items={anyOf:l},c&&a.items.anyOf.push(c),u>0&&(a.minItems=u),h&&(a.maxItems=p)):(a.items=l,h?a.additionalItems=!1:c&&(a.additionalItems=c),u>0&&(a.minItems=u),h&&(a.maxItems=p));let{minimum:g,maximum:d}=si(t);typeof g=="number"&&(a.minItems=g),typeof d=="number"&&(a.maxItems=d)};function tf(t,e,n){if(e.$ref){if(n.has(e))return e;n.add(e);let d=t.get(e)?.def;if(!d)return e;let m=tf(t,d,n);return m===d?e:m}for(let d of["anyOf","oneOf"]){let m=e[d];if(!Array.isArray(m))continue;let w=m.map(f=>tf(t,f,n));w.some((f,A)=>f!==m[A])&&(e={...e,[d]:w})}let i=Array.isArray(e.type)?e.type:[e.type],a=!i.includes("string")&&i.some(d=>d==="number"||d==="integer"),r=e.enum??(e.const!==void 0?[e.const]:void 0);if(!a&&!r?.some(d=>typeof d=="number"))return e;let{minimum:s,maximum:o,exclusiveMinimum:l,exclusiveMaximum:c,multipleOf:u,format:p,id:h,...g}=e;return g.enum?g.enum=g.enum.map(d=>typeof d=="number"?String(d):d):typeof g.const=="number"&&(g.const=String(g.const)),a&&(g.type="string",r||(g.pattern=(i.includes("number")?yo:mg).source)),g}var af=new WeakMap;function _G(t){let e=new Map;for(let i of t.seen.values())i.def&&!e.has(i.schema)&&e.set(i.schema,i);let n=new Map;for(let i of af.get(t)??[]){let a=t.seen.get(i),r=(a?.def??a?.schema)?.propertyNames;if(!r||r===!0||n.has(r))continue;let s=tf(e,r,new Set);s!==r&&n.set(r,s)}if(n.size)for(let i of t.seen.values())for(let a of[i.schema,i.def]){let r=a&&n.get(a.propertyNames);r&&(a.propertyNames=r)}}var Cf=(t,e,n,i)=>{let a=n,r=t._zod.def;a.type="object";let s=r.keyType,o=si(s).patterns;if(r.mode==="loose"&&o&&o.size>0){let u=ze(r.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});a.patternProperties={};for(let p of o)ti(a.patternProperties,jS(p).source,u)}else{if(e.target==="draft-07"||e.target==="draft-2020-12"){a.propertyNames=ze(r.keyType,e,{...i,path:[...i.path,"propertyNames"]});let u=af.get(e);u||(u=[],af.set(e,u),e.deferred.push(()=>_G(e))),u.push(t)}a.additionalProperties=ze(r.valueType,e,{...i,path:[...i.path,"additionalProperties"]})}let l=s._zod.values,c=e.io==="input"&&Wo(r.valueType)!==void 0;if(l&&!r.partial&&!c){let u=[...l].filter(p=>typeof p=="string"||typeof p=="number");u.length>0&&(a.required=u.map(String))}},Af=(t,e,n,i)=>{let a=t._zod.def,r=ze(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"}]},bf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},xf=Symbol();function GS(t,e,n,i,a){let r=!1,s=JSON.stringify(t,(o,l)=>typeof l!="bigint"?l:(r=!0,null));return r?(vn(e,n,i,a,"BigInt defaults cannot be represented in JSON Schema"),xf):JSON.parse(s)}var yf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType;let s=GS(a.defaultValue,t,e,n,i);s!==xf&&(n.default=s)},Pf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);if(r.ref=a.innerType,e.io!=="input")return;let s=GS(a.defaultValue,t,e,n,i);s!==xf&&(n._prefault=s)},jf=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{vn(t,e,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Sf=(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;ze(s,e,i);let o=e.seen.get(t);o.ref=s},Of=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType,n.readOnly=!0},NS=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},mc=(t,e,n,i)=>{let a=t._zod.def;ze(a.innerType,e,i);let r=e.seen.get(t);r.ref=a.innerType},US=(t,e,n,i)=>{let a=t._zod.innerType;ze(a,e,i);let r=e.seen.get(t);r.ref=a},AS={string:rf,number:sf,boolean:of,bigint:SS,symbol:OS,null:lf,undefined:TS,void:kS,never:uf,any:MS,unknown:cf,date:ES,enum:pf,literal:df,nan:qS,template_literal:_S,file:HS,success:WS,custom:hf,function:RS,transform:gf,map:IS,set:zS,array:mf,object:ff,union:wf,intersection:vf,tuple:DS,record:Cf,nullable:Af,nonoptional:bf,default:yf,prefault:Pf,catch:jf,pipe:Sf,readonly:Of,promise:NS,optional:mc,lazy:US};function Tf(t,e){if("_idmap"in t){let i=t,a=qo({...e,processors:AS}),r={};for(let l of i._idmap.entries()){let[c,u]=l;ze(u,a)}let s={},o={registry:i,uri:e?.uri,defs:r};a.external=o;for(let l of i._idmap.entries()){let[c,u]=l;_o(a,u),ti(s,c,Ho(a,u))}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let n=qo({...e,processors:AS});return ze(t,n),_o(n,t),Ho(n,t)}var SN=P("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");Ie.init(t,e),t.def=e,t.type=e.type},{get with(){return this.check},set with(t){vt(this,"with",t)},parse(t,e){return pg(this,t,e,{callee:this.parse})},parseAsync(t,e){return dg(this,t,e,{callee:this.parseAsync})},safeParse(t,e){return Ao(this,t,e)},safeParseAsync(t,e){return xo(this,t,e)},check(...t){let e=this.def;return this.clone({...e,checks:[...e.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0})},clone(t,e){return ai(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},apply(t,...e){return e.length===0?t(this):t(this,...e)}});var ON=P("ZodMiniObject",(t,e)=>{Vg.init(t,e),SN.init(t,e),og(t,"shape",n=>n._zod.def.shape,!1)});function kf(t,e){let n={type:"object",shape:t??{},...K(e)};return new ON(n)}function At(t){return!!t._zod}function tr(t){let e=Object.values(t);if(e.length===0)return kf({});let n=e.every(At),i=e.every(a=>!At(a));if(n)return kf(t);if(i)return Fh(t);throw new Error("Mixed Zod versions detected in object shape.")}function oa(t,e){return At(t)?Ao(t,e):t.safeParse(e)}async function fc(t,e){return At(t)?await xo(t,e):await t.safeParseAsync(e)}function la(t){if(!t)return;let e;if(At(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function us(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 tr(t)}}if(At(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 kN(t){return t.length===0?"object root":t.reduce((e,n,i)=>i===0?String(n):typeof n=="number"?`${e}[${n}]`:`${e}.${n}`,"")}function wc(t){if(t&&typeof t=="object"){if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0)return t.issues.map(e=>e.path?.length?`${e.message} at ${kN(e.path)}`:e.message).join(` +`);if("message"in t&&typeof t.message=="string")return t.message;try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function BS(t){return t.description}function LS(t){if(At(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function cs(t){if(At(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 FS=new WeakSet([Object.prototype,Error.prototype]);function vc(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get(){let i=n(this);return Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0})}})}var RN=(t,e)=>{_P.init(t,e),t.name="ZodError";let n=Object.getPrototypeOf(t);FS.has(n)||(FS.add(n),vc(n,"format",i=>a=>WP(i,a)),vc(n,"flatten",i=>a=>HP(i,a)),vc(n,"addIssue",i=>a=>{i.issues.push(a),i.message=JSON.stringify(i.issues,es,2)}),vc(n,"addIssues",i=>a=>{i.issues.push(...a),i.message=JSON.stringify(i.issues,es,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))};var ki=P("ZodError",RN,void 0,{Parent:Error});var VS=wo(ki),JS=vo(ki),KS=Co(ki),ZS=bo(ki),QS=IP(ki),XS=zP(ki),YS=DP(ki),eO=GP(ki),nO=NP(ki),iO=UP(ki),tO=$P(ki),aO=BP(ki);function zN(){ri.localeError||Ti(sS())}function Ac(){ri.memoizer||Ti({memoizer:rS()})}var Je=P("ZodType",(t,e)=>(zN(),Ie.init(t,e),t.def=e,t.type=e.type,t),{check(...t){let e=this.def;return this.clone(Y.mergeDefs(e,{checks:[...e.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,e){return ai(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},refine(t,e){return this.check(OU(t,e))},superRefine(t,e){return this.check(TU(t,e))},overwrite(t){return this.check(sa(t))},optional(){return Ve(this)},exactOptional(){return mU(this)},nullable(){return oO(this)},nullish(){return Ve(oO(this))},nonoptional(t){return bU(this,t)},array(){return fe(this)},or(t){return $e([this,t])},and(t){return bc(this,t)},transform(t){return lO(this,gO(t))},default(t){return vU(this,t)},prefault(t){return AU(this,t)},catch(t){return yU(this,t)},pipe(t){return lO(this,t)},readonly(){return SU(this)},describe(t){let e=this.clone();return nr.add(e,{description:t}),e},meta(...t){if(t.length===0)return nr.get(this);let e=this.clone();return nr.add(e,t[0]),e},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...e){return e.length===0?t(this):t(this,...e)},get"~standard"(){return Y.hide(this,"~standard",{...Ag(this),jsonSchema:{input:Eo(this,"input"),output:Eo(this,"output")}})},set"~standard"(t){Y.own(this,"~standard",t)},parse:function t(e,n){return VS(this,e,n,{callee:t})},parseAsync:async function t(e,n){return await JS(this,e,n,{callee:t})},safeParse(t,e){return KS(this,t,e)},async safeParseAsync(t,e){return ZS(this,t,e)},get spa(){return this?.safeParseAsync},set spa(t){Y.own(this,"spa",t)},validate(t,e){return Bu(this,t,e)},validateAsync(t,e){return Lu(this,t,e)},encode:function t(e,n){return QS(this,e,n,{callee:t})},decode:function t(e,n){return XS(this,e,n,{callee:t})},encodeAsync:async function t(e,n){return await YS(this,e,n,{callee:t})},decodeAsync:async function t(e,n){return await eO(this,e,n,{callee:t})},safeEncode(t,e){return nO(this,t,e)},safeDecode(t,e){return iO(this,t,e)},async safeEncodeAsync(t,e){return tO(this,t,e)},async safeDecodeAsync(t,e){return aO(this,t,e)},toJSONSchema(t){return mS(this,{})(t)},get description(){return nr.get(this)?.description},get _def(){return this._zod.def}}),uO=P("_ZodString",(t,e)=>{jo.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>rf(t,n,i,a)},Y.derived({format:t=>si(t).format??null,minLength:t=>si(t).minimum??null,maxLength:t=>si(t).maximum??null},{regex(...t){return this.check(Nm(...t))},includes(...t){return this.check(Bm(...t))},startsWith(...t){return this.check(Lm(...t))},endsWith(...t){return this.check(Fm(...t))},min(...t){return this.check(ss(...t))},max(...t){return this.check(hc(...t))},length(...t){return this.check(gc(...t))},nonempty(...t){return this.check(ss(1,...t))},lowercase(t){return this.check(Um(t))},uppercase(t){return this.check($m(t))},trim(){return this.check(Jm())},normalize(...t){return this.check(Vm(...t))},toLowerCase(){return this.check(Km())},toUpperCase(){return this.check(Zm())},slugify(){return this.check(Qm())}})),DN=P("ZodString",(t,e)=>{jo.init(t,e),uO.init(t,e)},{email(t){return this.check(hm(GN,t))},url(t){return this.check(Cm(UN,t))},jwt(t){return this.check(Hm(tU,t))},emoji(t){return this.check(Am($N,t))},guid(t){return this.check(gm(NN,t))},uuid(t){return this.check(mm(Cc,t))},uuidv4(t){return this.check(fm(Cc,t))},uuidv6(t){return this.check(wm(Cc,t))},uuidv7(t){return this.check(vm(Cc,t))},nanoid(t){return this.check(bm(BN,t))},cuid(t){return this.check(xm(LN,t))},cuid2(t){return this.check(ym(FN,t))},ulid(t){return this.check(Pm(VN,t))},base64(t){return this.check(Em(eU,t))},base64url(t){return this.check(qm(nU,t))},xid(t){return this.check(jm(JN,t))},ksuid(t){return this.check(Sm(KN,t))},ipv4(t){return this.check(Om(ZN,t))},ipv6(t){return this.check(Tm(QN,t))},cidrv4(t){return this.check(km(XN,t))},cidrv6(t){return this.check(Mm(YN,t))},e164(t){return this.check(_m(iU,t))},datetime(t){return this.check(sc(Ro,t))},date(t){return this.check(oc(Io,t))},time(t){return this.check(lc(zo,t))},duration(t){return this.check(uc(Do,t))}});function y(t){return dm(DN,t)}var Qe=P("ZodStringFormat",(t,e)=>{Ne.init(t,e),uO.init(t,e)}),Ro=P("ZodISODateTime",(t,e)=>{Fj.init(t,e),Qe.init(t,e)}),Io=P("ZodISODate",(t,e)=>{Vj.init(t,e),Qe.init(t,e)}),zo=P("ZodISOTime",(t,e)=>{Jj.init(t,e),Qe.init(t,e)}),Do=P("ZodISODuration",(t,e)=>{Kj.init(t,e),Qe.init(t,e)}),GN=P("ZodEmail",(t,e)=>{yg.init(t,e),Qe.init(t,e)});var NN=P("ZodGUID",(t,e)=>{bg.init(t,e),Qe.init(t,e)});var Cc=P("ZodUUID",(t,e)=>{xg.init(t,e),Qe.init(t,e)});var UN=P("ZodURL",(t,e)=>{Pg.init(t,e),Qe.init(t,e)});var $N=P("ZodEmoji",(t,e)=>{jg.init(t,e),Qe.init(t,e)});var BN=P("ZodNanoID",(t,e)=>{Sg.init(t,e),Qe.init(t,e)});var LN=P("ZodCUID",(t,e)=>{Og.init(t,e),Qe.init(t,e)});var FN=P("ZodCUID2",(t,e)=>{Tg.init(t,e),Qe.init(t,e)});var VN=P("ZodULID",(t,e)=>{kg.init(t,e),Qe.init(t,e)});var JN=P("ZodXID",(t,e)=>{Mg.init(t,e),Qe.init(t,e)});var KN=P("ZodKSUID",(t,e)=>{Eg.init(t,e),Qe.init(t,e)});var ZN=P("ZodIPv4",(t,e)=>{qg.init(t,e),Qe.init(t,e)});var QN=P("ZodIPv6",(t,e)=>{_g.init(t,e),Qe.init(t,e)});var XN=P("ZodCIDRv4",(t,e)=>{Hg.init(t,e),Qe.init(t,e)});var YN=P("ZodCIDRv6",(t,e)=>{Wg.init(t,e),Qe.init(t,e)});var eU=P("ZodBase64",(t,e)=>{Ig.init(t,e),Qe.init(t,e)});var nU=P("ZodBase64URL",(t,e)=>{zg.init(t,e),Qe.init(t,e)});var iU=P("ZodE164",(t,e)=>{Dg.init(t,e),Qe.init(t,e)});var tU=P("ZodJWT",(t,e)=>{Gg.init(t,e),Qe.init(t,e)});var cO=P("ZodNumber",(t,e)=>{Xu.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>sf(t,n,i,a),t.isFinite=!0},Y.derived({minValue:t=>{let{minimum:e,exclusiveMinimum:n}=si(t);return Math.max(e??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:t=>{let{maximum:e,exclusiveMaximum:n}=si(t);return Math.min(e??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:t=>{let{isInt:e,multipleOf:n}=si(t);return!!e||!!n?.some(Number.isSafeInteger)},format:t=>si(t).format??null},{gt(t,e){return this.check(pc(t,e))},gte(t,e){return this.check(ko(t,e))},min(t,e){return this.check(ko(t,e))},lt(t,e){return this.check(cc(t,e))},lte(t,e){return this.check(To(t,e))},max(t,e){return this.check(To(t,e))},int(t){return this.check(rO(t))},safe(t){return this.check(rO(t))},positive(t){return this.check(pc(0,t))},nonnegative(t){return this.check(ko(0,t))},negative(t){return this.check(cc(0,t))},nonpositive(t){return this.check(To(0,t))},multipleOf(t,e){return this.check(dc(t,e))},step(t,e){return this.check(dc(t,e))},finite(){return this}}));function _e(t){return Wm(cO,t)}var aU=P("ZodNumberFormat",(t,e)=>{Ng.init(t,e),cO.init(t,e)});function rO(t){return Rm(aU,t)}var rU=P("ZodBoolean",(t,e)=>{Ug.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>of(t,n,i,a)});function Cn(t){return Im(rU,t)}var sU=P("ZodNull",(t,e)=>{$g.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>lf(t,n,i,a)});function pO(t){return zm(sU,t)}var oU=P("ZodUnknown",(t,e)=>{Bg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>cf(t,n,i,a)});function Fe(){return Dm(oU)}var lU=P("ZodNever",(t,e)=>{Lg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>uf(t,n,i,a)});function uU(t){return Gm(lU,t)}var cU=P("ZodArray",(t,e)=>{Ac(),Fg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>mf(t,n,i,a),t.element=e.element},{min(t,e){return this.check(ss(t,e))},nonempty(t){return this.check(ss(1,t))},max(t,e){return this.check(hc(t,e))},length(t,e){return this.check(gc(t,e))},unwrap(){return this.element}});function fe(t,e){return uS(cU,t,e)}var dO=P("ZodObject",(t,e)=>{Ac(),eS.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>ff(t,n,i,a),Y.installLazyProp(t,"shape",n=>n._zod.def.shape,!1)},{keyof(){return oi(Object.keys(this._zod.def.shape))},catchall(t){return this.clone(Y.mergeDefs(this._zod.def,{catchall:t}))},passthrough(){return this.clone(Y.mergeDefs(this._zod.def,{catchall:Fe()}))},loose(){return this.clone(Y.mergeDefs(this._zod.def,{catchall:Fe()}))},strict(){return this.clone(Y.mergeDefs(this._zod.def,{catchall:uU()}))},strip(){return this.clone(Y.mergeDefs(this._zod.def,{catchall:void 0}))},extend(t){return Y.extend(this,t)},safeExtend(t){return Y.safeExtend(this,t)},merge(t){return Y.merge(this,t)},pick(t){return Y.pick(this,t)},omit(t){return Y.omit(this,t)},partial(...t){return Y.partial(xc,this,t[0])},exactPartial(...t){return Y.partial(mO,this,t[0],"exactPartial")},required(...t){return Y.required(fO,this,t[0])}});function D(t,e){let n={type:"object",shape:t??{},...Y.normalizeParams(e)};return new dO(n)}function Fn(t,e){return new dO({type:"object",shape:t,catchall:Fe(),...Y.normalizeParams(e)})}var hO=P("ZodUnion",(t,e)=>{Yu.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>wf(t,n,i,a),t.options=e.options});function $e(t,e){return new hO({type:"union",options:t,...Y.normalizeParams(e)})}var pU=P("ZodDiscriminatedUnion",(t,e)=>{hO.init(t,e),Jg.init(t,e)});function Ef(t,e,n){return new pU({type:"union",options:e,discriminator:t,...Y.normalizeParams(n)})}var dU=P("ZodIntersection",(t,e)=>{Kg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>vf(t,n,i,a)});function bc(t,e){return new dU({type:"intersection",left:t,right:e})}var sO=P("ZodRecord",(t,e)=>{Ac(),Zg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Cf(t,n,i,a),t.keyType=e.keyType,t.valueType=e.valueType});function Ue(t,e,n){return!e||!e._zod?new sO({type:"record",keyType:y(),valueType:t,...Y.normalizeParams(e)}):new sO({type:"record",keyType:t,valueType:e,...Y.normalizeParams(n)})}var Mf=P("ZodEnum",(t,e)=>{Qg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(i,a,r)=>pf(t,i,a,r),t.enum=e.entries,t.options=[...t._zod.values];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 Mf({...e,checks:[],...Y.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 Mf({...e,checks:[],...Y.normalizeParams(a),entries:r})}});function oi(t,e){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Mf({type:"enum",entries:n,...Y.normalizeParams(e)})}var hU=P("ZodLiteral",(t,e)=>{Xg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>df(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 L(t,e){return new hU({type:"literal",values:Array.isArray(t)?t:[t],...Y.normalizeParams(e)})}var gU=P("ZodTransform",(t,e)=>{Ac(),Yg.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>gf(t,n,i,a),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new as(t.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(Y.issue(r,n.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=t),n.issues.push(Y.issue(s))}};let a=e.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n)):(n.value=a,n)}});function gO(t){return new gU({type:"transform",transform:t})}var xc=P("ZodOptional",(t,e)=>{ec.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>mc(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function Ve(t){return new xc({type:"optional",innerType:t})}var mO=P("ZodExactOptional",(t,e)=>{em.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>mc(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function mU(t){return new mO({type:"optional",innerType:t})}var fU=P("ZodNullable",(t,e)=>{nm.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Af(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function oO(t){return new fU({type:"nullable",innerType:t})}var wU=P("ZodDefault",(t,e)=>{im.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>yf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function vU(t,e){return new wU({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():Y.shallowClone(e)}})}var CU=P("ZodPrefault",(t,e)=>{tm.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Pf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function AU(t,e){return new CU({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():Y.shallowClone(e)}})}var fO=P("ZodNonOptional",(t,e)=>{am.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>bf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function bU(t,e){return new fO({type:"nonoptional",innerType:t,...Y.normalizeParams(e)})}var xU=P("ZodCatch",(t,e)=>{rm.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>jf(t,n,i,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function yU(t,e){return new xU({type:"catch",innerType:t,catchValue:typeof e=="function"?e:Y.constantCatch(e)})}var wO=P("ZodPipe",(t,e)=>{nc.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Sf(t,n,i,a),t.in=e.in,t.out=e.out});function lO(t,e){return new wO({type:"pipe",in:t,out:e})}var PU=P("ZodPreprocess",(t,e)=>{wO.init(t,e),nS.init(t,e)}),jU=P("ZodReadonly",(t,e)=>{sm.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Of(t,n,i,a),t.unwrap=()=>t._zod.def.innerType});function SU(t){return new jU({type:"readonly",innerType:t})}var vO=P("ZodCustom",(t,e)=>{om.init(t,e),Je.init(t,e),t._zod.processJSONSchema=(n,i,a)=>hf(t,n,i,a)});function CO(t,e){return Xm(vO,t??(()=>!0),e)}function OU(t,e={}){return Ym(vO,t,e)}function TU(t,e){return ef(t,e)}function qf(t,e){return new PU({type:"pipe",in:gO(t),out:e})}var yc={};Uh(yc,{ZodISODate:()=>Io,ZodISODateTime:()=>Ro,ZodISODuration:()=>Do,ZodISOTime:()=>zo,date:()=>MU,datetime:()=>kU,duration:()=>qU,time:()=>EU});function kU(t){return sc(Ro,t)}function MU(t){return oc(Io,t)}function EU(t){return lc(zo,t)}function qU(t){return uc(Do,t)}var Hf="2025-11-25";var AO=[Hf,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],ua="io.modelcontextprotocol/related-task",jc="2.0",dn=CO(t=>t!==null&&(typeof t=="object"||typeof t=="function")),bO=$e([y(),_e().int()]),xO=y(),mre=Fn({ttl:_e().optional(),pollInterval:_e().optional()}),_U=D({ttl:_e().optional()}),HU=D({taskId:y()}),Wf=Fn({progressToken:bO.optional(),[ua]:HU.optional()}),Mi=D({_meta:Wf.optional()}),Go=Mi.extend({task:_U.optional()}),yO=t=>Go.safeParse(t).success,Mn=D({method:y(),params:Mi.loose().optional()}),Ni=D({_meta:Wf.optional()}),Ui=D({method:y(),params:Ni.loose().optional()}),En=Fn({_meta:Wf.optional()}),Sc=$e([y(),_e().int()]),PO=D({jsonrpc:L(jc),id:Sc,...Mn.shape}).strict(),Rf=t=>PO.safeParse(t).success,jO=D({jsonrpc:L(jc),...Ui.shape}).strict(),SO=t=>jO.safeParse(t).success,If=D({jsonrpc:L(jc),id:Sc,result:En}).strict(),No=t=>If.safeParse(t).success;var J;(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"})(J||(J={}));var zf=D({jsonrpc:L(jc),id:Sc.optional(),error:D({code:_e().int(),message:y(),data:Fe().optional()})}).strict();var OO=t=>zf.safeParse(t).success;var TO=$e([PO,jO,If,zf]),fre=$e([If,zf]),Oc=En.strict(),WU=Ni.extend({requestId:Sc.optional(),reason:y().optional()}),Tc=Ui.extend({method:L("notifications/cancelled"),params:WU}),RU=D({src:y(),mimeType:y().optional(),sizes:fe(y()).optional(),theme:oi(["light","dark"]).optional()}),Uo=D({icons:fe(RU).optional()}),ps=D({name:y(),title:y().optional()}),kO=ps.extend({...ps.shape,...Uo.shape,version:y(),websiteUrl:y().optional(),description:y().optional()}),IU=bc(D({applyDefaults:Cn().optional()}),Ue(y(),Fe())),zU=qf(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,bc(D({form:IU.optional(),url:dn.optional()}),Ue(y(),Fe()).optional())),DU=Fn({list:dn.optional(),cancel:dn.optional(),requests:Fn({sampling:Fn({createMessage:dn.optional()}).optional(),elicitation:Fn({create:dn.optional()}).optional()}).optional()}),GU=Fn({list:dn.optional(),cancel:dn.optional(),requests:Fn({tools:Fn({call:dn.optional()}).optional()}).optional()}),NU=D({experimental:Ue(y(),dn).optional(),sampling:D({context:dn.optional(),tools:dn.optional()}).optional(),elicitation:zU.optional(),roots:D({listChanged:Cn().optional()}).optional(),tasks:DU.optional(),extensions:Ue(y(),dn).optional()}),UU=Mi.extend({protocolVersion:y(),capabilities:NU,clientInfo:kO}),Df=Mn.extend({method:L("initialize"),params:UU});var $U=D({experimental:Ue(y(),dn).optional(),logging:dn.optional(),completions:dn.optional(),prompts:D({listChanged:Cn().optional()}).optional(),resources:D({subscribe:Cn().optional(),listChanged:Cn().optional()}).optional(),tools:D({listChanged:Cn().optional()}).optional(),tasks:GU.optional(),extensions:Ue(y(),dn).optional()}),BU=En.extend({protocolVersion:y(),capabilities:$U,serverInfo:kO,instructions:y().optional()}),Gf=Ui.extend({method:L("notifications/initialized"),params:Ni.optional()});var kc=Mn.extend({method:L("ping"),params:Mi.optional()}),LU=D({progress:_e(),total:Ve(_e()),message:Ve(y())}),FU=D({...Ni.shape,...LU.shape,progressToken:bO}),Mc=Ui.extend({method:L("notifications/progress"),params:FU}),VU=Mi.extend({cursor:xO.optional()}),$o=Mn.extend({params:VU.optional()}),Bo=En.extend({nextCursor:xO.optional()}),JU=oi(["working","input_required","completed","failed","cancelled"]),Lo=D({taskId:y(),status:JU,ttl:$e([_e(),pO()]),createdAt:y(),lastUpdatedAt:y(),pollInterval:Ve(_e()),statusMessage:Ve(y())}),ds=En.extend({task:Lo}),KU=Ni.merge(Lo),Fo=Ui.extend({method:L("notifications/tasks/status"),params:KU}),Ec=Mn.extend({method:L("tasks/get"),params:Mi.extend({taskId:y()})}),qc=En.merge(Lo),_c=Mn.extend({method:L("tasks/result"),params:Mi.extend({taskId:y()})}),wre=En.loose(),Hc=$o.extend({method:L("tasks/list")}),Wc=Bo.extend({tasks:fe(Lo)}),Rc=Mn.extend({method:L("tasks/cancel"),params:Mi.extend({taskId:y()})}),MO=En.merge(Lo),EO=D({uri:y(),mimeType:Ve(y()),_meta:Ue(y(),Fe()).optional()}),qO=EO.extend({text:y()}),Nf=y().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),_O=EO.extend({blob:Nf}),Vo=oi(["user","assistant"]),hs=D({audience:fe(Vo).optional(),priority:_e().min(0).max(1).optional(),lastModified:yc.datetime({offset:!0}).optional()}),HO=D({...ps.shape,...Uo.shape,uri:y(),description:Ve(y()),mimeType:Ve(y()),size:Ve(_e()),annotations:hs.optional(),_meta:Ve(Fn({}))}),ZU=D({...ps.shape,...Uo.shape,uriTemplate:y(),description:Ve(y()),mimeType:Ve(y()),annotations:hs.optional(),_meta:Ve(Fn({}))}),Ic=$o.extend({method:L("resources/list")}),QU=Bo.extend({resources:fe(HO)}),zc=$o.extend({method:L("resources/templates/list")}),XU=Bo.extend({resourceTemplates:fe(ZU)}),Uf=Mi.extend({uri:y()}),YU=Uf,Dc=Mn.extend({method:L("resources/read"),params:YU}),e$=En.extend({contents:fe($e([qO,_O]))}),n$=Ui.extend({method:L("notifications/resources/list_changed"),params:Ni.optional()}),i$=Uf,t$=Mn.extend({method:L("resources/subscribe"),params:i$}),a$=Uf,r$=Mn.extend({method:L("resources/unsubscribe"),params:a$}),s$=Ni.extend({uri:y()}),o$=Ui.extend({method:L("notifications/resources/updated"),params:s$}),l$=D({name:y(),description:Ve(y()),required:Ve(Cn())}),u$=D({...ps.shape,...Uo.shape,description:Ve(y()),arguments:Ve(fe(l$)),_meta:Ve(Fn({}))}),Gc=$o.extend({method:L("prompts/list")}),c$=Bo.extend({prompts:fe(u$)}),p$=Mi.extend({name:y(),arguments:Ue(y(),y()).optional()}),Nc=Mn.extend({method:L("prompts/get"),params:p$}),$f=D({type:L("text"),text:y(),annotations:hs.optional(),_meta:Ue(y(),Fe()).optional()}),Bf=D({type:L("image"),data:Nf,mimeType:y(),annotations:hs.optional(),_meta:Ue(y(),Fe()).optional()}),Lf=D({type:L("audio"),data:Nf,mimeType:y(),annotations:hs.optional(),_meta:Ue(y(),Fe()).optional()}),d$=D({type:L("tool_use"),name:y(),id:y(),input:Ue(y(),Fe()),_meta:Ue(y(),Fe()).optional()}),h$=D({type:L("resource"),resource:$e([qO,_O]),annotations:hs.optional(),_meta:Ue(y(),Fe()).optional()}),g$=HO.extend({type:L("resource_link")}),Ff=$e([$f,Bf,Lf,g$,h$]),m$=D({role:Vo,content:Ff}),f$=En.extend({description:y().optional(),messages:fe(m$)}),w$=Ui.extend({method:L("notifications/prompts/list_changed"),params:Ni.optional()}),v$=D({title:y().optional(),readOnlyHint:Cn().optional(),destructiveHint:Cn().optional(),idempotentHint:Cn().optional(),openWorldHint:Cn().optional()}),C$=D({taskSupport:oi(["required","optional","forbidden"]).optional()}),WO=D({...ps.shape,...Uo.shape,description:y().optional(),inputSchema:D({type:L("object"),properties:Ue(y(),dn).optional(),required:fe(y()).optional()}).catchall(Fe()),outputSchema:D({type:L("object"),properties:Ue(y(),dn).optional(),required:fe(y()).optional()}).catchall(Fe()).optional(),annotations:v$.optional(),execution:C$.optional(),_meta:Ue(y(),Fe()).optional()}),Uc=$o.extend({method:L("tools/list")}),A$=Bo.extend({tools:fe(WO)}),$c=En.extend({content:fe(Ff).default([]),structuredContent:Ue(y(),Fe()).optional(),isError:Cn().optional()}),vre=$c.or(En.extend({toolResult:Fe()})),b$=Go.extend({name:y(),arguments:Ue(y(),Fe()).optional()}),gs=Mn.extend({method:L("tools/call"),params:b$}),x$=Ui.extend({method:L("notifications/tools/list_changed"),params:Ni.optional()}),Cre=D({autoRefresh:Cn().default(!0),debounceMs:_e().int().nonnegative().default(300)}),Jo=oi(["debug","info","notice","warning","error","critical","alert","emergency"]),y$=Mi.extend({level:Jo}),Vf=Mn.extend({method:L("logging/setLevel"),params:y$}),P$=Ni.extend({level:Jo,logger:y().optional(),data:Fe()}),j$=Ui.extend({method:L("notifications/message"),params:P$}),S$=D({name:y().optional()}),O$=D({hints:fe(S$).optional(),costPriority:_e().min(0).max(1).optional(),speedPriority:_e().min(0).max(1).optional(),intelligencePriority:_e().min(0).max(1).optional()}),T$=D({mode:oi(["auto","required","none"]).optional()}),k$=D({type:L("tool_result"),toolUseId:y().describe("The unique identifier for the corresponding tool call."),content:fe(Ff).default([]),structuredContent:D({}).loose().optional(),isError:Cn().optional(),_meta:Ue(y(),Fe()).optional()}),M$=Ef("type",[$f,Bf,Lf]),Pc=Ef("type",[$f,Bf,Lf,d$,k$]),E$=D({role:Vo,content:$e([Pc,fe(Pc)]),_meta:Ue(y(),Fe()).optional()}),q$=Go.extend({messages:fe(E$),modelPreferences:O$.optional(),systemPrompt:y().optional(),includeContext:oi(["none","thisServer","allServers"]).optional(),temperature:_e().optional(),maxTokens:_e().int(),stopSequences:fe(y()).optional(),metadata:dn.optional(),tools:fe(WO).optional(),toolChoice:T$.optional()}),_$=Mn.extend({method:L("sampling/createMessage"),params:q$}),Ko=En.extend({model:y(),stopReason:Ve(oi(["endTurn","stopSequence","maxTokens"]).or(y())),role:Vo,content:M$}),Jf=En.extend({model:y(),stopReason:Ve(oi(["endTurn","stopSequence","maxTokens","toolUse"]).or(y())),role:Vo,content:$e([Pc,fe(Pc)])}),H$=D({type:L("boolean"),title:y().optional(),description:y().optional(),default:Cn().optional()}),W$=D({type:L("string"),title:y().optional(),description:y().optional(),minLength:_e().optional(),maxLength:_e().optional(),format:oi(["email","uri","date","date-time"]).optional(),default:y().optional()}),R$=D({type:oi(["number","integer"]),title:y().optional(),description:y().optional(),minimum:_e().optional(),maximum:_e().optional(),default:_e().optional()}),I$=D({type:L("string"),title:y().optional(),description:y().optional(),enum:fe(y()),default:y().optional()}),z$=D({type:L("string"),title:y().optional(),description:y().optional(),oneOf:fe(D({const:y(),title:y()})),default:y().optional()}),D$=D({type:L("string"),title:y().optional(),description:y().optional(),enum:fe(y()),enumNames:fe(y()).optional(),default:y().optional()}),G$=$e([I$,z$]),N$=D({type:L("array"),title:y().optional(),description:y().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:D({type:L("string"),enum:fe(y())}),default:fe(y()).optional()}),U$=D({type:L("array"),title:y().optional(),description:y().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:D({anyOf:fe(D({const:y(),title:y()}))}),default:fe(y()).optional()}),$$=$e([N$,U$]),B$=$e([D$,G$,$$]),L$=$e([B$,H$,W$,R$]),F$=Go.extend({mode:L("form").optional(),message:y(),requestedSchema:D({type:L("object"),properties:Ue(y(),L$),required:fe(y()).optional()})}),V$=Go.extend({mode:L("url"),message:y(),elicitationId:y(),url:y().url()}),J$=$e([F$,V$]),K$=Mn.extend({method:L("elicitation/create"),params:J$}),Z$=Ni.extend({elicitationId:y()}),Q$=Ui.extend({method:L("notifications/elicitation/complete"),params:Z$}),ms=En.extend({action:oi(["accept","decline","cancel"]),content:qf(t=>t===null?void 0:t,Ue(y(),$e([y(),_e(),Cn(),fe(y())])).optional())}),X$=D({type:L("ref/resource"),uri:y()});var Y$=D({type:L("ref/prompt"),name:y()}),eB=Mi.extend({ref:$e([Y$,X$]),argument:D({name:y(),value:y()}),context:D({arguments:Ue(y(),y()).optional()}).optional()}),Bc=Mn.extend({method:L("completion/complete"),params:eB});function RO(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function IO(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var nB=En.extend({completion:Fn({values:fe(y()).max(100),total:Ve(_e().int()),hasMore:Ve(Cn())})}),iB=D({uri:y().startsWith("file://"),name:y().optional(),_meta:Ue(y(),Fe()).optional()}),tB=Mn.extend({method:L("roots/list"),params:Mi.optional()}),Kf=En.extend({roots:fe(iB)}),aB=Ui.extend({method:L("notifications/roots/list_changed"),params:Ni.optional()}),Are=$e([kc,Df,Bc,Vf,Nc,Gc,Ic,zc,Dc,t$,r$,gs,Uc,Ec,_c,Hc,Rc]),bre=$e([Tc,Mc,Gf,aB,Fo]),xre=$e([Oc,Ko,Jf,ms,Kf,qc,Wc,ds]),yre=$e([kc,_$,K$,tB,Ec,_c,Hc,Rc]),Pre=$e([Tc,Mc,j$,o$,n$,x$,w$,Fo,Q$]),jre=$e([Oc,BU,nB,f$,c$,QU,XU,e$,$c,A$,qc,Wc,ds]),B=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===J.UrlElicitationRequired&&i){let a=i;if(a.elicitations)return new _f(a.elicitations,n)}return new t(e,n,i)}},_f=class extends B{constructor(e,n=`URL elicitation${e.length>1?"s":""} required`){super(J.UrlElicitationRequired,n,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function ca(t){return t==="completed"||t==="failed"||t==="cancelled"}var DO=Symbol("Let zodToJsonSchema decide on which parser to use");var zO={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"},GO=t=>typeof t=="string"?{...zO,name:t}:{...zO,...t};var NO=t=>{let e=GO(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 Zf(t,e,n,i){i?.errorMessages&&n&&(t.errorMessage={...t.errorMessage,[e]:n})}function we(t,e,n,i,a){t[e]=n,Zf(t,e,i,a)}var Lc=(t,e)=>{let n=0;for(;nne(t.innerType._def,e);function Qf(t,e,n){let i=n??e.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((a,r)=>Qf(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 rB(t,e)}}var rB=(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":we(n,"minimum",i.value,i.message,e);break;case"max":we(n,"maximum",i.value,i.message,e);break}return n};function FO(t,e){return{...ne(t.innerType._def,e),default:t.defaultValue()}}function VO(t,e){return e.effectStrategy==="input"?ne(t.schema._def,e):Ke(e)}function JO(t){return{type:"string",enum:Array.from(t.values)}}var sB=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function KO(t,e){let n=[ne(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),ne(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(sB(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 ZO(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 Xf,it={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:()=>(Xf===void 0&&(Xf=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Xf),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 Vc(t,e){let n={type:"string"};if(t.checks)for(let i of t.checks)switch(i.kind){case"min":we(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value,i.message,e);break;case"max":we(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":tt(n,"email",i.message,e);break;case"format:idn-email":tt(n,"idn-email",i.message,e);break;case"pattern:zod":Vn(n,it.email,i.message,e);break}break;case"url":tt(n,"uri",i.message,e);break;case"uuid":tt(n,"uuid",i.message,e);break;case"regex":Vn(n,i.regex,i.message,e);break;case"cuid":Vn(n,it.cuid,i.message,e);break;case"cuid2":Vn(n,it.cuid2,i.message,e);break;case"startsWith":Vn(n,RegExp(`^${Yf(i.value,e)}`),i.message,e);break;case"endsWith":Vn(n,RegExp(`${Yf(i.value,e)}$`),i.message,e);break;case"datetime":tt(n,"date-time",i.message,e);break;case"date":tt(n,"date",i.message,e);break;case"time":tt(n,"time",i.message,e);break;case"duration":tt(n,"duration",i.message,e);break;case"length":we(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value,i.message,e),we(n,"maxLength",typeof n.maxLength=="number"?Math.min(n.maxLength,i.value):i.value,i.message,e);break;case"includes":{Vn(n,RegExp(Yf(i.value,e)),i.message,e);break}case"ip":{i.version!=="v6"&&tt(n,"ipv4",i.message,e),i.version!=="v4"&&tt(n,"ipv6",i.message,e);break}case"base64url":Vn(n,it.base64url,i.message,e);break;case"jwt":Vn(n,it.jwt,i.message,e);break;case"cidr":{i.version!=="v6"&&Vn(n,it.ipv4Cidr,i.message,e),i.version!=="v4"&&Vn(n,it.ipv6Cidr,i.message,e);break}case"emoji":Vn(n,it.emoji(),i.message,e);break;case"ulid":{Vn(n,it.ulid,i.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{tt(n,"binary",i.message,e);break}case"contentEncoding:base64":{we(n,"contentEncoding","base64",i.message,e);break}case"pattern:zod":{Vn(n,it.base64,i.message,e);break}}break}case"nanoid":Vn(n,it.nanoid,i.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return n}function Yf(t,e){return e.patternStrategy==="escape"?lB(t):t}var oB=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function lB(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}}})):we(t,"format",e,n,i)}function Vn(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:QO(e,i),...n&&i.errorMessages&&{errorMessage:{pattern:n}}})):we(t,"pattern",QO(e,i),n,i)}function QO(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]:ee(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ke(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let n={type:"object",additionalProperties:ee(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}=$c(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}=Uc(t.keyType._def,e);return{...n,propertyNames:a}}}return n}function VO(t,e){if(e.mapStrategy==="record")return Bc(t,e);let n=ee(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ke(e),i=ee(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ke(e);return{type:"array",maxItems:125,items:{type:"array",items:[n,i],minItems:2,maxItems:2}}}function JO(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 KO(t){return t.target==="openAi"?void 0:{not:Ke({...t,currentPath:[...t.currentPath,"not"]})}}function ZO(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Fo={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function YO(t,e){if(e.target==="openApi3")return QO(t,e);let n=t.options instanceof Map?Array.from(t.options.values()):t.options;if(n.every(i=>i._def.typeName in Fo&&(!i._def.checks||!i._def.checks.length))){let i=n.reduce((a,r)=>{let s=Fo[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"];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 QO(t,e)}var QO=(t,e)=>{let n=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((i,a)=>ee(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 XO(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:Fo[t.innerType._def.typeName],nullable:!0}:{type:[Fo[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let i=ee(t.innerType._def,{...e,currentPath:[...e.currentPath]});return i&&"$ref"in i?{allOf:[i],nullable:!0}:i&&{...i,nullable:!0}}let n=ee(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function eT(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",Vf(n,"type",i.message,e);break;case"min":e.target==="jsonSchema7"?i.inclusive?we(n,"minimum",i.value,i.message,e):we(n,"exclusiveMinimum",i.value,i.message,e):(i.inclusive||(n.exclusiveMinimum=!0),we(n,"minimum",i.value,i.message,e));break;case"max":e.target==="jsonSchema7"?i.inclusive?we(n,"maximum",i.value,i.message,e):we(n,"exclusiveMaximum",i.value,i.message,e):(i.inclusive||(n.exclusiveMaximum=!0),we(n,"maximum",i.value,i.message,e));break;case"multipleOf":we(n,"multipleOf",i.value,i.message,e);break}return n}function nT(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 c=eB(l);c&&n&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),c=!1);let u=ee(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});u!==void 0&&(i.properties[o]=u,c||a.push(o))}a.length&&(i.required=a);let s=X$(t,e);return s!==void 0&&(i.additionalProperties=s),i}function X$(t,e){if(t.catchall._def.typeName!=="ZodNever")return ee(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 eB(t){try{return t.isOptional()}catch{return!0}}var iT=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return ee(t.innerType._def,e);let n=ee(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return n?{anyOf:[{not:Ke(e)},n]}:Ke(e)};var tT=(t,e)=>{if(e.pipeStrategy==="input")return ee(t.in._def,e);if(e.pipeStrategy==="output")return ee(t.out._def,e);let n=ee(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),i=ee(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,i].filter(a=>a!==void 0)}};function aT(t,e){return ee(t.type._def,e)}function rT(t,e){let i={type:"array",uniqueItems:!0,items:ee(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&we(i,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&we(i,"maxItems",t.maxSize.value,t.maxSize.message,e),i}function sT(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((n,i)=>ee(n._def,{...e,currentPath:[...e.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[]),additionalItems:ee(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((n,i)=>ee(n._def,{...e,currentPath:[...e.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[])}}function oT(t){return{not:Ke(t)}}function lT(t){return Ke(t)}var uT=(t,e)=>ee(t.innerType._def,e);var cT=(t,e,n)=>{switch(e){case E.ZodString:return $c(t,n);case E.ZodNumber:return eT(t,n);case E.ZodObject:return nT(t,n);case E.ZodBigInt:return zO(t,n);case E.ZodBoolean:return DO();case E.ZodDate:return Jf(t,n);case E.ZodUndefined:return oT(n);case E.ZodNull:return ZO(n);case E.ZodArray:return IO(t,n);case E.ZodUnion:case E.ZodDiscriminatedUnion:return YO(t,n);case E.ZodIntersection:return BO(t,n);case E.ZodTuple:return sT(t,n);case E.ZodRecord:return Bc(t,n);case E.ZodLiteral:return LO(t,n);case E.ZodEnum:return $O(t);case E.ZodNativeEnum:return JO(t);case E.ZodNullable:return XO(t,n);case E.ZodOptional:return iT(t,n);case E.ZodMap:return VO(t,n);case E.ZodSet:return rT(t,n);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return aT(t,n);case E.ZodNaN:case E.ZodNever:return KO(n);case E.ZodEffects:return UO(t,n);case E.ZodAny:return Ke(n);case E.ZodUnknown:return lT(n);case E.ZodDefault:return NO(t,n);case E.ZodBranded:return Uc(t,n);case E.ZodReadonly:return uT(t,n);case E.ZodCatch:return GO(t,n);case E.ZodPipeline:return tT(t,n);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(i=>{})(e)}};function ee(t,e,n=!1){let i=e.seen.get(t);if(e.override){let o=e.override?.(t,e,i,n);if(o!==HO)return o}if(i&&!n){let o=nB(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=cT(t,t.typeName,e),s=typeof r=="function"?ee(r(),e):r;if(s&&iB(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var nB=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Nc(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`),Ke(e)):e.$refStrategy==="seen"?Ke(e):void 0}},iB=(t,e,n)=>(t.description&&(n.description=t.description,e.markdownDescription&&(n.markdownDescription=t.description)),n);var Qf=(t,e)=>{let n=RO(e),i=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[c,u])=>({...l,[c]:ee(u._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0)??Ke(n)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=ee(t._def,a===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1)??Ke(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 tB(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function Yf(t,e){return Ct(t)?jf(t,{target:tB(e?.target),io:e?.pipeStrategy??"input"}):Qf(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function Xf(t){let n=sa(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=rs(n);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function ew(t,e){let n=ra(t,e);if(!n.success)throw n.error;return n.data}var aB=6e4,Lc=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(Pc,n=>{this._oncancel(n)}),this.setNotificationHandler(Sc,n=>{this._onprogress(n)}),this.setRequestHandler(jc,n=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Oc,async(n,i)=>{let a=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!a)throw new B(J.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(kc,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,c=l.id,u=this._requestResolvers.get(c);if(u)if(this._requestResolvers.delete(c),o.type==="response")u(l);else{let p=l,h=new B(p.error.code,p.error.message,p.error.data);u(h)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${c}`))}continue}await this._transport?.send(o.message,{relatedRequestId:i.requestId})}}let s=await this._taskStore.getTask(r,i.sessionId);if(!s)throw new B(J.InvalidParams,`Task not found: ${r}`);if(!la(s.status))return await this._waitForTaskUpdate(r,i.signal),await a();if(la(s.status)){let o=await this._taskStore.getTaskResult(r,i.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[oa]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Mc,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 B(J.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(qc,async(n,i)=>{try{let a=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!a)throw new B(J.InvalidParams,`Task not found: ${n.params.taskId}`);if(la(a.status))throw new B(J.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 B(J.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof B?a:new B(J.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),B.fromError(J.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),Io(r)||xO(r)?this._onresponse(r):_f(r)?this._onrequest(r,s):bO(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=B.fromError(J.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?.[oa]?.taskId;if(i===void 0){let u={jsonrpc:"2.0",id:e.id,error:{code:J.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:u,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(u).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=vO(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,c={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async u=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(u,p)},sendRequest:async(u,p,h)=>{if(s.signal.aborted)throw new B(J.ConnectionClosed,"Request was cancelled");let g={...h,relatedRequestId:e.id};r&&!g.relatedTask&&(g.relatedTask={taskId:r});let d=g.relatedTask?.taskId??r;return d&&l&&await l.updateTaskStatus(d,"input_required"),await this.request(u,p,g)},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,c)).then(async u=>{if(s.signal.aborted)return;let p={result:u,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 u=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:J.InternalError,message:u.message??"Internal error",...u.data!==void 0&&{data:u.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).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),Io(e))i(e);else{let s=new B(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(Io(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),Io(e))a(e);else{let s=B.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 B?s:new B(J.InternalError,String(s))}}return}let r;try{let s=await this.request(e,os,i);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new B(J.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},i);if(yield{type:"taskStatus",task:o},la(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},n,i)}:o.status==="failed"?yield{type:"error",error:new B(J.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new B(J.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(c=>setTimeout(c,l)),i?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof B?s:new B(J.InternalError,String(s))}}}request(e,n,i){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=i??{};return new Promise((c,u)=>{let p=A=>{u(A)};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(A){p(A);return}i?.signal?.throwIfAborted();let h=this._requestMessageId++,g={...e,jsonrpc:"2.0",id:h};i?.onprogress&&(this._progressHandlers.set(h,i.onprogress),g.params={...e.params,_meta:{...e.params?._meta||{},progressToken:h}}),o&&(g.params={...g.params,task:o}),l&&(g.params={...g.params,_meta:{...g.params?._meta||{},[oa]:l}});let d=A=>{this._responseHandlers.delete(h),this._progressHandlers.delete(h),this._cleanupTimeout(h),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:h,reason:String(A)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(x=>this._onerror(new Error(`Failed to send cancellation: ${x}`)));let b=A instanceof B?A:new B(J.RequestTimeout,String(A));u(b)};this._responseHandlers.set(h,A=>{if(!i?.signal?.aborted){if(A instanceof Error)return u(A);try{let b=ra(n,A.result);b.success?c(b.data):u(b.error)}catch(b){u(b)}}}),i?.signal?.addEventListener("abort",()=>{d(i?.signal?.reason)});let m=i?.timeout??aB,w=()=>d(B.fromError(J.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(h,m,i?.maxTotalTimeout,w,i?.resetTimeoutOnProgress??!1);let f=l?.taskId;if(f){let A=b=>{let x=this._responseHandlers.get(h);x?x(b):this._onerror(new Error(`Response handler missing for side-channeled request ${h}`))};this._requestResolvers.set(h,A),this._enqueueTaskMessage(f,{type:"request",message:g,timestamp:Date.now()}).catch(b=>{this._cleanupTimeout(h),u(b)})}else this._transport.send(g,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(A=>{this._cleanupTimeout(h),u(A)})})}async getTask(e,n){return this.request({method:"tasks/get",params:e},Tc,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},Ec,n)}async cancelTask(e,n){return this.request({method:"tasks/cancel",params:e},jO,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||{},[oa]: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||{},[oa]: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||{},[oa]:n.relatedTask}}}),await this._transport.send(s,n)}setRequestHandler(e,n){let i=Xf(e);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(a,r)=>{let s=ew(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=Xf(e);this._notificationHandlers.set(i,a=>{let r=ew(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"&&_f(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new B(J.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 B(J.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,i);n.addEventListener("abort",()=>{clearTimeout(s),r(new B(J.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 B(J.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=Uo.parse({method:"notifications/tasks/status",params:o});await this.notification(l),la(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 B(J.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(la(o.status))throw new B(J.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 c=Uo.parse({method:"notifications/tasks/status",params:l});await this.notification(c),la(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>i.listTasks(a,n)}}};function pT(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function dT(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];pT(s)&&pT(r)?n[a]={...s,...r}:n[a]=r}return n}var pM=zr(Fv(),1),dM=zr(cM(),1);function mJ(){let t=new pM.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,dM.default)(t),t}var Tp=class{constructor(e){this._ajv=e??mJ()}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 kp=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(u=>u.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]:[],c=l.some(u=>u.type==="tool_use");if(s){if(r.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(l.filter(h=>h.type==="tool_use").map(h=>h.id)),p=new Set(r.filter(h=>h.type==="tool_result").map(h=>h.toolUseId));if(u.size!==p.size||![...u].every(h=>p.has(h)))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},Lo,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},cs,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 hM(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 gM(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 Mp=class extends Lc{constructor(e,n){super(n),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Bo.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(If,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(Bf,async(i,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=i.params,o=Bo.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new kp(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=dT(this._capabilities,e)}setRequestHandler(e,n){let a=sa(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r=rs(a);if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,c)=>{let u=ra(us,l);if(!u.success){let d=u.error instanceof Error?u.error.message:String(u.error);throw new B(J.InvalidParams,`Invalid tools/call request: ${d}`)}let{params:p}=u.data,h=await Promise.resolve(n(l,c));if(p.task){let d=ra(os,h);if(!d.success){let m=d.error instanceof Error?d.error.message:String(d.error);throw new B(J.InvalidParams,`Invalid task creation result: ${m}`)}return d.data}let g=ra(Dc,h);if(!g.success){let d=g.error instanceof Error?g.error.message:String(g.error);throw new B(J.InvalidParams,`Invalid tools/call result: ${d}`)}return g.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){gM(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&hM(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:mO.includes(n)?n:Ef,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"},yc)}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(c=>c.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(c=>c.type==="tool_use");if(r){if(a.some(c=>c.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 c=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),u=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(c.size!==u.size||![...c].every(p=>u.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},Lf,n):this.request({method:"sampling/createMessage",params:e},Lo,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},cs,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},cs,n);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new B(J.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof B?s:new B(J.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},Ff,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 fM=Symbol.for("mcp.completable");function eC(t){return!!t&&typeof t=="object"&&fM in t}function wM(t){return t[fM]?.complete}var mM;(function(t){t.Completable="McpCompletable"})(mM||(mM={}));var fJ=/^[A-Za-z0-9._-]{1,128}$/;function wJ(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"),!fJ.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 vJ(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 nC(t){let e=wJ(t);return vJ(t,e.warnings),e.isValid}var Ep=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 qp=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 Mp(e,n)}get experimental(){return this._experimental||(this._experimental={tasks:new Ep(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(wa(zc)),this.server.assertCanSetRequestHandler(wa(us)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(zc,()=>({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=as(n.inputSchema);return a?Yf(a,{strictUnions:!0,pipeStrategy:"input"}):CJ})(),annotations:n.annotations,execution:n.execution,_meta:n._meta};if(n.outputSchema){let a=as(n.outputSchema);a&&(i.outputSchema=Yf(a,{strictUnions:!0,pipeStrategy:"output"}))}return i})})),this.server.setRequestHandler(us,async(e,n)=>{try{let i=this._registeredTools[e.params.name];if(!i)throw new B(J.InvalidParams,`Tool ${e.params.name} not found`);if(!i.enabled)throw new B(J.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 B(J.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new B(J.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 B&&i.code===J.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=as(e.inputSchema)??e.inputSchema,s=await dc(r,n);if(!s.success){let o="error"in s?s.error:"Unknown error",l=hc(o);throw new B(J.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 B(J.InvalidParams,`Output validation error: Tool ${i} has an output schema but no structured content was provided`);let a=as(e.outputSchema),r=await dc(a,n.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=hc(s);throw new B(J.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,c=o.task,u=c.pollInterval??5e3;for(;c.status!=="completed"&&c.status!=="failed"&&c.status!=="cancelled";){await new Promise(h=>setTimeout(h,u));let p=await i.taskStore.getTask(l);if(!p)throw new B(J.InternalError,`Task ${l} not found during polling`);c=p}return await i.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(wa(Gc)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Gc,async e=>{switch(e.params.ref.type){case"ref/prompt":return EO(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return qO(e),this.handleResourceCompletion(e,e.params.ref);default:throw new B(J.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,n){let i=this._registeredPrompts[n.name];if(!i)throw new B(J.InvalidParams,`Prompt ${n.name} not found`);if(!i.enabled)throw new B(J.InvalidParams,`Prompt ${n.name} disabled`);if(!i.argsSchema)return yl;let r=sa(i.argsSchema)?.[e.params.argument.name];if(!eC(r))return yl;let s=wM(r);if(!s)return yl;let o=await s(e.params.argument.value,e.params.context);return CM(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 yl;throw new B(J.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=i.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return yl;let r=await a(e.params.argument.value,e.params.context);return CM(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(wa(_c)),this.server.assertCanSetRequestHandler(wa(Hc)),this.server.assertCanSetRequestHandler(wa(Wc)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(_c,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(Hc,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([n,i])=>({name:n,uriTemplate:i.resourceTemplate.uriTemplate.toString(),...i.metadata}))})),this.server.setRequestHandler(Wc,async(e,n)=>{let i=new URL(e.params.uri),a=this._registeredResources[i.toString()];if(a){if(!a.enabled)throw new B(J.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 B(J.InvalidParams,`Resource ${i} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(wa(Rc)),this.server.assertCanSetRequestHandler(wa(Ic)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Rc,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,n])=>({name:e,title:n.title,description:n.description,arguments:n.argsSchema?AJ(n.argsSchema):void 0}))})),this.server.setRequestHandler(Ic,async(e,n)=>{let i=this._registeredPrompts[e.params.name];if(!i)throw new B(J.InvalidParams,`Prompt ${e.params.name} not found`);if(!i.enabled)throw new B(J.InvalidParams,`Prompt ${e.params.name} disabled`);if(i.argsSchema){let a=as(i.argsSchema),r=await dc(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",c=hc(l);throw new B(J.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${c}`)}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:c=>{typeof c.name<"u"&&c.name!==e&&(delete this._registeredResourceTemplates[e],c.name&&(this._registeredResourceTemplates[c.name]=s)),typeof c.title<"u"&&(s.title=c.title),typeof c.template<"u"&&(s.resourceTemplate=c.template),typeof c.metadata<"u"&&(s.metadata=c.metadata),typeof c.callback<"u"&&(s.readCallback=c.callback),typeof c.enabled<"u"&&(s.enabled=c.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=i.uriTemplate.variableNames;return Array.isArray(o)&&o.some(c=>!!i.completeCallback(c))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,n,i,a,r){let s={title:n,description:i,argsSchema:a===void 0?void 0:Ya(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=Ya(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 c=l instanceof vc?l._def?.innerType:l;return eC(c)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,n,i,a,r,s,o,l,c){nC(e);let u={title:n,description:i,inputSchema:vM(a),outputSchema:vM(r),annotations:s,execution:o,_meta:l,handler:c,enabled:!0,disable:()=>u.update({enabled:!1}),enable:()=>u.update({enabled:!0}),remove:()=>u.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&nC(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=u)),typeof p.title<"u"&&(u.title=p.title),typeof p.description<"u"&&(u.description=p.description),typeof p.paramsSchema<"u"&&(u.inputSchema=Ya(p.paramsSchema)),typeof p.outputSchema<"u"&&(u.outputSchema=Ya(p.outputSchema)),typeof p.callback<"u"&&(u.handler=p.callback),typeof p.annotations<"u"&&(u.annotations=p.annotations),typeof p._meta<"u"&&(u._meta=p._meta),typeof p.enabled<"u"&&(u.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=u,this.setToolRequestHandlers(),this.sendToolListChanged(),u}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(iC(l))a=n.shift(),n.length>1&&typeof n[0]=="object"&&n[0]!==null&&!iC(n[0])&&(s=n.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(c=>typeof c=="object"&&c!==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:c}=n;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},c,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 CJ={type:"object",properties:{}};function AM(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function bM(t){return"_def"in t||"_zod"in t||AM(t)}function iC(t){return typeof t!="object"||t===null||bM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(AM)}function vM(t){if(t){if(iC(t))return Ya(t);if(!bM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function AJ(t){let e=sa(t);return e?Object.entries(e).map(([n,i])=>{let a=DS(i),r=GS(i);return{name:n,description:a,required:!r}}):[]}function wa(t){let n=sa(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=rs(n);if(typeof i=="string")return i;throw new Error("Schema method literal must be a string")}function CM(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var yl={completion:{values:[],hasMore:!1}};var tC=zr(require("node:process"),1);var bJ=10*1024*1024,_p=class{constructor(e){this._maxBufferSize=e?.maxBufferSize??bJ}append(e){if((this._buffer?.length??0)+e.length>this._maxBufferSize)throw this.clear(),new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);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 n=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),xJ(n)}clear(){this._buffer=void 0}};function xJ(t){return yO.parse(JSON.parse(t))}function xM(t){return JSON.stringify(t)+` -`}var Hp=class{constructor(e=tC.default.stdin,n=tC.default.stdout,i){this._stdin=e,this._stdout=n,this._started=!1,this._ondata=a=>{try{this._readBuffer.append(a),this.processReadBuffer()}catch(r){this.onerror?.(r),this.close().catch(()=>{})}},this._onerror=a=>{this.onerror?.(a)},this._readBuffer=new _p({maxBufferSize:i?.maxBufferSize})}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(n=>{let i=xM(e);this._stdout.write(i)?n():this._stdout.once("drain",n)})}};var ju=zr(p1());var h1=require("node:child_process"),g1=zr(require("node:fs")),Wy=zr(require("node:path"));var d1=12e4,zne={flowFile:te.string().min(1).describe("Path to the TypeScript flow file")},m1=t=>({config:{description:`Deploys a Genesys Cloud Architect flow from a TypeScript file. The file must export an async buildFlow(scripting) function that creates and saves the flow using the Architect Scripting SDK. The project's package.json must have "type": "module" for the ES module import to work.`,annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:zne},handler:async({flowFile:e})=>{let n=Wy.default.resolve(e);if(!g1.default.existsSync(n))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${n}`}]};let i=[t.deployScriptPath,"--flow-file",n];return new Promise(a=>{let r=[],s,o=!1,l=g=>{o||(o=!0,clearTimeout(u),a(g))},c=(0,h1.spawn)("node",i,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:Wy.default.dirname(n),stdio:["ignore","pipe","pipe"]}),u=setTimeout(()=>{c.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${d1/1e3}s. +]`;continue}a+=i[l],i[l]==="\\"?r=!0:s&&i[l]==="]"?s=!1:!s&&i[l]==="["&&(s=!0)}try{new RegExp(a)}catch{return console.warn(`Could not convert regex pattern at ${e.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return a}function Jc(t,e){if(e.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),e.target==="openApi3"&&t.keyType?._def.typeName===E.ZodEnum)return{type:"object",required:t.keyType._def.values,properties:t.keyType._def.values.reduce((i,a)=>({...i,[a]:ne(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ke(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let n={type:"object",additionalProperties:ne(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}=Vc(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}=Fc(t.keyType._def,e);return{...n,propertyNames:a}}}return n}function XO(t,e){if(e.mapStrategy==="record")return Jc(t,e);let n=ne(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ke(e),i=ne(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ke(e);return{type:"array",maxItems:125,items:{type:"array",items:[n,i],minItems:2,maxItems:2}}}function YO(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 eT(t){return t.target==="openAi"?void 0:{not:Ke({...t,currentPath:[...t.currentPath,"not"]})}}function nT(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Zo={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function tT(t,e){if(e.target==="openApi3")return iT(t,e);let n=t.options instanceof Map?Array.from(t.options.values()):t.options;if(n.every(i=>i._def.typeName in Zo&&(!i._def.checks||!i._def.checks.length))){let i=n.reduce((a,r)=>{let s=Zo[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"];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 iT(t,e)}var iT=(t,e)=>{let n=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((i,a)=>ne(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 aT(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:Zo[t.innerType._def.typeName],nullable:!0}:{type:[Zo[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let i=ne(t.innerType._def,{...e,currentPath:[...e.currentPath]});return i&&"$ref"in i?{allOf:[i],nullable:!0}:i&&{...i,nullable:!0}}let n=ne(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function rT(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",Zf(n,"type",i.message,e);break;case"min":e.target==="jsonSchema7"?i.inclusive?we(n,"minimum",i.value,i.message,e):we(n,"exclusiveMinimum",i.value,i.message,e):(i.inclusive||(n.exclusiveMinimum=!0),we(n,"minimum",i.value,i.message,e));break;case"max":e.target==="jsonSchema7"?i.inclusive?we(n,"maximum",i.value,i.message,e):we(n,"exclusiveMaximum",i.value,i.message,e):(i.inclusive||(n.exclusiveMaximum=!0),we(n,"maximum",i.value,i.message,e));break;case"multipleOf":we(n,"multipleOf",i.value,i.message,e);break}return n}function sT(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 c=cB(l);c&&n&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),c=!1);let u=ne(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});u!==void 0&&(i.properties[o]=u,c||a.push(o))}a.length&&(i.required=a);let s=uB(t,e);return s!==void 0&&(i.additionalProperties=s),i}function uB(t,e){if(t.catchall._def.typeName!=="ZodNever")return ne(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 cB(t){try{return t.isOptional()}catch{return!0}}var oT=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return ne(t.innerType._def,e);let n=ne(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return n?{anyOf:[{not:Ke(e)},n]}:Ke(e)};var lT=(t,e)=>{if(e.pipeStrategy==="input")return ne(t.in._def,e);if(e.pipeStrategy==="output")return ne(t.out._def,e);let n=ne(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),i=ne(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,i].filter(a=>a!==void 0)}};function uT(t,e){return ne(t.type._def,e)}function cT(t,e){let i={type:"array",uniqueItems:!0,items:ne(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&we(i,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&we(i,"maxItems",t.maxSize.value,t.maxSize.message,e),i}function pT(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((n,i)=>ne(n._def,{...e,currentPath:[...e.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[]),additionalItems:ne(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((n,i)=>ne(n._def,{...e,currentPath:[...e.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[])}}function dT(t){return{not:Ke(t)}}function hT(t){return Ke(t)}var gT=(t,e)=>ne(t.innerType._def,e);var mT=(t,e,n)=>{switch(e){case E.ZodString:return Vc(t,n);case E.ZodNumber:return rT(t,n);case E.ZodObject:return sT(t,n);case E.ZodBigInt:return $O(t,n);case E.ZodBoolean:return BO();case E.ZodDate:return Qf(t,n);case E.ZodUndefined:return dT(n);case E.ZodNull:return nT(n);case E.ZodArray:return UO(t,n);case E.ZodUnion:case E.ZodDiscriminatedUnion:return tT(t,n);case E.ZodIntersection:return KO(t,n);case E.ZodTuple:return pT(t,n);case E.ZodRecord:return Jc(t,n);case E.ZodLiteral:return ZO(t,n);case E.ZodEnum:return JO(t);case E.ZodNativeEnum:return YO(t);case E.ZodNullable:return aT(t,n);case E.ZodOptional:return oT(t,n);case E.ZodMap:return XO(t,n);case E.ZodSet:return cT(t,n);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return uT(t,n);case E.ZodNaN:case E.ZodNever:return eT(n);case E.ZodEffects:return VO(t,n);case E.ZodAny:return Ke(n);case E.ZodUnknown:return hT(n);case E.ZodDefault:return FO(t,n);case E.ZodBranded:return Fc(t,n);case E.ZodReadonly:return gT(t,n);case E.ZodCatch:return LO(t,n);case E.ZodPipeline:return lT(t,n);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(i=>{})(e)}};function ne(t,e,n=!1){let i=e.seen.get(t);if(e.override){let o=e.override?.(t,e,i,n);if(o!==DO)return o}if(i&&!n){let o=pB(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=mT(t,t.typeName,e),s=typeof r=="function"?ne(r(),e):r;if(s&&dB(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var pB=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Lc(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`),Ke(e)):e.$refStrategy==="seen"?Ke(e):void 0}},dB=(t,e,n)=>(t.description&&(n.description=t.description,e.markdownDescription&&(n.markdownDescription=t.description)),n);var ew=(t,e)=>{let n=NO(e),i=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[c,u])=>({...l,[c]:ne(u._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0)??Ke(n)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=ne(t._def,a===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1)??Ke(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 hB(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function nw(t,e){return At(t)?Tf(t,{target:hB(e?.target),io:e?.pipeStrategy??"input"}):ew(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function iw(t){let n=la(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=cs(n);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function tw(t,e){let n=oa(t,e);if(!n.success)throw n.error;return n.data}var gB=6e4,Kc=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(Tc,n=>{this._oncancel(n)}),this.setNotificationHandler(Mc,n=>{this._onprogress(n)}),this.setRequestHandler(kc,n=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Ec,async(n,i)=>{let a=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!a)throw new B(J.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(_c,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,c=l.id,u=this._requestResolvers.get(c);if(u)if(this._requestResolvers.delete(c),o.type==="response")u(l);else{let p=l,h=new B(p.error.code,p.error.message,p.error.data);u(h)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${c}`))}continue}await this._transport?.send(o.message,{relatedRequestId:i.requestId})}}let s=await this._taskStore.getTask(r,i.sessionId);if(!s)throw new B(J.InvalidParams,`Task not found: ${r}`);if(!ca(s.status))return await this._waitForTaskUpdate(r,i.signal),await a();if(ca(s.status)){let o=await this._taskStore.getTaskResult(r,i.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[ua]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Hc,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 B(J.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(Rc,async(n,i)=>{try{let a=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!a)throw new B(J.InvalidParams,`Task not found: ${n.params.taskId}`);if(ca(a.status))throw new B(J.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 B(J.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof B?a:new B(J.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),B.fromError(J.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),No(r)||OO(r)?this._onresponse(r):Rf(r)?this._onrequest(r,s):SO(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=B.fromError(J.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?.[ua]?.taskId;if(i===void 0){let u={jsonrpc:"2.0",id:e.id,error:{code:J.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:u,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(u).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=yO(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,c={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async u=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(u,p)},sendRequest:async(u,p,h)=>{if(s.signal.aborted)throw new B(J.ConnectionClosed,"Request was cancelled");let g={...h,relatedRequestId:e.id};r&&!g.relatedTask&&(g.relatedTask={taskId:r});let d=g.relatedTask?.taskId??r;return d&&l&&await l.updateTaskStatus(d,"input_required"),await this.request(u,p,g)},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,c)).then(async u=>{if(s.signal.aborted)return;let p={result:u,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 u=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:J.InternalError,message:u.message??"Internal error",...u.data!==void 0&&{data:u.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).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),No(e))i(e);else{let s=new B(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(No(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),No(e))a(e);else{let s=B.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 B?s:new B(J.InternalError,String(s))}}return}let r;try{let s=await this.request(e,ds,i);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new B(J.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},i);if(yield{type:"taskStatus",task:o},ca(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},n,i)}:o.status==="failed"?yield{type:"error",error:new B(J.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new B(J.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(c=>setTimeout(c,l)),i?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof B?s:new B(J.InternalError,String(s))}}}request(e,n,i){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=i??{};return new Promise((c,u)=>{let p=A=>{u(A)};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(A){p(A);return}i?.signal?.throwIfAborted();let h=this._requestMessageId++,g={...e,jsonrpc:"2.0",id:h};i?.onprogress&&(this._progressHandlers.set(h,i.onprogress),g.params={...e.params,_meta:{...e.params?._meta||{},progressToken:h}}),o&&(g.params={...g.params,task:o}),l&&(g.params={...g.params,_meta:{...g.params?._meta||{},[ua]:l}});let d=A=>{this._responseHandlers.delete(h),this._progressHandlers.delete(h),this._cleanupTimeout(h),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:h,reason:String(A)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(x=>this._onerror(new Error(`Failed to send cancellation: ${x}`)));let b=A instanceof B?A:new B(J.RequestTimeout,String(A));u(b)};this._responseHandlers.set(h,A=>{if(!i?.signal?.aborted){if(A instanceof Error)return u(A);try{let b=oa(n,A.result);b.success?c(b.data):u(b.error)}catch(b){u(b)}}}),i?.signal?.addEventListener("abort",()=>{d(i?.signal?.reason)});let m=i?.timeout??gB,w=()=>d(B.fromError(J.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(h,m,i?.maxTotalTimeout,w,i?.resetTimeoutOnProgress??!1);let f=l?.taskId;if(f){let A=b=>{let x=this._responseHandlers.get(h);x?x(b):this._onerror(new Error(`Response handler missing for side-channeled request ${h}`))};this._requestResolvers.set(h,A),this._enqueueTaskMessage(f,{type:"request",message:g,timestamp:Date.now()}).catch(b=>{this._cleanupTimeout(h),u(b)})}else this._transport.send(g,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(A=>{this._cleanupTimeout(h),u(A)})})}async getTask(e,n){return this.request({method:"tasks/get",params:e},qc,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},Wc,n)}async cancelTask(e,n){return this.request({method:"tasks/cancel",params:e},MO,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||{},[ua]: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||{},[ua]: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||{},[ua]:n.relatedTask}}}),await this._transport.send(s,n)}setRequestHandler(e,n){let i=iw(e);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(a,r)=>{let s=tw(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=iw(e);this._notificationHandlers.set(i,a=>{let r=tw(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"&&Rf(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new B(J.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 B(J.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,i);n.addEventListener("abort",()=>{clearTimeout(s),r(new B(J.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 B(J.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=Fo.parse({method:"notifications/tasks/status",params:o});await this.notification(l),ca(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 B(J.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(ca(o.status))throw new B(J.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 c=Fo.parse({method:"notifications/tasks/status",params:l});await this.notification(c),ca(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>i.listTasks(a,n)}}};function fT(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function wT(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];fT(s)&&fT(r)?n[a]={...s,...r}:n[a]=r}return n}var fM=$r(Kv(),1),wM=$r(mM(),1);function jJ(){let t=new fM.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,wM.default)(t),t}var qp=class{constructor(e){this._ajv=e??jJ()}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 _p=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(u=>u.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]:[],c=l.some(u=>u.type==="tool_use");if(s){if(r.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(l.filter(h=>h.type==="tool_use").map(h=>h.id)),p=new Set(r.filter(h=>h.type==="tool_result").map(h=>h.toolUseId));if(u.size!==p.size||![...u].every(h=>p.has(h)))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},Ko,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},ms,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 vM(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 CM(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 Hp=class extends Kc{constructor(e,n){super(n),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Jo.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(Gf,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(Vf,async(i,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=i.params,o=Jo.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new _p(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=wT(this._capabilities,e)}setRequestHandler(e,n){let a=la(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r=cs(a);if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,c)=>{let u=oa(gs,l);if(!u.success){let d=u.error instanceof Error?u.error.message:String(u.error);throw new B(J.InvalidParams,`Invalid tools/call request: ${d}`)}let{params:p}=u.data,h=await Promise.resolve(n(l,c));if(p.task){let d=oa(ds,h);if(!d.success){let m=d.error instanceof Error?d.error.message:String(d.error);throw new B(J.InvalidParams,`Invalid task creation result: ${m}`)}return d.data}let g=oa($c,h);if(!g.success){let d=g.error instanceof Error?g.error.message:String(g.error);throw new B(J.InvalidParams,`Invalid tools/call result: ${d}`)}return g.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){CM(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&vM(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:AO.includes(n)?n:Hf,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"},Oc)}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(c=>c.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(c=>c.type==="tool_use");if(r){if(a.some(c=>c.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 c=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),u=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(c.size!==u.size||![...c].every(p=>u.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},Jf,n):this.request({method:"sampling/createMessage",params:e},Ko,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},ms,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},ms,n);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new B(J.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof B?s:new B(J.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},Kf,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 bM=Symbol.for("mcp.completable");function tC(t){return!!t&&typeof t=="object"&&bM in t}function xM(t){return t[bM]?.complete}var AM;(function(t){t.Completable="McpCompletable"})(AM||(AM={}));var SJ=/^[A-Za-z0-9._-]{1,128}$/;function OJ(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"),!SJ.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 TJ(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 aC(t){let e=OJ(t);return TJ(t,e.warnings),e.isValid}var Wp=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 Rp=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 Hp(e,n)}get experimental(){return this._experimental||(this._experimental={tasks:new Wp(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Ca(Uc)),this.server.assertCanSetRequestHandler(Ca(gs)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Uc,()=>({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=us(n.inputSchema);return a?nw(a,{strictUnions:!0,pipeStrategy:"input"}):kJ})(),annotations:n.annotations,execution:n.execution,_meta:n._meta};if(n.outputSchema){let a=us(n.outputSchema);a&&(i.outputSchema=nw(a,{strictUnions:!0,pipeStrategy:"output"}))}return i})})),this.server.setRequestHandler(gs,async(e,n)=>{try{let i=this._registeredTools[e.params.name];if(!i)throw new B(J.InvalidParams,`Tool ${e.params.name} not found`);if(!i.enabled)throw new B(J.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 B(J.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new B(J.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 B&&i.code===J.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=us(e.inputSchema)??e.inputSchema,s=await fc(r,n);if(!s.success){let o="error"in s?s.error:"Unknown error",l=wc(o);throw new B(J.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 B(J.InvalidParams,`Output validation error: Tool ${i} has an output schema but no structured content was provided`);let a=us(e.outputSchema),r=await fc(a,n.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=wc(s);throw new B(J.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,c=o.task,u=c.pollInterval??5e3;for(;c.status!=="completed"&&c.status!=="failed"&&c.status!=="cancelled";){await new Promise(h=>setTimeout(h,u));let p=await i.taskStore.getTask(l);if(!p)throw new B(J.InternalError,`Task ${l} not found during polling`);c=p}return await i.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Ca(Bc)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Bc,async e=>{switch(e.params.ref.type){case"ref/prompt":return RO(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return IO(e),this.handleResourceCompletion(e,e.params.ref);default:throw new B(J.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,n){let i=this._registeredPrompts[n.name];if(!i)throw new B(J.InvalidParams,`Prompt ${n.name} not found`);if(!i.enabled)throw new B(J.InvalidParams,`Prompt ${n.name} disabled`);if(!i.argsSchema)return Ol;let r=la(i.argsSchema)?.[e.params.argument.name];if(!tC(r))return Ol;let s=xM(r);if(!s)return Ol;let o=await s(e.params.argument.value,e.params.context);return PM(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 Ol;throw new B(J.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=i.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return Ol;let r=await a(e.params.argument.value,e.params.context);return PM(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Ca(Ic)),this.server.assertCanSetRequestHandler(Ca(zc)),this.server.assertCanSetRequestHandler(Ca(Dc)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Ic,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(zc,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([n,i])=>({name:n,uriTemplate:i.resourceTemplate.uriTemplate.toString(),...i.metadata}))})),this.server.setRequestHandler(Dc,async(e,n)=>{let i=new URL(e.params.uri),a=this._registeredResources[i.toString()];if(a){if(!a.enabled)throw new B(J.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 B(J.InvalidParams,`Resource ${i} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Ca(Gc)),this.server.assertCanSetRequestHandler(Ca(Nc)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Gc,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,n])=>({name:e,title:n.title,description:n.description,arguments:n.argsSchema?MJ(n.argsSchema):void 0}))})),this.server.setRequestHandler(Nc,async(e,n)=>{let i=this._registeredPrompts[e.params.name];if(!i)throw new B(J.InvalidParams,`Prompt ${e.params.name} not found`);if(!i.enabled)throw new B(J.InvalidParams,`Prompt ${e.params.name} disabled`);if(i.argsSchema){let a=us(i.argsSchema),r=await fc(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",c=wc(l);throw new B(J.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${c}`)}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:c=>{typeof c.name<"u"&&c.name!==e&&(delete this._registeredResourceTemplates[e],c.name&&(this._registeredResourceTemplates[c.name]=s)),typeof c.title<"u"&&(s.title=c.title),typeof c.template<"u"&&(s.resourceTemplate=c.template),typeof c.metadata<"u"&&(s.metadata=c.metadata),typeof c.callback<"u"&&(s.readCallback=c.callback),typeof c.enabled<"u"&&(s.enabled=c.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=i.uriTemplate.variableNames;return Array.isArray(o)&&o.some(c=>!!i.completeCallback(c))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,n,i,a,r){let s={title:n,description:i,argsSchema:a===void 0?void 0:tr(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=tr(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 c=l instanceof xc?l._def?.innerType:l;return tC(c)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,n,i,a,r,s,o,l,c){aC(e);let u={title:n,description:i,inputSchema:yM(a),outputSchema:yM(r),annotations:s,execution:o,_meta:l,handler:c,enabled:!0,disable:()=>u.update({enabled:!1}),enable:()=>u.update({enabled:!0}),remove:()=>u.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&aC(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=u)),typeof p.title<"u"&&(u.title=p.title),typeof p.description<"u"&&(u.description=p.description),typeof p.paramsSchema<"u"&&(u.inputSchema=tr(p.paramsSchema)),typeof p.outputSchema<"u"&&(u.outputSchema=tr(p.outputSchema)),typeof p.callback<"u"&&(u.handler=p.callback),typeof p.annotations<"u"&&(u.annotations=p.annotations),typeof p._meta<"u"&&(u._meta=p._meta),typeof p.enabled<"u"&&(u.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=u,this.setToolRequestHandlers(),this.sendToolListChanged(),u}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(rC(l))a=n.shift(),n.length>1&&typeof n[0]=="object"&&n[0]!==null&&!rC(n[0])&&(s=n.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(c=>typeof c=="object"&&c!==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:c}=n;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},c,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 kJ={type:"object",properties:{}};function jM(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function SM(t){return"_def"in t||"_zod"in t||jM(t)}function rC(t){return typeof t!="object"||t===null||SM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(jM)}function yM(t){if(t){if(rC(t))return tr(t);if(!SM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function MJ(t){let e=la(t);return e?Object.entries(e).map(([n,i])=>{let a=BS(i),r=LS(i);return{name:n,description:a,required:!r}}):[]}function Ca(t){let n=la(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=cs(n);if(typeof i=="string")return i;throw new Error("Schema method literal must be a string")}function PM(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Ol={completion:{values:[],hasMore:!1}};var sC=$r(require("node:process"),1);var EJ=10*1024*1024,Ip=class{constructor(e){this._maxBufferSize=e?.maxBufferSize??EJ}append(e){if((this._buffer?.length??0)+e.length>this._maxBufferSize)throw this.clear(),new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);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 n=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),qJ(n)}clear(){this._buffer=void 0}};function qJ(t){return TO.parse(JSON.parse(t))}function OM(t){return JSON.stringify(t)+` +`}var zp=class{constructor(e=sC.default.stdin,n=sC.default.stdout,i){this._stdin=e,this._stdout=n,this._started=!1,this._ondata=a=>{try{this._readBuffer.append(a),this.processReadBuffer()}catch(r){this.onerror?.(r),this.close().catch(()=>{})}},this._onerror=a=>{this.onerror?.(a)},this._readBuffer=new Ip({maxBufferSize:i?.maxBufferSize})}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(n=>{let i=OM(e);this._stdout.write(i)?n():this._stdout.once("drain",n)})}};var ku=$r(f1());var v1=require("node:child_process"),C1=$r(require("node:fs")),zy=$r(require("node:path"));var w1=12e4,Jne={flowFile:ee.string().min(1).describe("Path to the TypeScript flow file")},A1=t=>({config:{description:`Deploys a Genesys Cloud Architect flow from a TypeScript file. The file must export an async buildFlow(scripting) function that creates and saves the flow using the Architect Scripting SDK. The project's package.json must have "type": "module" for the ES module import to work.`,annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:Jne},handler:async({flowFile:e})=>{let n=zy.default.resolve(e);if(!C1.default.existsSync(n))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${n}`}]};let i=[t.deployScriptPath,"--flow-file",n];return new Promise(a=>{let r=[],s,o=!1,l=g=>{o||(o=!0,clearTimeout(u),a(g))},c=(0,v1.spawn)("node",i,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:zy.default.dirname(n),stdio:["ignore","pipe","pipe"]}),u=setTimeout(()=>{c.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${w1/1e3}s. Logs: ${r.join(` -`)}`}]})},d1);c.on("error",g=>{l({isError:!0,content:[{type:"text",text:`Failed to start deploy runner: ${g.message}`}]})});let p="";c.stdout.on("data",g=>{p+=g.toString();let d=p.split(` +`)}`}]})},w1);c.on("error",g=>{l({isError:!0,content:[{type:"text",text:`Failed to start deploy runner: ${g.message}`}]})});let p="";c.stdout.on("data",g=>{p+=g.toString();let d=p.split(` `);p=d.pop()??"";for(let m of d)if(m.trim())try{let w=JSON.parse(m);w.type==="log"?r.push(`[${w.level}] ${w.message}`):w.type==="result"&&(s=w)}catch{r.push(m)}});let h="";c.stderr.on("data",g=>{h+=g.toString()}),c.on("close",g=>{if(p.trim())try{let w=JSON.parse(p.trim());w.type==="result"?s=w:w.type==="log"&&r.push(`[${w.level}] ${w.message}`)}catch{p.trim()&&r.push(p.trim())}let d=h.split(` `).filter(w=>!w.includes("url.parse()")&&!w.includes("[DEP0169]")).join(` `).trim();d&&r.push(`[stderr] ${d}`);let m=r.length?` @@ -148,9 +148,9 @@ ${r.join(` Validation warnings: ${s.warnings.join(` `)}`),l({content:[{type:"text",text:w.join(` -`)+m}]})}else{let w=s?.error??`Deploy runner exited with code ${g}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${w}${m}`}]})}})})}});function Et(t){if(t===null||typeof t!="object")return{message:String(t)};let e="status"in t&&typeof t.status=="number"?t.status:void 0,n="code"in t&&typeof t.code=="string"&&t.code.length>0?t.code:void 0,i="message"in t&&typeof t.message=="string"&&t.message.length>0?t.message:void 0;return{status:e,code:n,message:i}}function ct(t){let{status:e,code:n,message:i}=Et(t),a=[];return e!==void 0?a.push(`HTTP ${e}${n?` (${n})`:""}`):n&&a.push(n),i&&a.push(i),a.length>0?a.join(": "):"Unknown error"}function no(t,e){return(t.name??"").toLowerCase()===e.toLowerCase()}function fh(t,e){return t.slice().sort((n,i)=>Number(no(i,e))-Number(no(n,e)))}var Dne=50,Gne=200;function Nne(t){return{id:t.id??"",name:t.name,type:t.type??"",publishedVersion:t.publishedVersion?.commitVersion??null,...t.description?{description:t.description}:{}}}var Une={name:te.string().min(1).describe("The flow name, or a portion of it, to search for. Matched case-insensitively against flow names, so a partial name like 'payment' finds 'Book_Payment'."),type:te.array(te.string()).optional().describe('Optional flow types to restrict the search to, e.g. ["inboundcall"], ["bot", "digitalbot"], ["workflow"]. Omit to search flows of every type.')},f1=({architectApi:t})=>({config:{description:"Finds Genesys Cloud Architect flows by name, resolving the human-readable name users know (e.g. 'Book_Payment') to the flow id every other flow tool requires. Returns each matching flow's id, name, type and published version. Matching is a case-insensitive search over flow names that accepts a portion of the name; flows whose name equals the query exactly are listed first. The returned id is accepted verbatim by flow_ir, flow_action, search_in_flow and flow_dependencies. A publishedVersion of null means the flow has never been published.",annotations:{title:"Find Flow",readOnlyHint:!0,destructiveHint:!1},inputSchema:Une},handler:async({name:e,type:n})=>{try{let i=[],a=0,r=1;for(;;){let c=await t.getFlows({name:e,pageSize:100,pageNumber:r,...n?.length?{type:n}:{}});if(c.entities&&i.push(...c.entities),a=c.total??a,!c.nextUri||i.length>=Gne)break;r++}a=Math.max(a,i.length);let s=fh(i,e).slice(0,Dne),o=[];if(s.length===0)o.push(`No flows matched "${e}". The search already accepts a portion of the name, so try a shorter fragment, or drop the type filter if one was given.`);else if(a>s.length){let c=`${a} flows matched; only ${s.length} are returned${no(s[0],e)?", exact name matches first":""}.`;i.length0?{notes:o}:{}};return{content:[{type:"text",text:JSON.stringify(l)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to search for flows: ${ct(i)}`}]}}}});var wh=200,w1=10;function v1(t){return t&&t!=="NONE"?t:void 0}function $ne(t){let e=v1(t.flowErrorReason),n=v1(t.flowWarningReason);return{executionId:t.id??"",flowId:t.flowId??null,flowName:t.flowName??null,flowType:t.flowType??null,flowVersion:t.flowVersion??null,conversationId:t.conversationId??null,...t.workitemId?{workitemId:t.workitemId}:{},startDateTime:t.startDateTime??null,endDateTime:t.endDateTime??null,...e?{flowErrorReason:e}:{},...n?{flowWarningReason:n}:{}}}function Bne(t,e){return(t.startDateTime??"").localeCompare(e.startDateTime??"")}async function Lne(t){try{return(await t.getFlowsInstancesSettingsExecutiondata()).enabled}catch{return}}var Fne={conversationId:te.string().min(1).optional().describe("The Genesys Cloud conversation id. Returns every flow instance that conversation ran, so a call that went through an inbound flow and then an in-queue flow yields two entries. Preferred filter: it is what the API indexes on."),flowId:te.string().min(1).optional().describe("The Architect flow id. Returns recent instances of that flow, whichever conversation ran them. Combine with conversationId to pick one flow out of a conversation."),onlyWithErrors:te.boolean().optional().describe("When true, only instances that ended with a flow error are returned (flowErrorReason is set). Applied to the instances the query fetched, so with a busy flow the errored runs beyond the API's 200-instance cap are not seen. Use it to find the runs worth inspecting with flow_execution_data.")},C1=({architectApi:t})=>({config:{description:`Finds the recorded executions (flow instances) of Genesys Cloud Architect flows, by conversation id and/or flow id. Returns each instance's executionId, flow id/name/type/version, conversationId, start and end times, and any flowErrorReason or flowWarningReason, oldest first. Use it to answer 'what did this conversation do' or 'has this flow been failing', then pass an executionId to flow_execution_data for the action-by-action log. Only the last ${w1} days are retained, the API cannot filter by date, and at most ${wh} instances are returned per query, so prefer conversationId. A run is listed only once it has ended. test_bot_flow runs have no conversation id, so find them by flowId or pass their sessionId straight to flow_execution_data.`,annotations:{title:"Find Flow Execution",readOnlyHint:!0,destructiveHint:!1},inputSchema:Fne},handler:async({conversationId:e,flowId:n,onlyWithErrors:i})=>{if(!e&&!n)return{isError:!0,content:[{type:"text",text:"Provide a conversationId, a flowId, or both."}]};let a=[];e&&a.push({key:"ConversationId",operator:"eq",value:e}),n&&a.push({key:"FlowId",operator:"eq",value:n});try{let r=await t.postFlowsInstancesQuery({query:[{and:a}]},{pageSize:wh}),s=(r.entities??[]).map($ne),o=(i?s.filter(p=>p.flowErrorReason!==void 0):s).sort(Bne),l=Math.max(r.total??0,s.length),c=[];i&&o.length===0&&s.length>0?c.push(`None of the ${s.length} instance(s) fetched ended with a flow error. Drop onlyWithErrors to see them.`):o.length===0?await Lne(t)===!1?c.push("No instances matched, and execution data storage is disabled for this org (Architect > Settings > Execution data), so none are being recorded."):c.push(`No instances matched. A run is listed only after it ends; execution data is kept for ${w1} days and is only captured for flows published after storage was enabled (republish older flows); and test_bot_flow runs have no conversation id, so search for them by flowId. Check the id, or query by flowId to see whether the flow records anything at all.`):l>s.length?c.push(`${l} instances matched but only ${s.length} were fetched. Narrow the query with a conversationId.`):s.length>=wh&&c.push(`The API caps results at ${wh}; older instances may exist.`);let u={query:{...e?{conversationId:e}:{},...n?{flowId:n}:{},...i?{onlyWithErrors:i}:{}},executions:o,total:l,...c.length>0?{notes:c}:{}};return{content:[{type:"text",text:JSON.stringify(u)}]}}catch(r){let{status:s}=Et(r),o=s===403?" The OAuth client needs the 'Architect > Flow Instance > Search' permission.":s===400?" The query was rejected; check that the conversationId and flowId are well-formed Genesys Cloud ids.":"";return{isError:!0,content:[{type:"text",text:`Failed to search for flow executions: ${ct(r)}${o}`}]}}}});var Vne=50,Jne=200;function Kne(t){return`*${t.trim().replace(/^\*+|\*+$/g,"")}*`}function vh(t){if(t?.id)return{id:t.id,...t.name?{name:t.name}:{}}}function Zne(t){let e=vh(t.queueFlow),n=vh(t.emailInQueueFlow),i=vh(t.messageInQueueFlow);return{id:t.id??"",name:t.name??"",division:vh(t.division)??null,memberCount:t.memberCount??null,joinedMemberCount:t.joinedMemberCount??null,dateModified:t.dateModified??null,...t.description?{description:t.description}:{},...e?{queueFlow:e}:{},...n?{emailInQueueFlow:n}:{},...i?{messageInQueueFlow:i}:{}}}var Qne={name:te.string().min(1).describe("The queue name, or a portion of it, to search for. Matched case-insensitively against queue names, so a partial name like 'sales' finds 'UK_Sales'. Wildcards are added automatically; do not include asterisks.")},A1=({routingApi:t})=>({config:{description:"Finds Genesys Cloud routing queues by name, resolving the human-readable name users know (e.g. 'Sales') to the queue's id and exact name. Returns each matching queue's id, name, division (id and name), memberCount (agents configured on the queue), joinedMemberCount (agents currently joined and taking work), dateModified and, when configured, its in-queue flows (queueFlow for calls, emailInQueueFlow, messageInQueueFlow). Matching is a case-insensitive search that accepts a portion of the name; queues whose name equals the query exactly are listed first. When several similarly named queues match, dateModified and the member counts help tell a live queue from an abandoned one. Use the returned exact name as the search_in_flow query to find the actions in a flow that transfer to the queue. The in-queue flow ids are accepted verbatim by flow_ir, flow_action, search_in_flow and flow_dependencies.",annotations:{title:"Find Queue",readOnlyHint:!0,destructiveHint:!1},inputSchema:Qne},handler:async({name:e})=>{try{let n=[],i=Kne(e),a=0,r=1;for(;;){let c=await t.getRoutingQueues({name:i,pageSize:100,pageNumber:r});if(c.entities&&n.push(...c.entities),a=c.total??a,!c.nextUri||n.length>=Jne)break;r++}a=Math.max(a,n.length);let s=fh(n,e).slice(0,Vne),o=[];if(s.length===0)o.push(`No queues matched "${e}". The search already accepts a portion of the name, so try a shorter fragment.`);else if(a>s.length){let c=`${a} queues matched; only ${s.length} are returned${no(s[0],e)?", exact name matches first":""}.`;n.length0?{notes:o}:{}};return{content:[{type:"text",text:JSON.stringify(l)}]}}catch(n){let i=Et(n).status===403?" The OAuth client needs the 'Routing > Queue > View' permission.":"";return{isError:!0,content:[{type:"text",text:`Failed to search for queues: ${ct(n)}${i}`}]}}}});var Yne=Ci;(function(t,e){let n=Ci,i=t();for(;;)try{if(-parseInt(n(224,"aGl^"))/1+-parseInt(n(226,"fP8A"))/2+-parseInt(n(230,"*Jz8"))/3*(-parseInt(n(229,"YKKw"))/4)+parseInt(n(231,"qVUr"))/5+-parseInt(n(220,"iE3t"))/6+-parseInt(n(234,"9INm"))/7*(-parseInt(n(237,"hqdc"))/8)+parseInt(n(235,"aGl^"))/9===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Ch,280123);function Ci(t,e){t=t-220;let n=Ch(),i=n[t];if(Ci.xvPbyB===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;ht+Yne(227,"$nkS");function Ch(){let t=["WOn2W5xcTw/cSCoWW5ddIa","WQaGW5tcKaGFWQddRmoeWO8YW7C","WQG7WOzzWOvchCobWRhcT8k6WQrX","m1jyW69umv7dGqfHWOmuW5e","W4XZoYn/W4Ws","W4HsW4RcTNZdSmkGWPnHW5hcHW3cSa","W6HdjSojWRFdMSooW490","t2dcUglcVmkJWQ3cLLBcNW","WOldPxrlWO/cVMXMq8oJpSoveq","WRxcJbJcJ8k1WPD9qCoWWPBcPMtdQG","WOLEWPNcISoZW4HYW7/cNSkW","WO/dO8kelGHXsG","WQuOW57cKqCCW6ldJSo+WOOaW7RcPG","ub/dISo/ahlcVr5BWPNdRhDk","WQZdHmofpCkxaSk6EetdVWVdKGe","W7xdUCoAW6vsACoM","xmkWpuXolthcKZ/dNcCVW7S","W6b1f099mKJcM3iDWRddRa","rWiUWPuaCLlcRmoKWP/cIgNdTq"];return Ch=function(){return t},Ch()}var ka=(t,e)=>t+"::"+e;(function(t,e){let n=sn,i=t();for(;;)try{if(parseInt(n(383,"jP%N"))/1*(parseInt(n(399,"5H9f"))/2)+parseInt(n(501,"0rXo"))/3*(-parseInt(n(401,"Hz0W"))/4)+parseInt(n(423,"Hz0W"))/5*(-parseInt(n(510,"EMx@"))/6)+-parseInt(n(412,"L*Ud"))/7*(-parseInt(n(405,"w$ck"))/8)+-parseInt(n(483,"eM5c"))/9*(parseInt(n(441,"dQmY"))/10)+-parseInt(n(473,"[8UY"))/11+-parseInt(n(370,"hnuZ"))/12*(-parseInt(n(311,"dQmY"))/13)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Ah,426937);function sn(t,e){t=t-309;let n=Ah(),i=n[t];if(sn.DYlBxB===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h{let s=e;if(!n[s(495,"[8UY")](io,a)||n[s(459,"7yyp")](Object[s(390,"LxR8")](a)[s(389,"Iyrj")],0)){i[s(326,"qSJH")]({index:r,kind:n[s(499,"4J1r")],value:a});return}for(let[o,l]of Object[s(419,"dQmY")](a))if(n[s(329,"0vgR")](s(346,"qN4z"),n[s(452,"dQmY")]))i[s(466,"0rXo")](io(l)?{...l,index:r,kind:o}:{index:r,kind:o,value:l});else{if(!_0x2ec076(_0xd64bc3[s(500,"#xX5")]))return _0x3111c0;let c=_0x5597ba[s(440,"EMx@")][s(491,"[8UY")];if(typeof c!==s(318,"2yLq"))return _0x5828fa;let u=_0x5261be[s(460,"HCb$")](c);if(!u)return _0x2bbf78;let p={index:u[s(365,"qN4z")],...typeof u[s(471,"KSV[")]===s(467,"E8BW")?{actionId:u[s(446,"fCR2")]}:{},...typeof u[s(350,"R1KI")]===s(505,"hnuZ")?{actionName:u[s(496,"^(s3")]}:{}};return{..._0x5e9605,relatedAction:p}}}),i}function eie(t){let e=sn;if(!Array[e(393,"qSJH")](t[e(448,"z6O^")]))return 0;let n=0;for(let i of t[e(407,"eiFV")])io(i)&&io(i[e(388,"K&7W")])&&i[e(517,"qSJH")][e(447,"B6qy")]&&n++;return n}function nie(t){let e=sn,n={cmOJH:function(a,r){return a===r},vTNQV:e(494,"W#ne")},i=new Map;for(let a of t)typeof a[e(338,"Nqq8")]===e(505,"hnuZ")&&typeof a[e(413,"MY6q")]===n[e(361,"GfrY")]&&i[e(426,"EMx@")](a[e(438,"6ysH")],a);return t[e(330,"^iMM")](a=>{let r=e;if(!io(a[r(502,"qSJH")]))return a;let s=a[r(355,"4J1r")][r(457,"Iyrj")];if(typeof s!==r(333,"eM5c"))return a;let o=i[r(334,"0rXo")](s);if(!o)return a;let l={index:o[r(492,"z6O^")],...n[r(315,"4J1r")](typeof o[r(436,"qN4z")],n[r(454,"W^OT")])?{actionId:o[r(515,"R1KI")]}:{},...typeof o[r(335,"Hz0W")]===n[r(313,"dWBv")]?{actionName:o[r(424,"hnuZ")]}:{}};return{...a,relatedAction:l}})}function iie(t){let e=sn,n={eTadv:function(l,c){return l===c},ZDKIl:e(468,"jP%N"),kWlrN:e(397,"B6qy"),QcTxy:e(425,"W#ne"),WyTSw:e(409,"lA8O")},i={},a=new Map,r=[],s=new Map;for(let l of t){if(n[e(327,"2yLq")](n[e(377,"2yLq")],n[e(520,"R1KI")]))return _0x7f7213[e(418,"z6O^")](_0x57b9cd[e(411,"jP%N")]),{..._0xf35b9,ir:null};{if(i[l[e(349,"jP%N")]]=(i[l[e(493,"Iyrj")]]??0)+1,l[e(503,"MJxN")]===e(369,"hi%I")&&l[e(384,"0vgR")]){let p=l[e(347,"Hz0W")];if(n[e(351,"R1KI")](typeof p[e(472,"4J1r")],e(391,"dWBv"))){let h=s[e(477,"6ysH")](p[e(319,"qSJH")]);if(h)h[e(321,"4J1r")]++;else if(n[e(408,"B6qy")]===e(484,"Wrzb")){if(!_0x470b02[e(432,"fCR2")](_0x9a7a1d[e(514,"E&pm")]))return 0;let g=0;for(let d of _0x46399e[e(456,"Hz0W")])_0x4b58c6(d)&&_0x29a349(d[e(439,"eiFV")])&&d[e(394,"2yLq")][e(376,"7yyp")]&&g++;return g}else s[e(415,"h685")](p[e(455,"JkKi")],{index:p[e(518,"Hz0W")],actionId:p[e(309,"^(s3")],...p[e(435,"9aZr")]?{actionName:p[e(461,"5H9f")]}:{},iterations:1})}}if(typeof l[e(515,"R1KI")]!==e(417,"qN4z"))continue;let c=eie(l);c>1&&r[e(475,"GfrY")]({index:l[e(442,"7yyp")],actionId:l[e(450,"hi%I")],...typeof l[e(342,"0rXo")]===n[e(410,"[8UY")]?{actionName:l[e(404,"Iyrj")]}:{},participantTurns:c});let u=a[e(368,"S6OS")](l[e(322,"dWBv")]);u?(u[e(522,"eiFV")]++,u[e(434,"qN4z")][e(310,"Qtd0")](l[e(526,"dWBv")])):a[e(508,"Hz0W")](l[e(373,"6ysH")],{actionId:l[e(375,"lA8O")],...typeof l[e(451,"eiFV")]===n[e(356,"W^OT")]?{actionName:l[e(470,"Wrzb")]}:{},executions:1,eventIndexes:[l[e(374,"W^OT")]]})}}let o=[...a[e(380,"JkKi")]()][e(498,"4J1r")](l=>l[e(396,"R1KI")]>1)[e(464,"hi%I")]((l,c)=>c[e(344,"MJxN")]-l[e(481,"z6O^")]);return{eventCount:t[e(422,"Qtd0")],eventKinds:i,repeatedActions:o,loops:[...s[e(317,"^iMM")]()],asksWithRetries:r}}function Ry(t){let e=sn,n={xlZJH:function(a,r){return a(r)},OACIO:function(a,r){return a(r)}},i=nie(n[e(478,"dWBv")](Xne,t));return{events:i,summary:n[e(509,"0vgR")](iie,i)}}function Iy(t,e){let n=sn,i={NYpzL:n(414,"E&pm"),xylGK:function(a,r){return a(r)},URZVL:function(a,r){return a===r},mDLTC:function(a,r){return a!==r}};for(let a of t)if(Array[n(469,"MJxN")](a[n(357,"E&pm")]))for(let r of a[n(474,"Qtd0")]){if(i[n(479,"L*Ud")]!==n(488,"2yLq"))return _0x1f1383[n(379,"Hz0W")](_0xd8051c),{..._0x5c77e3,ir:null};if(i[n(504,"MJxN")](io,r)&&i[n(314,"MY6q")](typeof r[n(512,"eM5c")],n(417,"qN4z"))&&r[n(341,"5H9f")][n(433,"E8BW")](e)&&i[n(363,"0rXo")](r[n(362,"B6qy")],null)&&i[n(523,"HCb$")](r[n(364,"KSV[")],void 0))return r[n(378,"z6O^")]}}function Ah(){let t=["wweUWRTFW67dGdtcRG","pdVcMSkM","WQ5Ae2Cdrde","W5z1WQKdEMFcKGG","fSkJegZdRq","WOLmwbHN","W7iXW6iaAW","WQRdUSodtmkK","cmoYWRe5WOW","WPHEWP0+W5SEW6tcGa","FSk2vSo9WQCh","g8o9fW","WR0KWPzWWOxdNSkmWPJcQq","vY1wm8kCxCooWPJcMSkqs8k+nq","W7ftWRu","DvOrW5/dGa","WOyIWPWeCL/cStq","WQ5hnNaj","xqfUW73dONzsW7C","WOPjWOa+W6irW7FcMmowW4xcNdhcGs9a","WR1BW67dIc8","tdPuW4a+","W7pdICoi","W6PtWQNcH8o/WOy","W6/cO8kDdmo1WOJdICk/WOrbjq","mmkOh13cMbe","oCksiI7cTSoremkn","EmkYsCo3WPOgW5zarGFdTCkqCW","A8ohiW","WRSEqa","e8ofW7m+WOO","W5CXzwW","W6BdPXtcGmoZW5O","WQFcLSofma","nCo7W5y5WQldPG","WQzhEmotW6a5uW","sCkZDqjVW55f","WPnQW5FdRW","WRyBrSoOWPu","W5etrGpdLM/cSHpdUmkt","WPzzFs9o","EmogjHVcISoLemk1Aq","CmoKxWhdGGvKWPHaW73cIa","W7/dJmoC","WQdcNCkEWQ9phmkqW6KpW7zvgKK","WQhcNmojW4aRE8okW7m","hCo7f8oOWO1WW5ZdUa","W6VdOq7cJSoOW5X7x8oQyG","EsVcVteWaXhcQgHmEmoCW7q","W5zXW5fEkahdIcOjW6lcL8kDdq","WR3dPIJdRSkdWQbrcCoT","WQ5oybv7","tXzOW73dO38","WQlcQmofC8kj","A8oamXhcJCoQo8k9","WR8hkmkftCkaW7ye","De1CWPXXBmo/sMJcHNO","xumSWR5X","WQbmzW","WQ0dW7HVWPa","eSoOWQC1WPPo","wZ9C","rCkLpCozWPFdO1W","W77dOWNcJmooW5y","WPHAWOq2W5WYW7FcJCorW4xcNq","vXTwj3SE","WQRcLmkzW4WvxCo6W7e5","b34BACoga8kWWOpcKSkG","WQlcJCk1gCkT","WQKFua","W44XDNRdNW","W4bFWPa","WQJdUSoCuSkpWPRdGmkV","W70drSoRWQlcRq","CffD","oWBdJmkTW4bMuW","dh/cLgVcImkBvaS","bmoQWRaYWObGWOJdImobW5jmra","a09cWPJdVmoPECksySkV","amo/WQe1WPThWQ/dIa","W6WbW5W9rHG","WOi5WO0oAexcKt8cW77cMW","WQZdQZ/dOW","WRKvsSo5WPZcU8kR","eCo7ECksW47dGwRcKf7cKa8","WOvvWOS2W4O","W73dMmoyW6ykwSo4W4ypW4z5lq","eCoWbeKTW7H5wLLtWOu","WRNdLc3cN8oVW7bC","mXBdUCk2W51Py8ks","WPLFwWbsWRSrBqddICkThqT5W6u","xYnDW5yUWRranxm","iSk/gv3cMrHuWPr4W4S","WRKXWOD3WP7dVmkQWPm","WRNdVtNdPmkzWRP2b8oUWQq","C8kblCobWPK","dCkwlG","WRf9heqN","W7vCWQhcL8oI","W7FdLCojW7ukwSobW4Gv","W6/dUH/cHmoYW4zCuCoPtSkH","ceGmDxOGeCoufSkO","WR58WRyFW7m","d3zX","iSk/gv3cMrHoWOXLW4S","W4a5DCoQWR0","W7pdJSoyW78qqmoHW4m","WQS9WOfQ","WQ4Bv8oMWRFcOSkYdW","W68aW508","gMxcGNhcSCkv","BCotadZcQW","W45jWQxcSSkEWOVdMG","EfGhW5pdG8ops8kUeCkk","WR3dUmoBumkUWPxdPmkU","ehJcH8kdWOhdNSogW7e","W4ddOCkJf8ooW5i5eLGBW7/cUmoj","tr9kkw4ud8oufa","emkclvu","WPupW5pdT8ovW57cL8oonuH0WRfY","WOaKWPW","pSoJW74AWOq","W4bQgCkrzG","qYVdI8oFW5JdUCoyW7agir4","xYnDW5yUWRranxpcGG","W6VdOq7cJSoOW5X8wG","qvZcJffIvSozWOPbWPm","AMm9W67dUa","ESkuqr5Z","W6/dN0Kmf8oag8odW6S5W61NW54","imoGW5yvWQ3dOSkU","WPvCW5xdRqW","W6BdJmoFW70m","uSkLvrn1W55ECgK","WPdcQCo0q8klWPnLn0q0W4G","uZvCW5aJ","W6hdQXtcGW","WOxcVCk3fSk6FW","WQFcHCo2v8kP","WQipW6HJWOZdVWhdL1KV","d8o9WRG5","f3lcN8kEWOVdGG","ouRcLCkpWOm","W60ywSo2WQNcSSkC","WQWJW7KSqd0+","q8kVwGr4W4Di","W4XtWORcPa","W59dWOJcH8kN","fwKDACohcG","WRPAuSopW70Vra","kN3dVM9Mwq","W6hdImoy","rCkwzSoFWQe","W6Hkhmk4W4/cISkid8kulGa","ogRdUg9Nua","baVdIG12ySohWOP+WPGvWPa","WRNdVtNdPmkzWRPSh8oZWQq","sNG5WRflW7JdHt7cSW","W5uivWNdJhxcKHG","e8oTf8oXWPDQW4xdVrZdN8oJpq","vmk1rH4","W7VdG8oiW7mh","W4CEqapdHMJcQbpdPmkt","W588tXldRq","WQLgnNac","WR3dPIJdRSkdWQbrcCoTWRi","bvDjbKi","s8kIj8op","dNWC","l8oHW4a1WRq","WQipW6HJWOZdVWBdKG","sWTlka","eCo9CmoIWQNdKM3cHeK","WQpcM8kvW58OESoQW7u5","mmoBW6ObWPO","rgDJWQLi","eNBcVmkGWQy","aKWozSor","wXBcKc1irG","WPrRW5FdQc1v","sCkUubvL","ECowjbVcH8o3aCk2FSox","gg/cLSkyWO/dHmoMW7OpgW","j8oSW5a5WQpdR8kpuq","W6Ksqa","vmkHrXTuW5S","W4iNy2VdOmoW","umk1rXG","WOjlW4tdPtu","WOeOWOqzEem","wmkqFmoAWQ8","qbBcJa","tbtcIdfcw8kZW4W","bCkaW61znha","ar7dIG15zW","W7GqW5O","W7pdJSoyW78qqmoMW4ywW4S","WPnmvGHU","d8oSaSo1WODxW7e","c8kbW7nvogPKW7u","lSk9hq","gCkwW6zimK1j","nCk9h13cLXrSWOHgW4/cOWG","W74wW5O9rXezWR7cIde","eWNdJa14BSo/WPzaWPW","W4jcWOhcO8kzWP7dISoJkf8","WRZdJYZdQ8ko","l8osWPq0WOu","W6ddImoaW7Cls8omW6yyW5PzjL4","WPtcSSoLsCkrWOLyivOy","yCokkrW","W5uivWNdJhxcLr3dU8kf","W5e/qGtdLq","CYFcV1XJrhFcVfK","EHDmcfG","W5jXW5PAlqtdJrOEW5hcRmkHeW","eNtcNCkEWOVdImo7","WPbqbKyg"];return Ah=function(){return t},Ah()}function zy(t,e){let n=sn,i={dQafx:function(p,h){return p===h},UJWnF:n(382,"5H9f"),AitHW:function(p,h,g){return p(h,g)},muaxP:function(p,h){return p(h)}},a=new Map(e[n(521,"W^OT")][n(498,"4J1r")](p=>p[n(524,"dQmY")]===n(507,"w$ck"))[n(371,"JkKi")](p=>[p.id,p])),r=new Map(e[n(489,"Hz0W")][n(400,"Hz0W")](p=>[p.id,p])),s=new Set,o=new Set,l=new Set,c=t[n(339,"5H9f")](p=>{let h=n;if(typeof p[h(403,"S6OS")]===h(511,"w$ck")){s[h(386,"EMx@")](p[h(463,"Hz0W")]);let d=a[h(323,"#xX5")](p[h(482,"Iyrj")]);if(!d)return o[h(431,"MY6q")](p[h(331,"^iMM")]),{...p,ir:null};let m={nodeId:d.id,...d[h(513,"eiFV")]?{actionType:d[h(449,"5H9f")]}:{},taskId:d[h(420,"Iyrj")],taskName:d[h(429,"KSV[")],terminal:d[h(366,"7yyp")],reachable:d[h(398,"jP%N")],successors:d[h(519,"R1KI")]};if(i[h(316,"hnuZ")](typeof p[h(443,"Hz0W")],i[h(387,"dWBv")])){let w=i[h(353,"Qtd0")](ka,d.id,p[h(516,"S6OS")]),f=d[h(320,"jP%N")][h(358,"BHte")](A=>A.id===w);m[h(421,"7yyp")]={nodeId:w,...f?.[h(395,"EMx@")]?{label:f[h(372,"Wrzb")]}:{},inIr:f!==void 0}}return{...p,ir:m}}let g=i[h(345,"eiFV")](typeof p[h(340,"Nqq8")],h(437,"0rXo"))?p[h(337,"S6OS")]:typeof p[h(324,"qSJH")]===h(430,"#xX5")?p[h(367,"0vgR")]:void 0;if(g!==void 0){let d=r[h(428,"MJxN")](g);return d?{...p,ir:{nodeId:i[h(427,"K&7W")](pt,d.id),taskId:d.id,taskName:d[h(497,"qN4z")]}}:(l[h(385,"jP%N")](g),{...p,ir:null})}return p}),u=e[n(416,"^(s3")][n(328,"6ysH")](p=>p[n(524,"dQmY")]===n(325,"K&7W")&&!s[n(525,"hnuZ")](p.id))[n(453,"GfrY")](p=>({id:p.id,label:p[n(336,"B6qy")],...p[n(348,"[8UY")]?{actionType:p[n(343,"eM5c")]}:{},taskName:p[n(465,"EMx@")],reachable:p[n(490,"qSJH")]}));return{events:c,unmatchedActionIds:[...o],unmatchedStateIds:[...l],actionsNotExecuted:u}}function bh(){let t=["tvRdS8oT","W4dcK8knDSkNWRiM","CCk+hcnXiSofW5hdNq","cvNcLh7cUWOQWOumDbWcwq","W4SQWOTJeGfXqNpcNLxcHfi","WPFdPMVdM8klteG7","WOBdO3/dLCk2","CwxdPSk+WOK","kmofEx0hv23cHCosWPBcRGW","F8kdlc1d","faJcV8kVWRCSW4NdQHxdPgzmWQi","Dmoxn8oU","W57dUSoK","W6tdOxFdQHG","WPddQ8kN","asHSW5HpW6RcK8kAE8kPi1m","WPddOMW","W43dVSoJW57dR8oj","jmocWRuxWPq","WQXcWR4","WPtcSCkcxCk4","oLZdLmopW6GydCoSf24CWPC","DmoaWQLV","W6BdKmkx","WQPdWQ4","jCo0WRxcRmol","W7mtW7TQx2W9W7H+lcVdGW","W6pcJCoZ","zmkqoYn4cG","WPFcP8kPC8kH","AehdTmkcWRa","WP7cOSkpvq","W6vei8kOn3b1WPNdMSkhW7S","nmoVw3aozSkzW7hdLSogWP9NW40","mYdcJ8kJvCofjH4","W7BcMSoOWRm","l8o5WRBcVCoQWRyB","umoKWQmbW4m7W4y","rhuTWOeqWRBcPmk8","iSo8WRNcRq","W6dcNCo0WRy","cG11W5xcUmkhW7O","yCk6hcTmoCorW4ddHSoCWP0","WQrHySowWPO","WPhdOM3dG8kKt0K7W4ddVCk7pKG5hW","x8orWONdICoKCSkr","wsfj","W77dUa0","j8oLkG","faJcSSkSWRqVW4FdUJ7dV2LqWRC","WO/dPNRdLCkP","jCoFWRuxWPu","WQmEW4lcV8kHbuu","WORdSdDmiG","WP/cTCku","eaVcSSkTWRiPW47dMZ7dT0PCWRu","x2CwWQCm","WQTCz0y","WOZdTxZdLCk3","BK/dOW","W7Dapmk+igO","WPJdVmk3W4ddPa","nSkxWRWBo1b8wq","W7a1W67cVmkRhfxdHmkeW4i","WQPeWR42bJSIW5nNiG","iCkCbq","fSosWRCF","WPKeWPJcHwK","CmobW7PbqqmMB8ovCmonfCoy","tSk6dW","WPhdVmk8W4G","CSkRWQe","pvddN8oiW68DA8oekgyYWPuX","W5/dRCo/W5G","WOantW","mmkgcsjvp8oW","W4/dT8ocWQRcSxBdHHTgW4jR","lSoVoLPb","hCozWOG2W6C","W703W7JcSmkO","W7/cK8oI","lmovWQu","WPeox8kvW6RcICkKlGS","WRDiDKSp","FSkNWRTR","WR9cWRGYadSxW4y","WQnYDq","nCkhW6GWxsuuCmorjSkZWRKJ","W4xdQ8osWR3cUG","lSoWWQm","WOunta","vMiWWOe","D8kupa","w8kZfmocW7JdMYlcRq","E8oQWPe","W7hdVaO","W7ZcG8oLWPK","k8kgBSkZWRpcQSkRWPbuWPy8jsy"];return bh=function(){return t},bh()}(function(t,e){let n=Ai,i=t();for(;;)try{if(-parseInt(n(281,"A0u7"))/1+-parseInt(n(312,"d0^)"))/2*(-parseInt(n(268,"$cbr"))/3)+parseInt(n(293,"syD$"))/4+-parseInt(n(335,"syD$"))/5*(parseInt(n(263,"IQ#M"))/6)+parseInt(n(328,"KMPv"))/7*(parseInt(n(305,"%JMY"))/8)+parseInt(n(264,"Efp4"))/9+-parseInt(n(332,"A0u7"))/10===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(bh,208402);function b1(t,e,n,i){let a=Ai,r={GAXvj:function(m,w){return m!==w},owIKu:a(267,"6*Yk")},s=new Set(e[a(342,"#6vq")][a(350,"l[ga")](m=>m[a(291,"NCCl")]+" "+m.to)),o=new Map,l=new Map,c=new Map,u=new Map;for(let m of t[a(290,"6*Yk")][a(358,"7vJM")]())o[a(329,"l4yr")](m,[]),l[a(340,"ZT4E")](m,new Set),c[a(276,"%KC7")](m,[]),u[a(287,"874T")](m,new Set);for(let m of t[a(266,"%KC7")]){let w=s[a(325,"ah1P")](m[a(330,"xKGe")]+" "+m.to),f=o[a(274,"xKGe")](m.to);if(f){let b=m[a(295,"874T")]+" "+(m[a(343,"#h]L")]??"")+" "+w,x=l[a(355,"A)an")](m.to);x&&!x[a(354,"ekzM")](b)&&(x[a(284,"Cu3(")](b),f[a(300,"874T")]({id:m[a(351,"A(UC")],label:m[a(285,"w5j#")],backEdge:w}))}let A=c[a(314,"NCCl")](m[a(330,"xKGe")]);if(A){let b=m.to+" "+(m[a(310,"%KC7")]??"")+" "+w,x=u[a(308,"^tWw")](m[a(333,"pcg!")]);x&&!x[a(307,"A)an")](b)&&(x[a(306,"Snah")](b),A[a(282,"*(YD")]({id:m.to,label:m[a(280,"NCCl")],backEdge:w}))}}let p=-1;for(let m of e[a(269,"$cbr")][a(320,"gR)9")]())if(r[a(338,"9Q]Q")](r[a(289,"NCCl")],r[a(316,"A(UC")])){let w=_0x174721[a(313,"psGd")][a(346,"#)Ez")](_0x4f5a06),f=w?_0x598e7a[a(318,"%KC7")][a(279,"Cu3(")](_0xd1afec):_0xdf0143++;_0x32e236[a(317,"#h]L")]({id:_0x106e68,kind:_0x42486b[a(344,"7dxS")],actionType:_0x26994e[a(323,"d0^)")],label:_0x58585c[a(339,"d0^)")],description:_0x3eb73d[a(302,"syD$")],predecessors:_0x4a2077[a(283,"tIoe")](_0xab6f3a)??[],successors:_0x1b3bab[a(272,"pcg!")](_0x514e2f)??[],order:f,taskId:_0x4ad2eb[a(288,"$cbr")],taskName:_0x10cde3[a(265,"%KC7")],reachable:w,terminal:_0x429bd9[a(345,"Cu3(")]})}else m>p&&(p=m);let h=p+1,g=[];for(let[m,w]of t[a(337,"^tWw")]){let f=e[a(348,"MG2a")][a(334,"l[ga")](m),A=f?e[a(303,"#)Ez")][a(352,"$cbr")](m):h++;g[a(356,"ZT4E")]({id:m,kind:w[a(299,"w5j#")],actionType:w[a(324,"Cu3(")],label:w[a(327,"pM0e")],description:w[a(292,"gR)9")],predecessors:o[a(331,"7dxS")](m)??[],successors:c[a(349,"w5j#")](m)??[],order:A,taskId:w[a(277,"pcg!")],taskName:w[a(322,"KMPv")],reachable:f,terminal:w[a(298,"A(UC")]})}g[a(326,"]x1E")]((m,w)=>m[a(321,"xKGe")]-w[a(278,"VqTH")]);let d=n[a(360,"syD$")][a(296,"w5j#")](m=>{let w=a,f=n[w(273,"*M4V")][w(341,"VqTH")](m);return f?[{id:m,name:f[w(271,"U9vv")],reusable:n[w(304,"%KC7")][w(319,"6*Yk")](m)}]:[]});return{flowName:n[a(353,"l4yr")],flowType:n[a(294,"y&a1")],entryTaskId:n[a(336,"MG2a")],reachabilityIsComplete:i,tasks:d,nodes:g}}function Ai(t,e){t=t-263;let n=bh(),i=n[t];if(Ai.znkCfw===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h0?i:void 0}function qt(t,e){for(let n of e){let i=_r(t,n);if(i!==void 0)return i}}function x1(t){let e=Rn,n={lxnGV:e(291,"fPhz"),VZqVk:function(s,o){return s===o},MHMib:e(370,"0Lad"),ZlFuE:function(s,o){return s===o}},i=t[e(358,"9p5&")];if(i==null||typeof i!==n[e(268,"eI6O")])return;let{text:a,type:r}=i;if(n[e(256,"U&AD")](typeof a,e(345,"p]xl"))&&a[e(355,"eI6O")]()[e(297,"7n)4")]>0)return n[e(357,"0Lad")]===e(312,"(9GF")?a:_0x148013;if(n[e(285,"eI6O")](typeof r,e(372,"XO8H"))&&r[e(334,"LwJ%")]>0)return r}function Dy(t,e){let n=Rn,i=t[n(361,"x9yy")](a=>a[n(327,"QH7b")]===e);return i?(i[n(350,"E8l1")]=!0,t):[{outputId:e,label:Gy(e),synthetic:!0,terminal:!0},...t]}var bu={isTerminal:()=>!0,outputs:()=>[]},y1={isTerminal:()=>!0,describe:t=>qt(t,[ke(381,"(9GF"),ke(351,"p]xl"),ke(337,"#sGp"),ke(347,"#sGp"),ke(344,"&fy9"),ke(301,"%B@G"),ke(323,"^eh#"),ke(306,"^b[q")]),outputs:t=>Dy(Hr(t)[ke(310,"0Lad")](Wr),ke(324,"iM)p"))},tie={isTerminal:()=>!1,outputs:t=>{let e=ke,n={IjSsO:function(r,s){return r!==s},woygd:e(303,"Gd1D"),tXMgr:function(r,s,o){return r(s,o)},duYiW:function(r,s){return r===s},lyAdm:e(262,"ia!E"),QIwHT:function(r,s){return r>s}},i=t[e(326,"d]kj")];if(!i||n[e(290,"U&AD")](typeof i,e(279,"Y]7V")))return n[e(364,"J0U5")]!==e(264,"LwJ%")?[]:_0x54a9d7+e(267,"1%8s")+_0x5a70d8;let a=n[e(333,"^b[q")](Wr,i,0);return a[e(383,"(9GF")]=e(378,"LwJ%"),!(n[e(282,"wqVc")](typeof i[e(343,"(9GF")],n[e(302,"%B@G")])&&n[e(353,"LwJ%")](i[e(258,"wqVc")][e(296,"Ty&P")],0))&&(a[e(265,"gS7Z")]=e(270,"d]kj")),[a]}},aie={describe:()=>ke(266,"ia(N"),outputs:()=>[]},rie={outputs:t=>Dy(Hr(t)[ke(274,"Us2H")](Wr),ke(374,"1]tn"))},sie={isTerminal:()=>!0,describe:t=>qt(t,[ke(368,"XJZ2")]),outputs:t=>Dy(Hr(t)[ke(380,"^b[q")](Wr),ke(287,"]D^n"))},oie={outputs:t=>{let e=ke,n={KMYVf:function(a,r){return a(r)}},i=n[e(278,"p]xl")](Hr,t);return i[e(273,"eI6O")]>0?[Wr(i[0],0)]:[]}},lie={isTerminal:()=>!1,describe:t=>{let e=ke,n={xYtEx:function(a,r){return a(r)},LjSTl:function(a,r){return a>r}},i=n[e(319,"2wgT")](Hr,t)[e(259,"qDwC")](a=>typeof a[e(317,"E8l1")]===e(260,"wqVc")&&!/^__.*__$/[e(294,"Gd1D")](a[e(379,"1%8s")]))[e(286,"^eh#")](a=>a[e(336,"CVgF")])[e(363,"gPPi")](a=>typeof a===e(275,"@C09")&&a[e(313,"wqVc")]>0);return n[e(382,"EJ1E")](i[e(289,"XJZ2")],0)?e(309,"WD62")+i[e(316,"d]kj")](", "):void 0}},Qn=t=>({describe:t}),Ph={DisconnectAction:bu,EndFlowAction:bu,EndTaskAction:bu,EndStateAction:bu,ExitBotFlowAction:bu,LoopAction:tie,ExitLoopAction:aie,ProcessVoicemailInputAction:rie,CallBotFlowAction:sie,AskForNLUNextIntentAction:oie,WaitForInputAction:{},AskForNLUIntentAction:lie,CallTaskAction:{},TaskAction:{},TransferMenuAction:{},TransferTaskAction:{},LoopUntilAction:{},DecisionAction:Qn(x1),SwitchAction:Qn(x1),DataAction:Qn(t=>qt(t,[ke(257,"J0U5")])),DataTableLookupAction:Qn(t=>qt(t,[ke(371,"2wgT")])),CallCommonModuleAction:Qn(t=>qt(t,[ke(271,"1]tn")])),CallBotConnectorAction:Qn(t=>qt(t,[ke(331,"RFUh")])),CallDigitalBotFlowAction:Qn(t=>qt(t,[ke(283,"ia!E")])),AddFlowMilestoneAction:Qn(t=>qt(t,[ke(373,"EJ1E")])),ScreenPopAction:Qn(t=>qt(t,[ke(261,"ebpw")])),PlayAudioAction:Qn(t=>qt(t,[ke(315,"w[6O")])),SetFlowOutcomeAction:Qn(t=>{let e=ke,n={yPYgd:function(r,s){return r!==s},LMbYT:function(r,s,o){return r(s,o)},aDAFe:function(r,s){return r===s},lNAjZ:e(305,"LwJ%"),JiOkv:function(r,s,o){return r(s,o)},IcgfJ:e(339,"wqVc")},i=n[e(277,"p]xl")](_r,t,e(300,"XJZ2")),a=n[e(338,"w[6O")](_r,t,e(299,"wqVc"));if(i&&a)if(n[e(288,"7n)4")](n[e(335,"^eh#")],n[e(304,"(9GF")])){let r=_0x265ac2[e(322,"1%8s")];if(!r||pgTGNA[e(349,"2wgT")](typeof r,e(298,"qDwC")))return[];let s=pgTGNA[e(346,"x9yy")](_0x56d2c1,r,0);return s[e(295,"x9yy")]=e(330,"@C09"),!(pgTGNA[e(328,"9p5&")](typeof r[e(365,"RFUh")],pgTGNA[e(281,"^eh#")])&&r[e(367,"w[6O")][e(334,"LwJ%")]>0)&&(s[e(292,"#sGp")]=e(311,"]D^n")),[s]}else return i+e(354,"iM)p")+a;return i??a}),InitializeFlowOutcomeAction:Qn(t=>_r(t,ke(359,"OmcJ"))),EvaluateScheduleGroupAction:Qn(t=>_r(t,ke(352,"^b[q"))),FindSystemPromptAction:Qn(t=>_r(t,ke(341,"@C09"))),SetUUIDataAction:Qn(t=>_r(t,ke(276,"5j6r"))),UpdateVariableAction:{},SetAttributesAction:{},GetAttributesAction:{},EvaluateScheduleAction:{},CollectInputAction:{},GetResponseAction:{},AskForBooleanAction:{},AskForSlotAction:{},CommunicateAction:{},DigitalMenuAction:{},SendResponseAction:{},TranscriptionAction:{},FindQueueAction:{},FindUserPromptAction:{},SetWhisperAudio:{},BridgeServerAction:{}};function jh(){let t=["WOlcLtpcQCo6WRBcL8oPW4FdHNlcJK4uW6eFW5KN","CWZdMer0","W79TreTyf2NdQW","amkDlmoNW6S","W7ajWP52W6/cMSo4AYlcHxWYW6G","bCoaWRKQomkWW4KNwmkDWO5TAmogWOCZyqy","BSoqW4xcLSkuWQThW43cMSkQDW","rbjvWQvaCH92kSkCW5ZcHZq","imklcutcItRdJW","W6NdKSkhdczD","WRa4WRZcO8kBW4mw","C8otdSkPWQjB","WPBdSSoBWONcUCky","ANldM8o5ma","WQe5WPhcRSkaW4maffJcSSov","W5pdPXbrW5q","WPT6WOqVW4JcT3aS","WRvzW5SRWOZdJmkVAYFcPKylW7q","W7yjWOm3W5yL","zua4lmkUW54","ECoxW7hcLmkLWRO","kSkuW6tcSXC","WOvHjK7dIa","W4DjgazVBW","WQuJWQRcUmky","W4rkeazG","WRfqW5vkW77cT8o9Asi","WP1ErColW6y","WPvObxddImktlG","cSkWW4zqW6/cHmkOWOBcGuO","WO9ckSkhW6/cPhO","jM16rhZdTfK","W6tcJapcJSoIWP/cHq","WOjzW7lcHCk2W5DHxq","WO0An8oM","WOtcQ8kIxJ84","W6OnWPK4W5e","WR8pWONcKcS","WPhcT8kSW4ro","tCoYWPmBWQVcU8kzWPxcMhxcVW","W7KeWOWIW6m5","kCkfu8o3W6mfW6hdV8kMcCk4kSkN","emovWPqCpq","W5OmW7VcKmkAW6Xbu8oMF8osdq","W7mhWPS6W6S","W4FdPgqnWQO4","W5HkbGS","WQHwWPFdQa","WRe/WQ7cOmkvW4OxmW","WP43gY7cT2Wr","WPSAr1C0kSoaW5SgW5tcUMjX","mZnfW4xdNMaDWOBdRa","x1P4W5JdVLCVWPG","WRidWP7cLCk4","W7XIWR89WP9bDciIW5bv","D8oeWRddOeOJaGrloSk1W6xcUq","ccZcQGpdKwxdRmoocSoiWQuTWPu","WRBcH8k+","WOLifSkeW7NcOM1YWPTSW7S","W4vohbzEFSkwW6OAW5xcNKvy","W6xdUWyvW5VcUW","WQRdOedcO8k1","lY5hW7JdJW","W6FdKwpdSmk9W6JdHCkOW5RdILJcLgmY","gJWvWPjg","WPDYFCoQW6S","dSk8WPhdGatdKCkGWPq","W6VcRqeOWOK","Ea3dLuryWOu","iCorBtNdMKtcIazviSkixSkn","iCohWQ89ja","mSkdW7fsW44","W6NdQxmcaG","obnNFmoUWO7dOcJdLsfNWPvbWRW","WPNcTdzEW799WOeFW75/bmk/","W7FdH8kf","WRK/W5j7W5Kvva0xW4X+kG","W4VcMsBdOSoZWRvyn8kPW7pdSa","W4tdP2WnWQu","WQCZWQ3cRCkwW4ux","rbqUW4CbaLXa","WQXawmoY","W7T5WPGKWOfd","bKesW7G","AColW6lcJ8kkWQK","W6bUW6xcLSk0W64rmeS","WONdU8oCWO3cQa","kmk7WOJdImkv","bGeSWPPZ","nmkCmSol","mCk1WOVcLLS","W7W+WPCjW4/cTNiu","W7tdLbT1W6O","WR4ywvTZ","hbL5W7G","WRRdI3ffW7nqW6WlW7q5WRZdT2S"];return jh=function(){return t},jh()}var Rr=Pn;(function(t,e){let n=Pn,i=t();for(;;)try{if(parseInt(n(255,"j^B7"))/1*(parseInt(n(232,"0i$R"))/2)+-parseInt(n(276,"vj#v"))/3*(parseInt(n(298,"ZHZ3"))/4)+parseInt(n(239,"WkcB"))/5*(-parseInt(n(285,"dFDU"))/6)+-parseInt(n(295,"RZJg"))/7+parseInt(n(256,"^x8F"))/8+parseInt(n(291,"X6ia"))/9*(-parseInt(n(269,"l!0i"))/10)+parseInt(n(273,"6ayi"))/11*(parseInt(n(280,"HoOt"))/12)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(jh,664365);function Sh(t){let e=Pn,n={wElqF:function(i,a){return i===a},rSVDM:e(260,"^btZ"),UORxv:function(i,a){return i>a}};return n[e(293,"ZHZ3")](typeof t,n[e(237,"X]!M")])&&n[e(261,"iV#V")](t[e(308,"LO@V")],0)}function Pn(t,e){t=t-227;let n=jh(),i=n[t];if(Pn.GcSbBg===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h0?t[n(278,"K52n")]:Gy(a),s={outputId:a,label:r,nextActionId:t[n(243,"DD1E")],synthetic:!1,terminal:!1};return i[n(320,"dFDU")](t[n(306,"dFDU")],!1)&&(s[n(248,"dFDU")]=!0),s}var uie=[Rr(300,"19if"),Rr(259,"Y7WU")],P1={describe:()=>{},outputs:t=>Hr(t)[Rr(275,"Km2J")](Wr),isTerminal:()=>!1,referencedTaskIds:t=>{let e=Rr,n={SYbnI:function(a,r){return a===r},AgLXv:function(a,r){return a>r}},i=[];for(let a of uie){let r=t[a];n[e(292,"B5RW")](typeof r,e(282,"vj#v"))&&n[e(242,"GfaY")](r[e(314,"pZ4f")],0)&&i[e(234,"oKvo")](r)}return i}},cie=new Set([Rr(301,"GfaY"),Rr(296,"0i$R")]);function j1(t){let e=Rr,n={yzbLr:e(284,"I6bK")};return typeof t===n[e(318,"%^2G")]&&t[e(229,"WkcB")](e(312,"X6ia"))&&!cie[e(257,"l$@g")](t)}function S1(t){return t?t in Ph||j1(t):!1}function O1(t){let e=j1(t)?{...P1,...y1}:P1,n=t&&t in Ph?Ph[t]:void 0;return n?{...e,...n}:e}function bi(t,e){t=t-492;let n=Oh(),i=n[t];if(bi.ESqxsV===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;ha[i(195,"ib75")](u));return{graph:{nodes:a,edges:s,adjacency:r,roots:c,dropped:o},warnings:l}}function Eh(){let t=["W5FdNmkcWQpdGq","aeVdShxcOSoh","amo4WOKcW5S","AdqiWRCpB8oFWPOpoq","f8kisdyYdMOMoCkHBCoGW5xdJmkBkttdUJZdTq","W5PlW6bOW5VdNSkixSkqoG","sf7cKmo0WQpdIa","W5VdKCopWOhcHqig","W6NcOhq","W5HhW4jVAmkf","BSkwW6KO","xuBcJCoQWP7dIK0pwf08W7tdVqDjW45ljaaV","W63dVCo6WORcHWy","W5Hqwe1EeZWDsa","W73dQhKFW7mTwmosfIDzWQq","WRpcK8klkmo8WPO","veZcRSojWRS","ACoRmCk6p8kjW5lcLCoTyq","WP3dGrHlyvzdWPRdNbVdGx/cGSorsCk0qa","DSkMW5pcOWpdNSohyYZcUuOkW5O","kSo2WOVdVG","cSkxW7FcQwq","WORcKCk+W4pdHLeYcGmgduK","omkmW6iiWPa","aCkIW77cKuC","W6XfDZNdQW","whlcKmoFWPO","WR3cKSkvjmoWWOa","WQ/dVmo+gCkZW70","v8o5WP3dQrNdJGtdGsrYWOby","W4uxtmkNW4aZwq","jSoUWQW3W74","e8kqWQLYbG","WO7dKSocnSkY","m8o9WQa","W5RdG8o9","b0BdUa","W63dR8oqW5yieq","AxZcUSosWOm","pgZdR8kFxmkIq8kBWOCvW6FcPrhcKu1ekrBcRCkdWRmIWQHewMKMgtNcRgJdU8o9ub4NiKWFW5/cNaxdLq","drJdLmkKW7ZcMaOOsLujW5/dPa","WP/cMCokWPSInW","W7VcNvxdQmks","W63cUSolamk2W5H1ra","WR3cLWbEWR3cHG","amkQAZ3cPH/dPG","wbBdUSoqe8ok","sGhdVmoqeSodWRJcPCo1jq","WOFcVSkTbmoaWRSPevD/W4ddVGaJsWLaWRKiWOfVl0XfW6tdUSoY","W4hdLSo8WPRcMqq","W7RdUCo6l0y","W5L4srRdGmo1WRX+aCocWRKqW7tcHG","lSkHDCoN","WPtdVtT0qxTLWRhdUhJdTfxcUCo2ECktjePop8ot","WOr9W4nWz8kyWQO","WQtcTmoTWR4v","WQVcQ8osW5hcUCoeWQVcISo/WQ8FWOJcSG","W5T/tqRdOmoP","v8kLWOy/itVcImktWOBcTmoieCk4mbhcTq","WQpcTdjB","WQNcTs8","DCkEW4KOWQ5yW4ZcNLNcJa","iLRdR1SVW6xdO1ldJbi1fc8","q8khCY8","W5WQx3TKWPSiWPDXWRC","aCk/WPfmjW","fvBdVxpcS8o0zahcVmoRpq","WPZcMmolWPO","WR4dW4ldGXSPW6xcL8kxlt7cTdaFlGVcKSocCG","u8oetI9bh3OGn8oV","W6ZcPgZdR8khW5q","z8k8catcHszaWPzXWOy","WQdcSdG","BJNdSCkw","DqVcSaW","WPT4gcG","W5RcL3hdTX8Ib8kP","W6RdRmoTW7HZ","omkiW6yVW75sDWFcOKRdThWcoan4nSkNA8kSWPjMW4ekWQ3cKmkgWPC","WQpdVdLXrN8","vSkJWQKGWRu","ua17WPu","W7VcOwq","W53dUH4DWQxdPG","bmkVWPDtn1f4FedcG8oskthdICkMvmos","W6RdNmo5W55tfW","k8o1WOZdVLlcNq","DehcVXRdOq","WR/cKWnC","WRZcKCksja","W7pdSt9aWQ40y8ouoIX7W4b3rSo3W4xdT2VdMWhcK3FcPSoAWQf7WReU","W5D/DIddPq","WOL8bYfs","e8kkW43cTva","WRZdRsv/xha","WPJdKLtdPW","W7lcSSoGxdBdGJOrWQxdRSkvjCkfx8onoCke","W6ZdMmk0WQJdNW","imkvWOvYdh5g","W69nW58V","p1VdPwZcTa","WPRcQCkQdCok","W63dO8kxWOW","u8o4WP7dQ1BcNaxdOcPZ","BbNcMZLx","kvRcIXfYWOBcRf4","abbPWO7cGIBdN8opW43cMxxdQSkdz8obWQPTW7lcG8kXWRvVsSkolWPA","DCkWW7iFWOW","W5KRxxOfW4HrWOjkWP97W6FcKa","W6JcQmo7qthdHa","W6BcISkfWRST","W6WecgNcIh9NEq","W5O+W7pdVhieW4VdO8k7fL/cLGOYqtlcRmo4fSoyW6lcKmkRhJBcLCka","W5TaW4zTF8kz","W6RdRSkgWPVdV8kYW73cRSo3WPOe","WRzGeI5h","W67cM8o/EGK","ESo0WQ1Nst9sW6ji","WP1yx0TUeJ0taLZcHCo5W6pdGG","guG6W4/cL3NcImknW5hcKsldOSku","wuxcVtJdPW","W4VdJmk/WQBdHq","WPBcUSkJzqFcRvPCuSkvqSkl","Cc3dR8kB","hCk6W5aTWPy","k3CvWRbaDCoYWOaxBq","WRtdN8oub8ky","AhdcRsNdHW7cRW","d0ZdTxxcRSouAYBcSmo1jSkLW5ZdMSk0","s1/cKCo1","WP5CxfS"];return Eh=function(){return t},Eh()}function $n(t,e){t=t-383;let n=Eh(),i=n[t];if($n.vcboDJ===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hl}},r=[],s=[];if(Array[i(410,"BSco")](t[i(417,"3o!N")]))for(let o of t[i(461,"s%hX")])o&&a[i(384,"nF5d")](typeof o,i(441,"nF5d"))&&r[i(412,"H3LX")](o);if(Array[i(512,"hgbn")](t[i(401,"yzU!")]))if(a[i(437,"!7Ud")]===i(438,"DI$n"))for(let o of t[i(465,"F6ip")]){let l=o?.[i(429,"nF5d")];if(!l||typeof l!==i(500,"xK6x")){if(i(452,"H3LX")===i(404,"U3I!"))continue;{let u=_0x2080df.id;if(a[i(479,"hgbn")](typeof u,i(451,"uUti")))return u}}if(a[i(491,"RN]K")](typeof l.id,i(392,"x3h]"))){n[i(481,"xNeY")]({code:a[i(507,"DI$n")],message:i(492,"!7Ud")+(l[i(426,"5%lh")]??a[i(506,"B1z3")])+i(485,"V%dy")+e+i(395,"KOXM"),taskId:e});continue}r[i(477,"eJ%J")](l);let c=a[i(469,"xNeY")](typeof o[i(424,"[EgQ")],i(460,"s%hX"))&&a[i(416,"#%eD")](o[i(413,"yzU!")][i(458,"fkbt")],0)?o[i(488,"cXj9")]:l[i(513,"!RYQ")]??l.id;s[i(487,"2fMu")]({actionId:l.id,label:c})}else return _0x5d6540;return{orderedActions:r,menuChoices:s}}function die(t){let e=$n,n={aXUrp:function(i,a){return i===a},NFeJJ:e(463,"5%lh")};if(typeof t===e(455,"xNeY"))return t;if(t&&n[e(456,"vmy]")](typeof t,e(423,"Ae8Z"))){let i=t.id;if(typeof i===n[e(414,"U3I!")])return i}}function M1(t){let e=$n,n={XXPVh:function(g,d){return g(d)},uGvRV:function(g,d){return g!==d},ofLTv:function(g,d){return g(d)},wsFPM:function(g,d){return g!==d},Yyyms:e(403,"BSco"),hWXwE:e(442,"gREX"),Zvmrx:function(g,d){return g===d},qkMOH:e(400,"gE)@"),cXrBW:function(g,d){return g===d},Tpizp:function(g,d){return g===d}},i=[],a=new Map,r=Array[e(421,"5%lh")](t[e(425,"H3LX")])?t[e(418,"&1J6")]:[];for(let g of r){if(n[e(383,"9UOn")]!==n[e(398,"B1z3")])return _0x90540d;{if(!g||typeof g!==e(471,"F6ip")||n[e(399,"x3h]")](typeof g.id,n[e(407,"!7Ud")]))continue;let d=n[e(446,"hgbn")](typeof g[e(434,"xK6x")],e(442,"gREX"))&&g[e(503,"nF5d")][e(508,"A&!W")]>0?g[e(513,"!RYQ")]:g.id,{orderedActions:m,menuChoices:w}=pie(g,g.id,i);a[e(422,"vmy]")](g.id,{id:g.id,name:d,startAction:typeof g[e(480,"9UOn")]===n[e(435,"DI$n")]?g[e(397,"U3I!")]:void 0,orderedActions:m,menuChoices:w})}}let s=new Set;for(let{id:g,orderedActions:d}of a[e(484,"vmy]")]())for(let m of d)if(e(501,"BSco")===e(511,"U3I!")){if(typeof m.id!==e(499,"RN]K")){i[e(495,"m^nz")]({code:e(498,"hgbn"),message:e(472,"wDn8")+(m[e(497,"o69w")]??n[e(393,"Nuiz")])+e(483,"&1J6")+g+e(389,"m^nz"),taskId:g});continue}s[e(449,"5%lh")](m.id)&&i[e(477,"eJ%J")]({code:e(482,"KOXM"),message:e(467,"A&!W")+m.id+e(408,"3o!N")+g+e(504,"yXXQ"),nodeId:m.id,taskId:g}),s[e(496,"vmy]")](m.id)}else{let w=n[e(439,"F6ip")](_0x1980d3,_0x534d9c);n[e(390,"[EgQ")](w,_0x2833ad)&&_0x3407a9[e(450,"9UOn")](w)}let o=[...a[e(473,"yXXQ")]()],l=t[e(411,"9UOn")],c=typeof l===e(420,"H3LX")&&a[e(486,"yXXQ")](l),u=c?[l,...o[e(415,"9UOn")](g=>g!==l)]:o;n[e(440,"H3LX")](typeof l,n[e(494,"SUNS")])&&l[e(396,"Ae8Z")]>0&&!c&&i[e(509,"WxNu")]({code:e(462,"nF5d"),message:e(510,"x3h]")+l+e(453,"2fMu")});let p=new Set,h=t[e(475,"[EgQ")]?.[e(489,"B1z3")];if(Array[e(444,"IW%z")](h))if(e(445,"#%eD")!==e(447,"gREX"))for(let g of h){let d=die(g);d!==void 0&&p[e(474,"yXXQ")](d)}else for(let g of _0x4fbace){let d=n[e(430,"H3LX")](_0x3ae1d8,g);n[e(387,"cXj9")](d,_0x1d9630)&&_0x4b6157[e(448,"gE)@")](d)}return{flowName:typeof t[e(502,"fkbt")]===n[e(409,"gREX")]?t[e(406,"2fMu")]:"",flowType:n[e(464,"dS^N")](typeof t[e(466,"]HHP")],e(493,"A&!W"))?t[e(385,"U3I!")]:"",tasks:a,taskOrder:u,entryTaskId:c?l:void 0,reusableTaskIds:p,warnings:i}}var Ny=Pi;function Pi(t,e){t=t-499;let n=qh(),i=n[t];if(Pi.IiQRiu===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hs},axrGG:e(526,"%Plk"),SUylf:e(543,"n3y3")},i=[],a=[];for(let r of t[e(547,"]TtG")]){let s=t[e(546,"zlXf")][e(557,"F34O")](r);s&&i[e(559,"q^pc")]({id:n[e(532,"Ohn#")](pt,r),kind:e(549,"p(mz"),label:s[e(535,"(n0C")],taskId:r,taskName:s[e(539,"1a^X")],terminal:!1})}for(let{taskId:r,task:s,action:o,actionId:l,handler:c}of Th(t)){let u=o[e(540,"!nP6")],p=n[e(519,"XfI&")](typeof o[e(553,"Yc04")],e(499,"jBWi"))&&n[e(524,"*7iz")](o[e(563,"]TtG")][e(555,"p(mz")],0)?o[e(500,"F34O")]:u??l;i[e(559,"q^pc")]({id:l,kind:e(558,"]TtG"),actionType:u,label:p,description:c[e(522,"p)uU")](o),taskId:r,taskName:s[e(545,"D!o5")],terminal:c[e(506,"Zu1@")](o)}),!S1(u)&&a[e(529,"9X[g")]({code:e(510,"Omr)"),message:e(565,"Fk&P")+(u??n[e(561,"Fk&P")])+e(518,"!nP6"),nodeId:l,taskId:r}),hie[e(552,"]TtG")](u??"")&&a[e(548,"1a^X")]({code:e(556,"jENy"),message:e(562,"T(yK")+l+e(509,"39Ci"),nodeId:l,taskId:r});for(let h of c[e(560,"IRaI")](o))i[e(536,"p(mz")]({id:ka(l,h[e(505,"#fhh")]),kind:e(512,"#LAm"),label:h[e(521,"Fk&P")],taskId:r,taskName:s[e(539,"1a^X")],terminal:h[e(554,"jUNj")]}),h[e(534,"iXKe")]&&a[e(537,"XfI&")]({code:n[e(517,"jUNj")],message:e(502,"Omr)")+h[e(511,"p(mz")]+e(530,"F34O")+l+e(507,"IRaI"),nodeId:ka(l,h[e(514,"G2Xp")]),taskId:r})}return{nodes:i,warnings:a}}function qh(){let t=["rLdcI8koxCkoW4ul","C8klx8oYWR3cQSkSoXVcJq","WPmXWPldM17dKCkCW4OwWOtdH8oImG","f0ddH3NdISkXe2LtswJdJry","k8o8iN4HBSkjW6tcGSkPh1rwAqLgCSouW4SFj8oxWPDdW5JdRwLBvvWkW7mWmCoUpqmbevG4rCkDW6/cQ8oRW73cG1H0W4/dV0yoW77dG8obfHLIamkhvmoXhSoWW4W","W5pdGmkfWQxcG3j5W63dJCoQw0pcNSkLbSoxWP7dO08","W59dauZdNmklW5Lu","WQxcM8k9c8kXWRpdUHLzDNldMHu","pmo6nY82CSkV","WRpcNSkunvTSrNe","lmoyamofWPTUy8kQW5xcGrzDWRy","rf3dOh/dUslcMSoRWQRcSCoFrG","W5hdP8olgeG","uhJIG4/cLNJcHmkeyxuxWRv0WPdcKZv9W6VdQSkGjGjMFSok","mcvIWQNdHW","WRtcTSo4W5ldVb1rW53dPSoby20","o3RdQvSg","wSo0cWjpcmkPqq","kCoiEmoUWP3cL8kMeW","zYldV8kRWPi","gvddUHtcT0pdOCoOW7tcImocWO4","WPVcVCkBWR3cHfdcLxyS","oCoJtSkfWQ07oL5lWObPW4JdGCoYWOVdVqdcQLbEzvtdGd/dOW","WQdcGXC7iJCoW7S","v8kFW6xdLa","tbSeW5W","nNxcImoWW7xcM8ocW6rmjmoNfq","D8okw8kYW7C","qff1WRHvc8k7","eGFcOIRcRhJcQmoK","iSoTWP3dJa","W4bdbLq","eWL3WRq","W4yczmk9D8oYW5ldUSo+mMa","W6VcVxjV","lqFcR8opymka","tMLCWQHnlCko","sMRdO8kdjmkUWQTeuZVcPq","jSktW6vCW4aJWRqWW71prmo4DW7cHG","g1pdUrVcSelcMmomW6pcPSoUWQKf","W7JdNYRdOq","W6TVx8kVwG","t8kVzcPiW5hdHxpcUq","W7xcQwXI","W4rxbLFcHmkmW6rrWONcKW","WQJdVI7cL8kMWOD2","sCkHfCo0W7D7pxLmWRLnW4e","u8kVza","xt3cUCoX","W7BdL8oaguFdKJbU","W5Xtg1VdNCkx","WQT+dSonemo2W5/dRCoXp0SDFx/dR8kIWQhcK39lwY/dJNa","cXew","wSkTyYHOW40","WOrdWRhcTq","W5WTWPxcI0/dJmkC","nMpdUxKT","v3NcHehdM3Poj8olW6iJamooWP3dK8o6W7NdGhS","vCkVEIq","WQBcH1rZr1vDW59tW50+W6fd","aNxdOfafW5/dRLxdUmoQd2ldUSkDwSktwMtcQCkvWPBdHea","d8oSgHa2zcn+qgtcR8od","WOpdSSortCkIWPy","aHupWPK","WOWLWPlcIMCziCkpW7RdPCkuW6fX","W4NdU8k6WPVcUvex","W5SlsIC7wd1uvfRcNfFdTXDVnrCv","W5VdSSoBW4hcHSkdc8osW4jkW6G4WOK"];return qh=function(){return t},qh()}(function(t,e){let n=ji,i=t();for(;;)try{if(-parseInt(n(443,"niia"))/1+parseInt(n(488,"faqi"))/2*(-parseInt(n(480,"@%U%"))/3)+-parseInt(n(478,"bjJ2"))/4+-parseInt(n(498,"6@RG"))/5+-parseInt(n(471,"0[VF"))/6*(-parseInt(n(490,"nUQ@"))/7)+-parseInt(n(477,"Apff"))/8+-parseInt(n(459,"XsB["))/9*(-parseInt(n(486,"^^aK"))/10)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Hh,986405);var _h=0,Uy=1,gie=2;function ji(t,e){t=t-440;let n=Hh(),i=n[t];if(ji.lLqwot===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hc},owrOX:e(469,"Eu2S"),OyBKJ:function(l,c){return l-c},anzwE:function(l,c){return l>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hg[e(296,"9r$d")]===e(295,"lz&n"));return{ok:!0,ir:b1(l,u,i,p),graph:l,warnings:[...i[e(272,"s!PK")],...r,...o,...c]}}catch(i){return{ok:!1,error:{code:e(269,"Qn(v"),message:i instanceof Error?i[e(271,"Oqs3")]:String(i)}}}}(function(t,e){let n=un,i=t();for(;;)try{if(-parseInt(n(236,"h[LL"))/1+-parseInt(n(234,"wSU*"))/2*(-parseInt(n(401,"h[LL"))/3)+parseInt(n(330,"!SjE"))/4+-parseInt(n(249,"TP#A"))/5+-parseInt(n(364,"4&&G"))/6+-parseInt(n(329,"0vxb"))/7+parseInt(n(374,"wiue"))/8*(parseInt(n(382,"aK!M"))/9)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Rh,150364);function q1(t,e){let n=un,i={jYlTG:function(a,r){return a===r},QkIfT:n(326,"ZUtw"),Ysykj:function(a,r,s){return a(r,s)}};if(Array[n(398,"dEUh")](t[n(229,"wSU*")]))for(let a of t[n(285,"Wfsp")])a&&i[n(372,"[AoD")](typeof a,i[n(299,"yO7[")])&&e(a);if(Array[n(402,"9!Jl")](t[n(294,"TP#A")]))for(let a of t[n(264,"CmEg")]){if(!a||typeof a!==n(261,"9yge"))continue;let r=a[n(342,"yx7h")];!r||typeof r!==n(281,"twB&")||i[n(392,"ZUtw")](e,r,mie(a))}}function un(t,e){t=t-205;let n=Rh(),i=n[t];if(un.kXxkbV===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hu},vGaiD:function(c,u){return c!==u}},a=[],r=new Set;for(let c of Array[n(268,"Wfsp")](e)?e:[])i[n(220,"twB&")](n(233,"ZUtw"),n(311,"$s)d"))?_0x57bbf0&&PEajnW[n(258,"140J")](typeof _0x515e1e,n(340,"CmEg"))&&_0x174b5a(_0x5e853a):typeof c===n(302,"aK!M")&&!r[n(210,"Yy3I")](c)&&(i[n(248,"dEUh")]===n(208,"TP#A")?(r[n(362,"8]S$")](c),a[n(345,"8]S$")](c)):_0x4a3461(_0x5506c9));if(i[n(266,"Wfsp")](a[n(370,"Yy3I")],0))return{found:[],notFound:[]};let s=new Map;for(let c of _1(t)){if(!c||typeof c!==n(368,"zM([")||i[n(407,"5Vqv")](typeof c.id,n(354,"vNS4")))if(i[n(334,"^[L8")](n(341,"nsz3"),i[n(288,"140J")])){if(PEajnW[n(301,"TP#A")](_0x178622,null)||PEajnW[n(387,"KQMc")](typeof _0x257920,n(261,"9yge"))||_0x2352f7[n(253,"8]S$")](_0x2c8f29))return[];let h=_0x384c0b[n(267,"yx7h")];return _0x41308c[n(217,"s)Z6")](h)?h:[]}else continue;let u=c.id,p=i[n(291,"wiue")](typeof c[n(221,"pQsR")],n(245,"erY4"))&&i[n(351,"6tzD")](c[n(287,"0%fs")][n(230,"VkK&")],0)?c[n(222,"f07&")]:u;q1(c,(h,g)=>{let d=n;if(typeof h.id!==i[d(207,"nsz3")]||!r[d(399,"wiue")](h.id))return;let m={actionId:h.id,action:h,taskId:u,taskName:p};g&&(m[d(380,"h[LL")]=g);let w=s[d(225,"erY4")](h.id);w?w[d(292,"u4(s")](m):s[d(366,"8]S$")](h.id,[m])})}let o=[],l=[];for(let c of a)if(i[n(336,"Jvkq")](n(238,"6tzD"),n(270,"9!Jl"))){_0x1d4f49[n(307,"wiue")]=0;let u=_0x124256[n(310,"dEUh")](_0x46206d);return u?{index:u[n(206,"Yy3I")],length:u[0][n(239,"ud!t")]}:_0x599511}else{let u=s[n(242,"yx7h")](c);if(u)if(i[n(332,"Yy3I")](n(297,"8]S$"),n(305,"YXZH")))for(let p=0;p<_0x244326[n(333,"erY4")];p+=1)i[n(215,"0%fs")](_0x3f27a5,_0x215615[p],_0x4b6b9d?_0x46f1f1+"."+p:""+p,_0x3ea1bc+1);else o[n(256,"aK!M")](...u);else l[n(293,"erY4")](c)}return{found:o,notFound:l}}function Rh(){let t=["aLOnye3dJa","W7lcOhaIeSot","eCkhlYLmW4pcNa","WPtcPhfIvq","W4JdJ3i","rMChW7hdLSoOWO4","u3KJiq","W45sWPW4va","W67cJCoIWOZdHq","WRjRWOTn","imouWPeA","W7NdJ3Ck","WReeW45SWQK","h8krgG","aSo6WQfUzmkr","nKhcN1JdQYxdMeRcS8kFia","F1CVWPv4W5hdSZNdMG","WRiqW5ThE8k/W7dcHmkwuq","F1mYWOzfW5C","W7/dSxvMWQBcNW","iCkZk8k0xW","BqhdPa7cOa","W6evW7TNESkzW7a","z8k0zSkasCk3l8o3W4bvhwBdNCkEWPBcULmQW7i","WPpcNtaTW67cLGbmkcul","h8otWQ4XW5S","WOT7tb7dJG","zSkWCmkQxmkR","jmoPW54zW6ZdPG","WR1TWR4vxmo9W4q","ixvL","W7FcTSkTW7O","W4hdMmoPWOhdHCku","c8kahdjqW4u","oSoRWPzttq","ymogW47dVrxdISkmW6hcQGjXzmkg","WRezW6PiWRu","vCoKWP3cUr8dygxdVKldGSk4","W7lcS8o6DWS","WONdHXlcO8kU","deX8WQr+","W47cIComAtr2W7K","pConW5CNW5O","W6JcUMyUba","fvZdTmoM","WOnPFZBdTa","wSomWPxcI8oq","EWVcTMibA8oOoSkUyCkUva","W4Lro18+","W67cTMGUh8oa","FaddSXrz","ux0Gi1Hg","a1OnCNRdJmoLWRFdR3ZcTvNdGSoi","CLKmWQzz","W5NdT8oicLe","ihX+pgfdWR3cN2pcHmoxW5WsWRCeW6aDWOhdKY4","W7/dH8oeivVcNCol","CmoUWPtcTSoo","ogncWOX/","qSo6WQNcP8oA","j8oBWPGAW5uLW44","jSoLW6uWW5i","gYD2WRpcKSkXWQ7dU8onWQRcTmkh","WR4wW4fBv8k5W5pcHmkgqa","W4NcJmocEde","ACk4CCkirW","WQBdQqJcGSkWWRC","kmozWPmqW58","WQ7dPqhcJmkW","W47cRmofWRddNSkw","W7tcV2Sj","s0ahW6tdJa","u8ksDSkbEW","W7FdL8oXoKBcKSo+qrBdSq","eNRcS8oM","WOJcSfH0","vCoVWOFcSSon","jSoRW505W4e","W4ZdI294WQlcKG","hmo0W4unW7m","tw09la","cmkbhtm","aCk4W4BdUw1ByuddKN3dOmkPdSki","imk9mmkgta","xbddUavRla","W6lcLCo+vsW","jLFdRZjepG","peNdNfLz","WPlcLWS4rmoMmCkRuNldIW","dSkoW4NdUMG","fL3dTCoNevS","dMRcRSoPW6zD","bNeGyhW","dSk2pmk6vW","W4NcM8oGFG","jmoTW4mkW5hdOmk9WP1Q","WPDTxIxdUW","cMtdN0D7","WO4kW6bA","dWfVxCo5","W7X/WPG1xmos","W4NcJ8okWQFdJG","jYzGBW","xmo8WQVcUSomWQ0","WRvKWOjncxLA","WRhcKgv/uq","W7tcQ2SoDCkG","dKFdPIf2","W6HMhuSm","W7dcUCkKW7RdQCo7uW","kqGpgCk1","W7VdI3qivmo9","A0eKW5tdKq","W47cLmoPFJ4","AHddHa/cSd0","W5RdLmorWRhdLG","W6RcO8kYW7BdV8ot","WQhcMsLAgmkSWQnNWRnruIa","WQJdOSoWWQ/cOmkcz1tcRrPTWOO","otj+yG","W7RdGSo2WPFdJq","fmkradXkW4O","WQ15W4xcMCo9","jSoTW50B","W5z4pLmc","lYTIFCooW57dMLpcUaCQWP3dKJHXnSkIW6hdQSkh","W5Dob3aS","WOJcKSoQ","av0jyLRdKa","etC1pCkT","j3nLiL1i","WPnDW4lcJ8oG","WOzfW5hcGCo9ya","W5FcJ8o+CW","WOyBW6S","wxePlvG","dCk5W4W","W5tcJSo/CIHW","uCkyW7ldKbJdUG","WR9HyrhdTW","WRjREIhdJ8k6W5q","WQVcMhfKqa","wIldMYegCG","zwKkiwu","CSoaWPhcLmo6","WPdcOSocdSkR","WRbVWOHpbv4","W5tcQCoRwIe","W7NdLSoVnKRcIa","WQ/dOmoZWQRcQCkntwJcTWn2WQO","W4BcNSoP","fL9caMzVWPRcR1NcO8o6W78sWO0OW5Ki","v8oQW5NcSeuwW77cRulcJ2Lo","x8kawCkCyq","W5tcN8o5","rSktWQtdGdOAiSkrsW","WPldVxxcI1vC","WPXTCJZdVG","W4ldN8oTWOpdKSki","ECkbW4rlWPvyW7dcNwVcTtJdKW","wmk4WR3dUH4","xNK9ix9lg2mhbrJdTSkv","ESk9WObgWQJcVSoHWQf+W5efbci","a2vmWRi","W77cT2efza","WQHSstRdK8k8","oCkBaHfv","iCkyWOVcT0BcNW","W43dI29QWPxcKHLSlc8","hCkmcZG","xhVdKSoFnexcOa","cuZdQCoPc1q","auFdU1H5WRW","wqBdLXbTjCkK","xhCEa0q","DZ7dNILq","qmk7W6m3o8oaWO4CqWOPha","iCkZbHDT","k8kXWOBcOg0","WORcTfT2u1O","xahdLWhcUq","W5ZdI187zW","a8k/W4ldQu1h","oSoAWRaqW5OpW5RcVvNcTby","W6ZcN8oitWe","dCk4WOtdPq","WOibW4rlWRxdNSo1","imoTW4m","ACk6tSk7tW","WPFcMJKRW67dIc5MhdG0rG","axn0WRn+b8of","jN7dIJjc","WQX9DGBdHa","DGBdNapcVs4","WPGgW7DqWQNdMa","W51HWOGgyq","iCk1k8kw","r24RW7ddOW","WRiqW5ThE8k/W6JcLmkvqa","W4FdLmoNWOhdNG","dae1imkD","a8k0W57dUwq","W5iGW5bOWOZdHSoh","W4BdM8oW","WOPqWOnTcq"];return Rh=function(){return t},Rh()}var fie=64;function wie(t,e){let n=un,i={LuevF:function(r,s){return r===s},hAers:function(r,s){return r-s},VZeEx:function(r,s){return r!==s},QfRNv:n(289,"wiue")};if(t instanceof RegExp){let r=new RegExp(t[n(379,"JdWm")],t[n(343,"^[L8")]);return s=>{let o=n;r[o(228,"VkK&")]=0;let l=r[o(381,"erY4")](s);return l?{index:l[o(260,"Jvkq")],length:l[0][o(240,"wiue")]}:void 0}}if(i[n(211,"pQsR")](typeof t,n(312,"5Vqv"))||i[n(308,"6tzD")](t[n(384,"yO7[")],0))if(i[n(237,"f07&")]!==n(232,"YXZH")){let r=_0x24f79c[n(316,"pQsR")](_0x2e210c);return r===-1?_0x72d14:{index:r,length:_0x5ce324[n(358,"pQsR")]}}else return;if(i[n(262,"KQMc")](e?.[n(373,"u4(s")],!0))return r=>{let s=n,o=r[s(272,"f07&")](t);return o===-1?void 0:{index:o,length:t[s(350,"PdML")]}};let a=t[n(300,"8NaD")]();return r=>{let s=n,o=r[s(395,"f07&")]()[s(321,"!SjE")](a);if(i[s(319,"G^wT")](o,-1))return;let l=Math[s(346,"dEUh")](o,r[s(278,"ef0B")]);return{index:l,length:Math[s(339,"Qm1r")](t[s(263,"u4(s")],i[s(313,"twB&")](r[s(323,"0vxb")],l))}}}function vie(t,e,n){let i=un,a={nvOcw:function(c,u){return c(u)},sSfAg:function(c,u){return c=u},YGhLS:i(378,"erY4"),GuIoC:function(c,u){return c{let h=i,g={UIwlM:function(d,m,w,f){return d(m,w,f)},qcNWF:function(d,m){return d+m}};if(typeof c===h(405,"ZUtw")){let d=a[h(276,"8]S$")](e,c);d&&(s+=1,a[h(359,"8]S$")](r[h(303,"0$QA")],n)&&r[h(286,"0$QA")]({path:u,value:c,matchIndex:d[h(325,"8]S$")],matchLength:d[h(391,"0%fs")]}));return}if(a[h(224,"dEUh")](c,null)||typeof c!==h(244,"Yy3I")||a[h(400,"ud!t")](p,fie)||o[h(216,"h[LL")](c))if(h(317,"0%fs")===h(273,"wiue"))g[h(250,"8]S$")](_0x1e7906,_0xef9d1[_0x55b01e],_0x1e5d33?_0x3765e2+"."+_0x4d6d36:""+_0x1ea0f3,g[h(356,"140J")](_0x5a11e9,1));else return;if(o[h(348,"TP#A")](c),Array[h(214,"erY4")](c)){if(a[h(389,"erY4")]!==a[h(284,"ud!t")])return _0x541d66;for(let d=0;a[h(369,"6tzD")](d,c[h(230,"VkK&")]);d+=1)l(c[d],u?u+"."+d:""+d,a[h(277,"ud!t")](p,1))}else if(a[h(254,"wiue")](a[h(409,"s)Z6")],a[h(327,"Yy3I")]))_0x592724[h(286,"0$QA")]({path:_0x16a1fd,value:_0x5029c9,matchIndex:_0x223a64[h(255,"9yge")],matchLength:_0x3c7831[h(391,"0%fs")]});else{let d=c;for(let m of Object[h(375,"9!Jl")](d))a[h(324,"s)Z6")](l,d[m],u?u+"."+m:m,p+1)}o[h(298,"G^wT")](c)};return l(t,"",0),{hits:r,truncated:s>r[i(212,"CmEg")]}}function Ly(t,e,n){let i=un,a={dLIer:function(c,u){return c!==u},aoPGh:i(302,"aK!M"),wqXJj:function(c,u,p,h){return c(u,p,h)},dTAgh:i(309,"yO7["),KeETG:function(c,u){return c===u},AYvdf:function(c,u){return c>u},OZwqa:function(c,u,p){return c(u,p)},yFxeH:i(318,"Lb@d"),UUGQI:function(c,u){return c!==u}},r=a[i(322,"nsz3")](wie,e,n);if(!r)if(a[i(252,"9!Jl")](i(355,"u4(s"),i(257,"6tzD")))_0x1eb193.id=_0x1a15cc.id;else return{hasMatches:!1};let s=n?.[i(235,"ud!t")],o=a[i(246,"Bj@R")](typeof s,a[i(390,"JdWm")])&&s>0?Math[i(279,"f07&")](s):Number[i(363,"yx7h")],l=[];for(let c of _1(t)){if(!c||typeof c!==i(360,"Wfsp")||a[i(365,"ud!t")](typeof c.id,i(226,"Bj@R")))continue;let u=c.id,p=a[i(393,"0vxb")](typeof c[i(282,"Lb@d")],i(349,"8]S$"))&&a[i(219,"5Vqv")](c[i(222,"f07&")][i(290,"h[LL")],0)?c[i(306,"8]S$")]:u;q1(c,(h,g)=>{let d=i;if(a[d(403,"G^wT")](typeof h.id,a[d(265,"VkK&")]))return;let{hits:m,truncated:w}=a[d(338,"Jvkq")](vie,h,r,o);if(m[d(290,"h[LL")]===0)return a[d(283,"s)Z6")]===d(251,"ef0B")?_0x2559f7:void 0;let f={actionId:h.id,taskId:u,taskName:p,matchedPaths:m};typeof h[d(231,"h[LL")]===d(406,"dEUh")&&(f[d(205,"wSU*")]=h[d(315,"140J")]),a[d(396,"8]S$")](typeof h[d(314,"$s)d")],a[d(386,"u4(s")])&&a[d(271,"140J")](h[d(335,"wiue")][d(296,"KQMc")],0)&&(f[d(397,"4&&G")]=h[d(243,"!SjE")]),g&&(f[d(275,"wSU*")]=g),w&&(f[d(367,"[AoD")]=!0),l[d(331,"$s)d")](f)})}return l[i(383,"aK!M")]>0?{hasMatches:!0,matches:l}:{hasMatches:!1}}(function(t,e){for(var n=Ei,i=t();;)try{var a=-parseInt(n(209,"bdpz"))/1+parseInt(n(207,")Z&&"))/2+-parseInt(n(202,"(LRw"))/3+parseInt(n(196,"l2(P"))/4*(parseInt(n(208,"bV^V"))/5)+-parseInt(n(194,"!4%Z"))/6+parseInt(n(201,"TP)v"))/7+parseInt(n(198,"8Np("))/8;if(a===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Ih,441715);function Ei(t,e){t=t-194;var n=Ih(),i=n[t];if(Ei.uykjNK===void 0){var a=function(l){for(var c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="",h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(var w=0,f=u.length;w=500?`Genesys Cloud returned ${n} fetching flow "${t}". Transient server-side error \u2014 retry; this says nothing about the flow.`:`Failed to fetch flow "${t}"`+(n!==void 0?` (HTTP ${n})`:"")+(i?`: ${i}`:".")+" Likely transient (network or gateway) \u2014 retry rather than concluding the flow does not exist."}var H1=50;function Aie(t){let e=[],n=new Map,i=!1;for(let a of t){let r=a.split("::")[0]||a;r!==a&&(i=!0),n.has(r)||(n.set(r,a),e.push(r))}return{lookupIds:e,requestedFor:n,strippedAny:i}}var bie={flowId:te.string().min(1).describe("The Genesys Cloud Architect flow ID"),actionIds:te.array(te.string().min(1)).min(1).max(H1).describe(`Action GUIDs, taken from the \`id\` of flow_ir nodes whose \`kind\` is "action". Batch every action of interest into as few calls as possible rather than calling this tool once per action. Branch-output ids of the form \`::\` are also accepted; the suffix is stripped and the underlying action is returned. Maximum ${H1} ids per call; chunk a larger set into successive calls.`)},W1=({architectApi:t})=>({config:{description:"Retrieves the raw Architect configuration of specific actions in a Genesys Cloud Architect flow: decision expressions, prompt text, data action inputs and outputs, and any other per-action settings that the flow_ir tool omits. Use flow_ir first to find action ids and to understand the control flow, then use this tool to find out what an action actually does. Do not use the raw fields returned here to make control-flow claims: flow_ir has already resolved those, and its answer accounts for branches the raw configuration does not reflect.",annotations:{title:"Flow Action",readOnlyHint:!0,destructiveHint:!1},inputSchema:bie},handler:async({flowId:e,actionIds:n})=>{let i=await Ma(t,e);if(!i.ok)return{isError:!0,content:[{type:"text",text:i.message}]};let{lookupIds:a,requestedFor:r,strippedAny:s}=Aie(n),o=By(i.configuration,a),l=u=>({...u,actionId:r.get(u.actionId)??u.actionId}),c=[];return s&&c.push("Some requested ids were flow_ir synthetic node ids of the form ::; the suffix was stripped and the underlying action looked up, then reported under the id as requested. A ::start id identifies a task rather than an action, so it never matches."),o.notFound.length>0&&c.push("Ids in notFound are absent from this flow's latest configuration. The flow may have been redeployed since flow_ir was called, so re-run flow_ir and re-join rather than concluding those actions no longer exist."),{content:[{type:"text",text:JSON.stringify({flowId:e,found:o.found.map(l),notFound:o.notFound.map(u=>r.get(u)??u),...c.length>0?{notes:c}:{}})}]}}});function R1(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function xie(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:R1(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:n}}var yie={flowId:te.string().min(1).describe("The Genesys Cloud Architect flow ID")},I1=({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:yie},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=R1(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=xie(n,r);return{content:[{type:"text",text:JSON.stringify(o)}]}}catch(n){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${ct(n)}`}]}}}});var Pie=1e3,jie=45e3,Sie=10,Zt=class extends Error{};function yu(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}async function Oie(t){let e=await fetch(t);if(!e.ok)throw new Zt(`Downloading the execution data file failed with HTTP ${e.status}.`);return e.json()}function Tie(t){return new Promise(e=>setTimeout(e,t))}function kie(t){return t.jobState==="Success"||t.jobState==="Failed"?!0:t.entities?.some(e=>e.downloadUri||e.failed===!0)??!1}async function Mie(t,e,n,i){let a=e,r=Date.now()+i;for(;!kie(a);){if(!a.id)throw new Zt(`The retrieval job reported state "${a.jobState??"unknown"}" without a job id to poll.`);if(Date.now()>=r)throw new Zt(`The retrieval job (${a.id}) was still "${a.jobState??"unknown"}" after ${Math.round(i/1e3)}s. Retry shortly; the job may complete on its own.`);await Tie(n),a=await t.getFlowsInstancesJob(a.id)}return a}function z1(t){return`No execution data exists for execution id "${t}". Either the id is wrong (it is the flow instance id, which for test_bot_flow runs is the sessionId it returned, not a conversation id or flow id), the run is older than the ${Sie}-day retention period, the flow was last published before execution data storage was enabled for the org (flows must be republished after enabling it), or storage is disabled. Use find_flow_execution with a conversationId to list the instances that do exist.`}function Eie(t,e){switch(e.statusCode){case"404":return z1(t);case"403":return`Not authorised to read execution data for "${t}" (403): the OAuth client needs the 'Architect > Flow Instance > View' permission and division access to the flow.`;default:return`Retrieving execution data for "${t}" failed`+(e.statusCode?` (HTTP ${e.statusCode})`:"")+"."}}function qie(t,e){if(e instanceof Zt)return e.message;let{status:n}=Et(e);return n===404?z1(t):n===403?"Not authorised to read execution data (403): the OAuth client needs the 'Architect > Flow Instance > View' permission.":`Failed to retrieve execution data for "${t}": ${ct(e)}`}function _ie(t){if(yu(t)&&yu(t.flow)&&Array.isArray(t.flow.execution))return t.flow;if(yu(t)&&Array.isArray(t.execution))return t;let e=yu(t)?Object.keys(t).join(", "):typeof t;throw new Zt(`The downloaded execution data had an unexpected shape (top-level: ${e}); expected { flow: { execution: [...] } }.`)}var Hie={executionId:te.string().min(1).describe("The flow instance (execution) id. This is the `id` of an entry returned by find_flow_execution, or the sessionId returned by test_bot_flow. It is not a conversation id or a flow id."),includeIr:te.boolean().default(!0).describe("Default true. Joins each action event to the flow's IR (the same graph flow_ir returns) using actionId, adding the action's type, task and outgoing edges, and lists the IR actions this instance never executed. Costs one extra flow configuration fetch. Set false when only the raw event log is wanted.")},D1=({architectApi:t,download:e=Oie,pollIntervalMs:n=Pie,maxWaitMs:i=jie})=>({config:{description:"Retrieves the historical execution data of one run of a Genesys Cloud Architect flow: the ordered log of what that single conversation actually did, action by action, with timestamps, the messages sent and received, the branch each decision or menu took, variable assignments, errors and the exit reason. Use it to see how a customer traversed a flow, to find loops and retries (summary.repeatedActions for actions run more than once, summary.loops for Loop actions and their iteration counts, summary.asksWithRetries for asks that re-prompted), errors (eventError events with a relatedAction) and dead ends, or to confirm a flow is behaving. flow_ir shows what could happen; this shows what did happen, this time. Each action event's actionId is the id of the flow_ir node whose kind is \"action\", and is accepted verbatim by flow_action. An action's outputPathId names the branch it took; joined to the IR it is the branch-output node :: (ir.takenBranch). Event kinds are usually named action for IR actionType Action (actionCommunicate is CommunicateAction, actionDecision is DecisionAction), with exceptions: actionUpdateData is UpdateVariableAction, actionJumpToTask is TransferTaskAction and actionAskForIntent is AskForNLUIntentAction; the ir.actionType annotation on each event is authoritative. events[] is in execution order; the IR's `order` field is not and must not be used for sequencing. trackingId is the action number shown in the Architect UI; gaps in it are authoring history, not missing actions. The instance's logLevel governs which sections exist: below 'all', variables and communications may be absent or empty, which is expected rather than an error. Pass the sessionId from test_bot_flow to see exactly how a test run traversed the flow; data is available seconds after the run ends, and such runs have a null conversationId.",annotations:{title:"Flow Execution Data",readOnlyHint:!0,destructiveHint:!1},inputSchema:Hie},handler:async({executionId:a,includeIr:r})=>{let s;try{let M=await t.getFlowsInstance(a),V=await Mie(t,M,n,i),N=V.entities?.find(_=>_.id===a)??V.entities?.[0];if(V.jobState==="Failed"&&!N)throw new Zt(`The retrieval job (${V.id??"unknown id"}) failed without reporting a cause.`);if(!N)throw new Zt(`The retrieval job (${V.id??"unknown id"}) completed with no results.`);if(N.failed||!N.downloadUri)return{isError:!0,content:[{type:"text",text:Eie(a,N)}]};s=_ie(await e(N.downloadUri))}catch(M){return{isError:!0,content:[{type:"text",text:qie(a,M)}]}}let{execution:o,...l}=s,c=Ry(o),u=c.events,p=c.summary,h=[],g=u.find(M=>M.kind==="endedFlow"),d=typeof g?.flowExitReason=="string"?g.flowExitReason:null;g||h.push("No endedFlow event: the run had not finished when the data was captured, or the log was cut short. Do not treat the last event as where the flow ended.");let m=Iy(u,".ConversationId"),w=yu(l.executionInfo)?l.executionInfo.logLevel:void 0;typeof w=="string"&&w.toLowerCase()!=="all"&&h.push(`This instance was captured at log level "${w}". Variable values, communications or action inputs/outputs may be absent because they were not recorded, not because they did not happen.`),l.isTruncated===!0&&h.push("isTruncated is true: the log was cut off by the execution cap, so later actions ran without being recorded."),p.repeatedActions.length>0&&h.push(`${p.repeatedActions.length} action(s) executed more than once; see summary.repeatedActions and each occurrence's executionId to tell iterations apart.`),p.asksWithRetries.length>0&&h.push(`${p.asksWithRetries.length} ask/menu action(s) needed more than one participant input (summary.asksWithRetries); the retries are the turns inside that event's execution[], not repeated actions.`);let f=p.eventKinds.eventError??0;f>0&&h.push(`${f} eventError event(s) occurred; each one's relatedAction names the action that was executing (matched on context.executionId), and context.reason gives the cause.`);let A=Date.parse(String(l.startDateTime)),b=Date.parse(String(l.endDateTime)),x=Number.isFinite(A)&&Number.isFinite(b)?b-A:null,S;if(r){let M=typeof l.flowId=="string"?l.flowId:void 0,V=typeof l.flowVersion=="string"?l.flowVersion:void 0;if(!M)h.push("The execution data carried no flowId, so no IR join was possible.");else{let N=await Wie(t,M,V,h);if(N){let _=xu(N.configuration);if(!_.ok)h.push(`The flow configuration could not be parsed into an IR (${_.error.code}: ${_.error.message}); events are unjoined.`);else{let W=zy(u,_.ir);u=W.events,S={configuration:N.configuration_source,unmatchedActionIds:W.unmatchedActionIds,unmatchedStateIds:W.unmatchedStateIds,actionsNotExecuted:W.actionsNotExecuted,warnings:_.warnings},W.unmatchedActionIds.length>0&&h.push(`${W.unmatchedActionIds.length} executed action id(s) have no node in the IR (ir.unmatchedActionIds). If the join used the latest configuration rather than the version that ran, the flow has probably been redeployed since; otherwise the action may live in a called common module or bot flow, which the parent's IR does not contain.`)}}}}let T={...l,executionId:typeof l.executionId=="string"?l.executionId:a,conversationId:typeof m=="string"?m:null,durationMs:x,flowExitReason:d,logLevel:typeof w=="string"?w:null,summary:p,events:u,...S?{ir:S}:{},...h.length>0?{notes:h}:{}};return{content:[{type:"text",text:JSON.stringify(T)}]}}});async function Wie(t,e,n,i){if(n)try{return{configuration:await t.getFlowVersionConfiguration(e,n),configuration_source:{flowVersion:n}}}catch(r){if(Et(r).status===410){i.push("IR join skipped: the flow has been deleted, so no configuration can be fetched. The events are still complete; only the ir annotations and actionsNotExecuted are unavailable.");return}i.push(`Could not fetch the configuration of flow version ${n} (${ct(r)}); the IR join used the latest configuration instead, which may differ from what ran.`)}else i.push("The execution data carried no flowVersion; the IR join used the latest configuration, which may differ from what ran.");let a=await Ma(t,e);if(!a.ok){i.push(`IR join skipped: ${a.message}`);return}return{configuration:a.configuration,configuration_source:{latest:!0}}}function Rie(t,e){let n=t.find(r=>r.id===e);if(n)return{match:n};let i=e.toLowerCase(),a=t.filter(r=>r.name.toLowerCase()===i);return a.length>1?{ambiguous:a}:a[0]?{match:a[0]}:void 0}var Iie={flowId:te.string().min(1).describe("The Genesys Cloud Architect flow ID"),task:te.string().min(1).optional().describe("Optional. Restrict the returned nodes to a single task, by task id or task name (case-insensitive). Use this to explore a large flow one task at a time. The full task list is always returned, and a node's predecessors and successors may reference nodes in other tasks, which will not appear in the filtered node list.")},G1=({architectApi:t})=>({config:{description:"Retrieves the intermediate representation (IR) of a Genesys Cloud Architect flow: a flat, ordered list of its actions with the branches connecting them. Use this to understand what an existing flow does. It answers what follows an action, which branch leads where, which actions are unreachable, and how tasks call each other.",annotations:{title:"Flow IR",readOnlyHint:!0,destructiveHint:!1},inputSchema:Iie},handler:async({flowId:e,task:n})=>{let i=await Ma(t,e);if(!i.ok)return{isError:!0,content:[{type:"text",text:i.message}]};let a=xu(i.configuration);if(!a.ok)return{isError:!0,content:[{type:"text",text:`Failed to parse flow "${e}" (${a.error.code}): ${a.error.message}`}]};let r=a.ir;if(typeof n=="string"){let s=Rie(r.tasks,n);if(!s){let o=r.tasks.map(l=>l.name).join(", ");return{isError:!0,content:[{type:"text",text:`No task matching "${n}" in flow "${e}". Available tasks: ${o||"(none)"}.`}]}}if("ambiguous"in s){let o=s.ambiguous.map(l=>`"${l.name}" (id: ${l.id})`).join(", ");return{isError:!0,content:[{type:"text",text:`Task name "${n}" is ambiguous in flow "${e}". It matches ${o}. Retry with the task id.`}]}}r={...r,nodes:r.nodes.filter(o=>o.taskId===s.match.id)}}return{content:[{type:"text",text:JSON.stringify({flowId:e,ir:r,warnings:a.warnings})}]}}});var N1=100,U1=10,Pu=160,zie=512;function Die(t,e,n){if(!e)return{ok:!0,query:t};try{return{ok:!0,query:new RegExp(t,n?"":"i")}}catch(i){let a=i instanceof Error?i.message:String(i);return{ok:!1,error:`Invalid regular expression "${t}": ${a}. Set regex to false for a literal substring search.`}}}function Gie(t,e,n){if(t.length<=Pu)return t;let i=e+Math.floor(n/2),a=Math.max(0,Math.min(i-Math.floor(Pu/2),t.length-Pu)),r=a+Pu;return`${a>0?"\u2026":""}${t.slice(a,r)}${r({config:{description:'Searches the raw Architect configuration of a Genesys Cloud Architect flow for text, and returns the actions containing it along with where in each action it matched. Answers "which actions reference X" \u2014 a queue name, a data action, a variable such as Flow.DNIS, a phrase in a prompt \u2014 in a single call. Use it instead of sweeping a flow with bulk flow_action lookups, which return whole action subtrees for actions that may not be relevant at all. Each returned actionId is an Architect GUID: it joins directly to flow_ir nodes whose kind is "action", and is accepted verbatim by flow_action. Search here to find the ids, then fetch those ids with flow_action when an excerpt is not enough. Matching is against string values only, never key names. A match in a wiring field locates text and is not a control-flow claim; flow_ir owns wiring.',annotations:{title:"Search In Flow",readOnlyHint:!0,destructiveHint:!1},inputSchema:Uie},handler:async({flowId:e,pattern:n,regex:i,caseSensitive:a})=>{let r=Die(n,i,a);if(!r.ok)return{isError:!0,content:[{type:"text",text:r.error}]};let s=await Ma(t,e);if(!s.ok)return{isError:!0,content:[{type:"text",text:s.message}]};let o=s.configuration;if(!Nie(o))return{isError:!0,content:[{type:"text",text:`The latest configuration of flow "${e}" has no flowSequenceItemList to search \u2014 the flow type may be unsupported. Nothing was searched, so this is not a zero-match result.`}]};let l=Ly(o,r.query,{caseSensitive:a,maxMatchesPerAction:U1}),c=l.hasMatches?l.matches:[],u=c.slice(0,N1),p=u.map(g=>({...g,matchedPaths:g.matchedPaths.map(d=>({path:d.path,excerpt:Gie(d.value,d.matchIndex,d.matchLength)}))})),h=[];return c.length>u.length&&h.push(`${c.length} actions matched; only the first ${N1} are returned, in encounter order. Narrow the pattern to see the rest.`),u.some(g=>g.truncated)&&h.push(`Some actions matched in more than ${U1} places; matchedPaths is not exhaustive for entries marked truncated.`),u.some(g=>g.matchedPaths.some(d=>d.value.length>Pu))&&h.push("Excerpts are clipped windows around the match, not whole values; fetch the action with flow_action when the full text matters."),{content:[{type:"text",text:JSON.stringify({flowId:e,pattern:n,totalMatchedActions:c.length,matchedActions:p,...h.length>0?{notes:h}:{}})}]}}});var Fy=new Map;function $ie(t){let{id:e,previousTurn:n,...i}=t;return i}async function B1(t,e,n){let i=[],a=n;for(;i.push($ie(a)),Fy.set(e,a.id),a.nextActionType==="NoOp";)a=await t.postTextbotsBotflowsSessionTurns(e,{previousTurn:{id:a.id},inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});let r=a.nextActionType;return(r==="Disconnect"||r==="Exit")&&Fy.delete(e),{content:[{type:"text",text:JSON.stringify({sessionId:e,turns:i})}]}}var Bie={flowId:te.string().optional().describe("The bot flow ID to test. Required when starting a new session."),sessionId:te.string().optional().describe("Session ID from a previous call. Required when continuing an existing conversation."),message:te.string().optional().describe("User message to send to the bot. Required when continuing a session.")},L1=({textbotsApi:t})=>({config:{description:"Tests a deployed Genesys Cloud Architect Bot Flow and Digital Bot Flow by simulating a text conversation. To start: provide flowId. To continue: provide the returned sessionId and a message. Turn tracking is managed server-side \u2014 only the sessionId is needed between calls. Returns { sessionId, turns[] } where each turn contains the raw API response (prompts with segments, outputLanguage, nextActionType, and action-specific data like modeConstraints or outputData). Multiple turns are returned when the flow sends consecutive messages (NoOp turns are automatically drained). nextActionType values: WaitForInput (send another message), Disconnect/Exit (conversation ended).",annotations:{title:"Test Bot Flow",readOnlyHint:!1,destructiveHint:!1},inputSchema:Bie},handler:async({flowId:e,sessionId:n,message:i})=>{try{if(n&&e)return{isError:!0,content:[{type:"text",text:"Provide either flowId (to start) or sessionId (to continue), not both."}]};if(!n&&!e)return{isError:!0,content:[{type:"text",text:"Provide flowId to start a new session or sessionId to continue an existing one."}]};if(e){let s=await t.postTextbotsBotflowsSessions({flow:{id:e},externalSessionId:"",inputData:{variables:{}},channel:{inputModes:["Text"],outputModes:["Text"],name:"Messaging",userAgent:{name:"GenesysWebWidget"}},language:""}),o=await t.postTextbotsBotflowsSessionTurns(s.id,{inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});return B1(t,s.id,o)}if(!n||!i)return{isError:!0,content:[{type:"text",text:"A message is required when continuing an existing session."}]};let a=Fy.get(n);if(!a)return{isError:!0,content:[{type:"text",text:`No active session found for ID "${n}". It may have expired or already ended. Start a new session with a flowId.`}]};let r=await t.postTextbotsBotflowsSessionTurns(n,{previousTurn:{id:a},inputEventType:"UserInput",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:i}}]}});return B1(t,n,r)}catch(a){return{isError:!0,content:[{type:"text",text:`Bot flow test failed: ${a instanceof Error?a.message:JSON.stringify(a)}`}]}}}});var Vy=te.object({GENESYS_REGION:te.string().min(1),GENESYS_CLIENT_ID:te.string().min(1),GENESYS_CLIENT_SECRET:te.string().min(1),DEPLOY_SCRIPT_PATH:te.string().min(1),PREVENT_LOGIN:te.enum(["TRUE","FALSE"]).default("FALSE").transform(t=>t==="TRUE")}).safeParse(process.env);if(!Vy.success){let t=Vy.error.issues.map(e=>e.path[0]).join(` +`)+m}]})}else{let w=s?.error??`Deploy runner exited with code ${g}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${w}${m}`}]})}})})}});function Ei(t){if(t===null||typeof t!="object")return{message:String(t)};let e="status"in t&&typeof t.status=="number"?t.status:void 0,n="code"in t&&typeof t.code=="string"&&t.code.length>0?t.code:void 0,i="message"in t&&typeof t.message=="string"&&t.message.length>0?t.message:void 0;return{status:e,code:n,message:i}}function Ea(t,e){return t===401?" The access token is missing or expired; re-authenticate (restart the MCP server) and retry.":t===403?` The OAuth client needs the '${e}' permission.`:""}function Qn(t){let{status:e,code:n,message:i}=Ei(t),a=[];return e!==void 0?a.push(`HTTP ${e}${n?` (${n})`:""}`):n&&a.push(n),i&&a.push(i),a.length>0?a.join(": "):"Unknown error"}function zr(t){return(t??"").toLowerCase()}function qa(t,e){return zr(t.name)===zr(e)}function Ah(t,e){return t.slice().sort((n,i)=>Number(qa(i,e))-Number(qa(n,e)))}var Kne=50,Zne=200;function Qne(t){return{id:t.id??"",name:t.name,type:t.type??"",publishedVersion:t.publishedVersion?.commitVersion??null,...t.description?{description:t.description}:{}}}var Xne={name:ee.string().min(1).describe("The flow name, or a portion of it, to search for. Matched case-insensitively against flow names, so a partial name like 'payment' finds 'Book_Payment'."),type:ee.array(ee.string()).optional().describe('Optional flow types to restrict the search to, e.g. ["inboundcall"], ["bot", "digitalbot"], ["workflow"]. Omit to search flows of every type.')},b1=({architectApi:t})=>({config:{description:"Finds Genesys Cloud Architect flows by name, resolving the human-readable name users know (e.g. 'Book_Payment') to the flow id every other flow tool requires. Returns each matching flow's id, name, type and published version. Matching is a case-insensitive search over flow names that accepts a portion of the name; flows whose name equals the query exactly are listed first. The returned id is accepted verbatim by flow_ir, flow_action, search_in_flow and flow_dependencies. A publishedVersion of null means the flow has never been published.",annotations:{title:"Find Flow",readOnlyHint:!0,destructiveHint:!1},inputSchema:Xne},handler:async({name:e,type:n})=>{try{let i=[],a=0,r=1;for(;;){let c=await t.getFlows({name:e,pageSize:100,pageNumber:r,...n?.length?{type:n}:{}});if(c.entities&&i.push(...c.entities),a=c.total??a,!c.nextUri||i.length>=Zne)break;r++}a=Math.max(a,i.length);let s=Ah(i,e).slice(0,Kne),o=[];if(s.length===0)o.push(`No flows matched "${e}". The search already accepts a portion of the name, so try a shorter fragment, or drop the type filter if one was given.`);else if(a>s.length){let c=`${a} flows matched; only ${s.length} are returned${qa(s[0],e)?", exact name matches first":""}.`;i.length0?{notes:o}:{}};return{content:[{type:"text",text:JSON.stringify(l)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to search for flows: ${Qn(i)}`}]}}}});var bh=200,x1=10;function y1(t){return t&&t!=="NONE"?t:void 0}function Yne(t){let e=y1(t.flowErrorReason),n=y1(t.flowWarningReason);return{executionId:t.id??"",flowId:t.flowId??null,flowName:t.flowName??null,flowType:t.flowType??null,flowVersion:t.flowVersion??null,conversationId:t.conversationId??null,...t.workitemId?{workitemId:t.workitemId}:{},startDateTime:t.startDateTime??null,endDateTime:t.endDateTime??null,...e?{flowErrorReason:e}:{},...n?{flowWarningReason:n}:{}}}function eie(t,e){return(t.startDateTime??"").localeCompare(e.startDateTime??"")}async function nie(t){try{return(await t.getFlowsInstancesSettingsExecutiondata()).enabled}catch{return}}var iie={conversationId:ee.string().min(1).optional().describe("The Genesys Cloud conversation id. Returns every flow instance that conversation ran, so a call that went through an inbound flow and then an in-queue flow yields two entries. Preferred filter: it is what the API indexes on."),flowId:ee.string().min(1).optional().describe("The Architect flow id. Returns recent instances of that flow, whichever conversation ran them. Combine with conversationId to pick one flow out of a conversation."),onlyWithErrors:ee.boolean().optional().describe("When true, only instances that ended with a flow error are returned (flowErrorReason is set). Applied to the instances the query fetched, so with a busy flow the errored runs beyond the API's 200-instance cap are not seen. Use it to find the runs worth inspecting with flow_execution_data.")},P1=({architectApi:t})=>({config:{description:`Finds the recorded executions (flow instances) of Genesys Cloud Architect flows, by conversation id and/or flow id. Returns each instance's executionId, flow id/name/type/version, conversationId, start and end times, and any flowErrorReason or flowWarningReason, oldest first. Use it to answer 'what did this conversation do' or 'has this flow been failing', then pass an executionId to flow_execution_data for the action-by-action log. Only the last ${x1} days are retained, the API cannot filter by date, and at most ${bh} instances are returned per query, so prefer conversationId. A run is listed only once it has ended. test_bot_flow runs have no conversation id, so find them by flowId or pass their sessionId straight to flow_execution_data.`,annotations:{title:"Find Flow Execution",readOnlyHint:!0,destructiveHint:!1},inputSchema:iie},handler:async({conversationId:e,flowId:n,onlyWithErrors:i})=>{if(!e&&!n)return{isError:!0,content:[{type:"text",text:"Provide a conversationId, a flowId, or both."}]};let a=[];e&&a.push({key:"ConversationId",operator:"eq",value:e}),n&&a.push({key:"FlowId",operator:"eq",value:n});try{let r=await t.postFlowsInstancesQuery({query:[{and:a}]},{pageSize:bh}),s=(r.entities??[]).map(Yne),o=(i?s.filter(p=>p.flowErrorReason!==void 0):s).sort(eie),l=Math.max(r.total??0,s.length),c=[];i&&o.length===0&&s.length>0?c.push(`None of the ${s.length} instance(s) fetched ended with a flow error. Drop onlyWithErrors to see them.`):o.length===0?await nie(t)===!1?c.push("No instances matched, and execution data storage is disabled for this org (Architect > Settings > Execution data), so none are being recorded."):c.push(`No instances matched. A run is listed only after it ends; execution data is kept for ${x1} days and is only captured for flows published after storage was enabled (republish older flows); and test_bot_flow runs have no conversation id, so search for them by flowId. Check the id, or query by flowId to see whether the flow records anything at all.`):l>s.length?c.push(`${l} instances matched but only ${s.length} were fetched. Narrow the query with a conversationId.`):s.length>=bh&&c.push(`The API caps results at ${bh}; older instances may exist.`);let u={query:{...e?{conversationId:e}:{},...n?{flowId:n}:{},...i?{onlyWithErrors:i}:{}},executions:o,total:l,...c.length>0?{notes:c}:{}};return{content:[{type:"text",text:JSON.stringify(u)}]}}catch(r){let{status:s}=Ei(r),o=s===400?" The query was rejected; check that the conversationId and flowId are well-formed Genesys Cloud ids.":Ea(s,"Architect > Flow Instance > Search");return{isError:!0,content:[{type:"text",text:`Failed to search for flow executions: ${Qn(r)}${o}`}]}}}});function _a(t){return t?.id?{id:t.id,...t.name?{name:t.name}:{}}:null}var tie=50,aie=200;function rie(t){return`*${t.trim().replace(/^\*+|\*+$/g,"")}*`}function sie(t){let e=_a(t.queueFlow),n=_a(t.emailInQueueFlow),i=_a(t.messageInQueueFlow);return{id:t.id??"",name:t.name??"",division:_a(t.division),memberCount:t.memberCount??null,joinedMemberCount:t.joinedMemberCount??null,dateModified:t.dateModified??null,...t.description?{description:t.description}:{},...e?{queueFlow:e}:{},...n?{emailInQueueFlow:n}:{},...i?{messageInQueueFlow:i}:{}}}var oie={name:ee.string().min(1).describe("The queue name, or a portion of it, to search for. Matched case-insensitively against queue names, so a partial name like 'sales' finds 'UK_Sales'. Wildcards are added automatically; do not include asterisks.")},j1=({routingApi:t})=>({config:{description:"Finds Genesys Cloud routing queues by name, resolving the human-readable name users know (e.g. 'Sales') to the queue's id and exact name. Returns each matching queue's id, name, division (id and name), memberCount (agents configured on the queue), joinedMemberCount (agents currently joined and taking work), dateModified and, when configured, its in-queue flows (queueFlow for calls, emailInQueueFlow, messageInQueueFlow). Matching is a case-insensitive search that accepts a portion of the name; queues whose name equals the query exactly are listed first. When several similarly named queues match, dateModified and the member counts help tell a live queue from an abandoned one. Use the returned exact name as the search_in_flow query to find the actions in a flow that transfer to the queue. The in-queue flow ids are accepted verbatim by flow_ir, flow_action, search_in_flow and flow_dependencies.",annotations:{title:"Find Queue",readOnlyHint:!0,destructiveHint:!1},inputSchema:oie},handler:async({name:e})=>{try{let n=[],i=rie(e),a=0,r=1;for(;;){let c=await t.getRoutingQueues({name:i,pageSize:100,pageNumber:r});if(c.entities&&n.push(...c.entities),a=c.total??a,!c.nextUri||n.length>=aie)break;r++}a=Math.max(a,n.length);let s=Ah(n,e).slice(0,tie),o=[];if(s.length===0)o.push(`No queues matched "${e}". The search already accepts a portion of the name, so try a shorter fragment.`);else if(a>s.length){let c=`${a} queues matched; only ${s.length} are returned${qa(s[0],e)?", exact name matches first":""}.`;n.length0?{notes:o}:{}};return{content:[{type:"text",text:JSON.stringify(l)}]}}catch(n){let i=Ea(Ei(n).status,"Routing > Queue > View");return{isError:!0,content:[{type:"text",text:`Failed to search for queues: ${Qn(n)}${i}`}]}}}});var lie=Ai;(function(t,e){let n=Ai,i=t();for(;;)try{if(-parseInt(n(224,"aGl^"))/1+-parseInt(n(226,"fP8A"))/2+-parseInt(n(230,"*Jz8"))/3*(-parseInt(n(229,"YKKw"))/4)+parseInt(n(231,"qVUr"))/5+-parseInt(n(220,"iE3t"))/6+-parseInt(n(234,"9INm"))/7*(-parseInt(n(237,"hqdc"))/8)+parseInt(n(235,"aGl^"))/9===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(xh,280123);function Ai(t,e){t=t-220;let n=xh(),i=n[t];if(Ai.xvPbyB===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;ht+lie(227,"$nkS");function xh(){let t=["WOn2W5xcTw/cSCoWW5ddIa","WQaGW5tcKaGFWQddRmoeWO8YW7C","WQG7WOzzWOvchCobWRhcT8k6WQrX","m1jyW69umv7dGqfHWOmuW5e","W4XZoYn/W4Ws","W4HsW4RcTNZdSmkGWPnHW5hcHW3cSa","W6HdjSojWRFdMSooW490","t2dcUglcVmkJWQ3cLLBcNW","WOldPxrlWO/cVMXMq8oJpSoveq","WRxcJbJcJ8k1WPD9qCoWWPBcPMtdQG","WOLEWPNcISoZW4HYW7/cNSkW","WO/dO8kelGHXsG","WQuOW57cKqCCW6ldJSo+WOOaW7RcPG","ub/dISo/ahlcVr5BWPNdRhDk","WQZdHmofpCkxaSk6EetdVWVdKGe","W7xdUCoAW6vsACoM","xmkWpuXolthcKZ/dNcCVW7S","W6b1f099mKJcM3iDWRddRa","rWiUWPuaCLlcRmoKWP/cIgNdTq"];return xh=function(){return t},xh()}var Ha=(t,e)=>t+"::"+e;(function(t,e){let n=sn,i=t();for(;;)try{if(parseInt(n(383,"jP%N"))/1*(parseInt(n(399,"5H9f"))/2)+parseInt(n(501,"0rXo"))/3*(-parseInt(n(401,"Hz0W"))/4)+parseInt(n(423,"Hz0W"))/5*(-parseInt(n(510,"EMx@"))/6)+-parseInt(n(412,"L*Ud"))/7*(-parseInt(n(405,"w$ck"))/8)+-parseInt(n(483,"eM5c"))/9*(parseInt(n(441,"dQmY"))/10)+-parseInt(n(473,"[8UY"))/11+-parseInt(n(370,"hnuZ"))/12*(-parseInt(n(311,"dQmY"))/13)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(yh,426937);function sn(t,e){t=t-309;let n=yh(),i=n[t];if(sn.DYlBxB===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h{let s=e;if(!n[s(495,"[8UY")](so,a)||n[s(459,"7yyp")](Object[s(390,"LxR8")](a)[s(389,"Iyrj")],0)){i[s(326,"qSJH")]({index:r,kind:n[s(499,"4J1r")],value:a});return}for(let[o,l]of Object[s(419,"dQmY")](a))if(n[s(329,"0vgR")](s(346,"qN4z"),n[s(452,"dQmY")]))i[s(466,"0rXo")](so(l)?{...l,index:r,kind:o}:{index:r,kind:o,value:l});else{if(!_0x2ec076(_0xd64bc3[s(500,"#xX5")]))return _0x3111c0;let c=_0x5597ba[s(440,"EMx@")][s(491,"[8UY")];if(typeof c!==s(318,"2yLq"))return _0x5828fa;let u=_0x5261be[s(460,"HCb$")](c);if(!u)return _0x2bbf78;let p={index:u[s(365,"qN4z")],...typeof u[s(471,"KSV[")]===s(467,"E8BW")?{actionId:u[s(446,"fCR2")]}:{},...typeof u[s(350,"R1KI")]===s(505,"hnuZ")?{actionName:u[s(496,"^(s3")]}:{}};return{..._0x5e9605,relatedAction:p}}}),i}function cie(t){let e=sn;if(!Array[e(393,"qSJH")](t[e(448,"z6O^")]))return 0;let n=0;for(let i of t[e(407,"eiFV")])so(i)&&so(i[e(388,"K&7W")])&&i[e(517,"qSJH")][e(447,"B6qy")]&&n++;return n}function pie(t){let e=sn,n={cmOJH:function(a,r){return a===r},vTNQV:e(494,"W#ne")},i=new Map;for(let a of t)typeof a[e(338,"Nqq8")]===e(505,"hnuZ")&&typeof a[e(413,"MY6q")]===n[e(361,"GfrY")]&&i[e(426,"EMx@")](a[e(438,"6ysH")],a);return t[e(330,"^iMM")](a=>{let r=e;if(!so(a[r(502,"qSJH")]))return a;let s=a[r(355,"4J1r")][r(457,"Iyrj")];if(typeof s!==r(333,"eM5c"))return a;let o=i[r(334,"0rXo")](s);if(!o)return a;let l={index:o[r(492,"z6O^")],...n[r(315,"4J1r")](typeof o[r(436,"qN4z")],n[r(454,"W^OT")])?{actionId:o[r(515,"R1KI")]}:{},...typeof o[r(335,"Hz0W")]===n[r(313,"dWBv")]?{actionName:o[r(424,"hnuZ")]}:{}};return{...a,relatedAction:l}})}function die(t){let e=sn,n={eTadv:function(l,c){return l===c},ZDKIl:e(468,"jP%N"),kWlrN:e(397,"B6qy"),QcTxy:e(425,"W#ne"),WyTSw:e(409,"lA8O")},i={},a=new Map,r=[],s=new Map;for(let l of t){if(n[e(327,"2yLq")](n[e(377,"2yLq")],n[e(520,"R1KI")]))return _0x7f7213[e(418,"z6O^")](_0x57b9cd[e(411,"jP%N")]),{..._0xf35b9,ir:null};{if(i[l[e(349,"jP%N")]]=(i[l[e(493,"Iyrj")]]??0)+1,l[e(503,"MJxN")]===e(369,"hi%I")&&l[e(384,"0vgR")]){let p=l[e(347,"Hz0W")];if(n[e(351,"R1KI")](typeof p[e(472,"4J1r")],e(391,"dWBv"))){let h=s[e(477,"6ysH")](p[e(319,"qSJH")]);if(h)h[e(321,"4J1r")]++;else if(n[e(408,"B6qy")]===e(484,"Wrzb")){if(!_0x470b02[e(432,"fCR2")](_0x9a7a1d[e(514,"E&pm")]))return 0;let g=0;for(let d of _0x46399e[e(456,"Hz0W")])_0x4b58c6(d)&&_0x29a349(d[e(439,"eiFV")])&&d[e(394,"2yLq")][e(376,"7yyp")]&&g++;return g}else s[e(415,"h685")](p[e(455,"JkKi")],{index:p[e(518,"Hz0W")],actionId:p[e(309,"^(s3")],...p[e(435,"9aZr")]?{actionName:p[e(461,"5H9f")]}:{},iterations:1})}}if(typeof l[e(515,"R1KI")]!==e(417,"qN4z"))continue;let c=cie(l);c>1&&r[e(475,"GfrY")]({index:l[e(442,"7yyp")],actionId:l[e(450,"hi%I")],...typeof l[e(342,"0rXo")]===n[e(410,"[8UY")]?{actionName:l[e(404,"Iyrj")]}:{},participantTurns:c});let u=a[e(368,"S6OS")](l[e(322,"dWBv")]);u?(u[e(522,"eiFV")]++,u[e(434,"qN4z")][e(310,"Qtd0")](l[e(526,"dWBv")])):a[e(508,"Hz0W")](l[e(373,"6ysH")],{actionId:l[e(375,"lA8O")],...typeof l[e(451,"eiFV")]===n[e(356,"W^OT")]?{actionName:l[e(470,"Wrzb")]}:{},executions:1,eventIndexes:[l[e(374,"W^OT")]]})}}let o=[...a[e(380,"JkKi")]()][e(498,"4J1r")](l=>l[e(396,"R1KI")]>1)[e(464,"hi%I")]((l,c)=>c[e(344,"MJxN")]-l[e(481,"z6O^")]);return{eventCount:t[e(422,"Qtd0")],eventKinds:i,repeatedActions:o,loops:[...s[e(317,"^iMM")]()],asksWithRetries:r}}function Dy(t){let e=sn,n={xlZJH:function(a,r){return a(r)},OACIO:function(a,r){return a(r)}},i=pie(n[e(478,"dWBv")](uie,t));return{events:i,summary:n[e(509,"0vgR")](die,i)}}function Gy(t,e){let n=sn,i={NYpzL:n(414,"E&pm"),xylGK:function(a,r){return a(r)},URZVL:function(a,r){return a===r},mDLTC:function(a,r){return a!==r}};for(let a of t)if(Array[n(469,"MJxN")](a[n(357,"E&pm")]))for(let r of a[n(474,"Qtd0")]){if(i[n(479,"L*Ud")]!==n(488,"2yLq"))return _0x1f1383[n(379,"Hz0W")](_0xd8051c),{..._0x5c77e3,ir:null};if(i[n(504,"MJxN")](so,r)&&i[n(314,"MY6q")](typeof r[n(512,"eM5c")],n(417,"qN4z"))&&r[n(341,"5H9f")][n(433,"E8BW")](e)&&i[n(363,"0rXo")](r[n(362,"B6qy")],null)&&i[n(523,"HCb$")](r[n(364,"KSV[")],void 0))return r[n(378,"z6O^")]}}function yh(){let t=["wweUWRTFW67dGdtcRG","pdVcMSkM","WQ5Ae2Cdrde","W5z1WQKdEMFcKGG","fSkJegZdRq","WOLmwbHN","W7iXW6iaAW","WQRdUSodtmkK","cmoYWRe5WOW","WPHEWP0+W5SEW6tcGa","FSk2vSo9WQCh","g8o9fW","WR0KWPzWWOxdNSkmWPJcQq","vY1wm8kCxCooWPJcMSkqs8k+nq","W7ftWRu","DvOrW5/dGa","WOyIWPWeCL/cStq","WQ5hnNaj","xqfUW73dONzsW7C","WOPjWOa+W6irW7FcMmowW4xcNdhcGs9a","WR1BW67dIc8","tdPuW4a+","W7pdICoi","W6PtWQNcH8o/WOy","W6/cO8kDdmo1WOJdICk/WOrbjq","mmkOh13cMbe","oCksiI7cTSoremkn","EmkYsCo3WPOgW5zarGFdTCkqCW","A8ohiW","WRSEqa","e8ofW7m+WOO","W5CXzwW","W6BdPXtcGmoZW5O","WQFcLSofma","nCo7W5y5WQldPG","WQzhEmotW6a5uW","sCkZDqjVW55f","WPnQW5FdRW","WRyBrSoOWPu","W5etrGpdLM/cSHpdUmkt","WPzzFs9o","EmogjHVcISoLemk1Aq","CmoKxWhdGGvKWPHaW73cIa","W7/dJmoC","WQdcNCkEWQ9phmkqW6KpW7zvgKK","WQhcNmojW4aRE8okW7m","hCo7f8oOWO1WW5ZdUa","W6VdOq7cJSoOW5X7x8oQyG","EsVcVteWaXhcQgHmEmoCW7q","W5zXW5fEkahdIcOjW6lcL8kDdq","WR3dPIJdRSkdWQbrcCoT","WQ5oybv7","tXzOW73dO38","WQlcQmofC8kj","A8oamXhcJCoQo8k9","WR8hkmkftCkaW7ye","De1CWPXXBmo/sMJcHNO","xumSWR5X","WQbmzW","WQ0dW7HVWPa","eSoOWQC1WPPo","wZ9C","rCkLpCozWPFdO1W","W77dOWNcJmooW5y","WPHAWOq2W5WYW7FcJCorW4xcNq","vXTwj3SE","WQRcLmkzW4WvxCo6W7e5","b34BACoga8kWWOpcKSkG","WQlcJCk1gCkT","WQKFua","W44XDNRdNW","W4bFWPa","WQJdUSoCuSkpWPRdGmkV","W70drSoRWQlcRq","CffD","oWBdJmkTW4bMuW","dh/cLgVcImkBvaS","bmoQWRaYWObGWOJdImobW5jmra","a09cWPJdVmoPECksySkV","amo/WQe1WPThWQ/dIa","W6WbW5W9rHG","WOi5WO0oAexcKt8cW77cMW","WQZdQZ/dOW","WRKvsSo5WPZcU8kR","eCo7ECksW47dGwRcKf7cKa8","WOvvWOS2W4O","W73dMmoyW6ykwSo4W4ypW4z5lq","eCoWbeKTW7H5wLLtWOu","WRNdLc3cN8oVW7bC","mXBdUCk2W51Py8ks","WPLFwWbsWRSrBqddICkThqT5W6u","xYnDW5yUWRranxm","iSk/gv3cMrHuWPr4W4S","WRKXWOD3WP7dVmkQWPm","WRNdVtNdPmkzWRP2b8oUWQq","C8kblCobWPK","dCkwlG","WRf9heqN","W7vCWQhcL8oI","W7FdLCojW7ukwSobW4Gv","W6/dUH/cHmoYW4zCuCoPtSkH","ceGmDxOGeCoufSkO","WR58WRyFW7m","d3zX","iSk/gv3cMrHoWOXLW4S","W4a5DCoQWR0","W7pdJSoyW78qqmoHW4m","WQS9WOfQ","WQ4Bv8oMWRFcOSkYdW","W68aW508","gMxcGNhcSCkv","BCotadZcQW","W45jWQxcSSkEWOVdMG","EfGhW5pdG8ops8kUeCkk","WR3dUmoBumkUWPxdPmkU","ehJcH8kdWOhdNSogW7e","W4ddOCkJf8ooW5i5eLGBW7/cUmoj","tr9kkw4ud8oufa","emkclvu","WPupW5pdT8ovW57cL8oonuH0WRfY","WOaKWPW","pSoJW74AWOq","W4bQgCkrzG","qYVdI8oFW5JdUCoyW7agir4","xYnDW5yUWRranxpcGG","W6VdOq7cJSoOW5X8wG","qvZcJffIvSozWOPbWPm","AMm9W67dUa","ESkuqr5Z","W6/dN0Kmf8oag8odW6S5W61NW54","imoGW5yvWQ3dOSkU","WPvCW5xdRqW","W6BdJmoFW70m","uSkLvrn1W55ECgK","WPdcQCo0q8klWPnLn0q0W4G","uZvCW5aJ","W6hdQXtcGW","WOxcVCk3fSk6FW","WQFcHCo2v8kP","WQipW6HJWOZdVWhdL1KV","d8o9WRG5","f3lcN8kEWOVdGG","ouRcLCkpWOm","W60ywSo2WQNcSSkC","WQWJW7KSqd0+","q8kVwGr4W4Di","W4XtWORcPa","W59dWOJcH8kN","fwKDACohcG","WRPAuSopW70Vra","kN3dVM9Mwq","W6hdImoy","rCkwzSoFWQe","W6Hkhmk4W4/cISkid8kulGa","ogRdUg9Nua","baVdIG12ySohWOP+WPGvWPa","WRNdVtNdPmkzWRPSh8oZWQq","sNG5WRflW7JdHt7cSW","W5uivWNdJhxcKHG","e8oTf8oXWPDQW4xdVrZdN8oJpq","vmk1rH4","W7VdG8oiW7mh","W4CEqapdHMJcQbpdPmkt","W588tXldRq","WQLgnNac","WR3dPIJdRSkdWQbrcCoTWRi","bvDjbKi","s8kIj8op","dNWC","l8oHW4a1WRq","WQipW6HJWOZdVWBdKG","sWTlka","eCo9CmoIWQNdKM3cHeK","WQpcM8kvW58OESoQW7u5","mmoBW6ObWPO","rgDJWQLi","eNBcVmkGWQy","aKWozSor","wXBcKc1irG","WPrRW5FdQc1v","sCkUubvL","ECowjbVcH8o3aCk2FSox","gg/cLSkyWO/dHmoMW7OpgW","j8oSW5a5WQpdR8kpuq","W6Ksqa","vmkHrXTuW5S","W4iNy2VdOmoW","umk1rXG","WOjlW4tdPtu","WOeOWOqzEem","wmkqFmoAWQ8","qbBcJa","tbtcIdfcw8kZW4W","bCkaW61znha","ar7dIG15zW","W7GqW5O","W7pdJSoyW78qqmoMW4ywW4S","WPnmvGHU","d8oSaSo1WODxW7e","c8kbW7nvogPKW7u","lSk9hq","gCkwW6zimK1j","nCk9h13cLXrSWOHgW4/cOWG","W74wW5O9rXezWR7cIde","eWNdJa14BSo/WPzaWPW","W4jcWOhcO8kzWP7dISoJkf8","WRZdJYZdQ8ko","l8osWPq0WOu","W6ddImoaW7Cls8omW6yyW5PzjL4","WPtcSSoLsCkrWOLyivOy","yCokkrW","W5uivWNdJhxcLr3dU8kf","W5e/qGtdLq","CYFcV1XJrhFcVfK","EHDmcfG","W5jXW5PAlqtdJrOEW5hcRmkHeW","eNtcNCkEWOVdImo7","WPbqbKyg"];return yh=function(){return t},yh()}function Ny(t,e){let n=sn,i={dQafx:function(p,h){return p===h},UJWnF:n(382,"5H9f"),AitHW:function(p,h,g){return p(h,g)},muaxP:function(p,h){return p(h)}},a=new Map(e[n(521,"W^OT")][n(498,"4J1r")](p=>p[n(524,"dQmY")]===n(507,"w$ck"))[n(371,"JkKi")](p=>[p.id,p])),r=new Map(e[n(489,"Hz0W")][n(400,"Hz0W")](p=>[p.id,p])),s=new Set,o=new Set,l=new Set,c=t[n(339,"5H9f")](p=>{let h=n;if(typeof p[h(403,"S6OS")]===h(511,"w$ck")){s[h(386,"EMx@")](p[h(463,"Hz0W")]);let d=a[h(323,"#xX5")](p[h(482,"Iyrj")]);if(!d)return o[h(431,"MY6q")](p[h(331,"^iMM")]),{...p,ir:null};let m={nodeId:d.id,...d[h(513,"eiFV")]?{actionType:d[h(449,"5H9f")]}:{},taskId:d[h(420,"Iyrj")],taskName:d[h(429,"KSV[")],terminal:d[h(366,"7yyp")],reachable:d[h(398,"jP%N")],successors:d[h(519,"R1KI")]};if(i[h(316,"hnuZ")](typeof p[h(443,"Hz0W")],i[h(387,"dWBv")])){let w=i[h(353,"Qtd0")](Ha,d.id,p[h(516,"S6OS")]),f=d[h(320,"jP%N")][h(358,"BHte")](A=>A.id===w);m[h(421,"7yyp")]={nodeId:w,...f?.[h(395,"EMx@")]?{label:f[h(372,"Wrzb")]}:{},inIr:f!==void 0}}return{...p,ir:m}}let g=i[h(345,"eiFV")](typeof p[h(340,"Nqq8")],h(437,"0rXo"))?p[h(337,"S6OS")]:typeof p[h(324,"qSJH")]===h(430,"#xX5")?p[h(367,"0vgR")]:void 0;if(g!==void 0){let d=r[h(428,"MJxN")](g);return d?{...p,ir:{nodeId:i[h(427,"K&7W")](ht,d.id),taskId:d.id,taskName:d[h(497,"qN4z")]}}:(l[h(385,"jP%N")](g),{...p,ir:null})}return p}),u=e[n(416,"^(s3")][n(328,"6ysH")](p=>p[n(524,"dQmY")]===n(325,"K&7W")&&!s[n(525,"hnuZ")](p.id))[n(453,"GfrY")](p=>({id:p.id,label:p[n(336,"B6qy")],...p[n(348,"[8UY")]?{actionType:p[n(343,"eM5c")]}:{},taskName:p[n(465,"EMx@")],reachable:p[n(490,"qSJH")]}));return{events:c,unmatchedActionIds:[...o],unmatchedStateIds:[...l],actionsNotExecuted:u}}function Ph(){let t=["tvRdS8oT","W4dcK8knDSkNWRiM","CCk+hcnXiSofW5hdNq","cvNcLh7cUWOQWOumDbWcwq","W4SQWOTJeGfXqNpcNLxcHfi","WPFdPMVdM8klteG7","WOBdO3/dLCk2","CwxdPSk+WOK","kmofEx0hv23cHCosWPBcRGW","F8kdlc1d","faJcV8kVWRCSW4NdQHxdPgzmWQi","Dmoxn8oU","W57dUSoK","W6tdOxFdQHG","WPddQ8kN","asHSW5HpW6RcK8kAE8kPi1m","WPddOMW","W43dVSoJW57dR8oj","jmocWRuxWPq","WQXcWR4","WPtcSCkcxCk4","oLZdLmopW6GydCoSf24CWPC","DmoaWQLV","W6BdKmkx","WQPdWQ4","jCo0WRxcRmol","W7mtW7TQx2W9W7H+lcVdGW","W6pcJCoZ","zmkqoYn4cG","WPFcP8kPC8kH","AehdTmkcWRa","WP7cOSkpvq","W6vei8kOn3b1WPNdMSkhW7S","nmoVw3aozSkzW7hdLSogWP9NW40","mYdcJ8kJvCofjH4","W7BcMSoOWRm","l8o5WRBcVCoQWRyB","umoKWQmbW4m7W4y","rhuTWOeqWRBcPmk8","iSo8WRNcRq","W6dcNCo0WRy","cG11W5xcUmkhW7O","yCk6hcTmoCorW4ddHSoCWP0","WQrHySowWPO","WPhdOM3dG8kKt0K7W4ddVCk7pKG5hW","x8orWONdICoKCSkr","wsfj","W77dUa0","j8oLkG","faJcSSkSWRqVW4FdUJ7dV2LqWRC","WO/dPNRdLCkP","jCoFWRuxWPu","WQmEW4lcV8kHbuu","WORdSdDmiG","WP/cTCku","eaVcSSkTWRiPW47dMZ7dT0PCWRu","x2CwWQCm","WQTCz0y","WOZdTxZdLCk3","BK/dOW","W7Dapmk+igO","WPJdVmk3W4ddPa","nSkxWRWBo1b8wq","W7a1W67cVmkRhfxdHmkeW4i","WQPeWR42bJSIW5nNiG","iCkCbq","fSosWRCF","WPKeWPJcHwK","CmobW7PbqqmMB8ovCmonfCoy","tSk6dW","WPhdVmk8W4G","CSkRWQe","pvddN8oiW68DA8oekgyYWPuX","W5/dRCo/W5G","WOantW","mmkgcsjvp8oW","W4/dT8ocWQRcSxBdHHTgW4jR","lSoVoLPb","hCozWOG2W6C","W703W7JcSmkO","W7/cK8oI","lmovWQu","WPeox8kvW6RcICkKlGS","WRDiDKSp","FSkNWRTR","WR9cWRGYadSxW4y","WQnYDq","nCkhW6GWxsuuCmorjSkZWRKJ","W4xdQ8osWR3cUG","lSoWWQm","WOunta","vMiWWOe","D8kupa","w8kZfmocW7JdMYlcRq","E8oQWPe","W7hdVaO","W7ZcG8oLWPK","k8kgBSkZWRpcQSkRWPbuWPy8jsy"];return Ph=function(){return t},Ph()}(function(t,e){let n=bi,i=t();for(;;)try{if(-parseInt(n(281,"A0u7"))/1+-parseInt(n(312,"d0^)"))/2*(-parseInt(n(268,"$cbr"))/3)+parseInt(n(293,"syD$"))/4+-parseInt(n(335,"syD$"))/5*(parseInt(n(263,"IQ#M"))/6)+parseInt(n(328,"KMPv"))/7*(parseInt(n(305,"%JMY"))/8)+parseInt(n(264,"Efp4"))/9+-parseInt(n(332,"A0u7"))/10===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Ph,208402);function S1(t,e,n,i){let a=bi,r={GAXvj:function(m,w){return m!==w},owIKu:a(267,"6*Yk")},s=new Set(e[a(342,"#6vq")][a(350,"l[ga")](m=>m[a(291,"NCCl")]+" "+m.to)),o=new Map,l=new Map,c=new Map,u=new Map;for(let m of t[a(290,"6*Yk")][a(358,"7vJM")]())o[a(329,"l4yr")](m,[]),l[a(340,"ZT4E")](m,new Set),c[a(276,"%KC7")](m,[]),u[a(287,"874T")](m,new Set);for(let m of t[a(266,"%KC7")]){let w=s[a(325,"ah1P")](m[a(330,"xKGe")]+" "+m.to),f=o[a(274,"xKGe")](m.to);if(f){let b=m[a(295,"874T")]+" "+(m[a(343,"#h]L")]??"")+" "+w,x=l[a(355,"A)an")](m.to);x&&!x[a(354,"ekzM")](b)&&(x[a(284,"Cu3(")](b),f[a(300,"874T")]({id:m[a(351,"A(UC")],label:m[a(285,"w5j#")],backEdge:w}))}let A=c[a(314,"NCCl")](m[a(330,"xKGe")]);if(A){let b=m.to+" "+(m[a(310,"%KC7")]??"")+" "+w,x=u[a(308,"^tWw")](m[a(333,"pcg!")]);x&&!x[a(307,"A)an")](b)&&(x[a(306,"Snah")](b),A[a(282,"*(YD")]({id:m.to,label:m[a(280,"NCCl")],backEdge:w}))}}let p=-1;for(let m of e[a(269,"$cbr")][a(320,"gR)9")]())if(r[a(338,"9Q]Q")](r[a(289,"NCCl")],r[a(316,"A(UC")])){let w=_0x174721[a(313,"psGd")][a(346,"#)Ez")](_0x4f5a06),f=w?_0x598e7a[a(318,"%KC7")][a(279,"Cu3(")](_0xd1afec):_0xdf0143++;_0x32e236[a(317,"#h]L")]({id:_0x106e68,kind:_0x42486b[a(344,"7dxS")],actionType:_0x26994e[a(323,"d0^)")],label:_0x58585c[a(339,"d0^)")],description:_0x3eb73d[a(302,"syD$")],predecessors:_0x4a2077[a(283,"tIoe")](_0xab6f3a)??[],successors:_0x1b3bab[a(272,"pcg!")](_0x514e2f)??[],order:f,taskId:_0x4ad2eb[a(288,"$cbr")],taskName:_0x10cde3[a(265,"%KC7")],reachable:w,terminal:_0x429bd9[a(345,"Cu3(")]})}else m>p&&(p=m);let h=p+1,g=[];for(let[m,w]of t[a(337,"^tWw")]){let f=e[a(348,"MG2a")][a(334,"l[ga")](m),A=f?e[a(303,"#)Ez")][a(352,"$cbr")](m):h++;g[a(356,"ZT4E")]({id:m,kind:w[a(299,"w5j#")],actionType:w[a(324,"Cu3(")],label:w[a(327,"pM0e")],description:w[a(292,"gR)9")],predecessors:o[a(331,"7dxS")](m)??[],successors:c[a(349,"w5j#")](m)??[],order:A,taskId:w[a(277,"pcg!")],taskName:w[a(322,"KMPv")],reachable:f,terminal:w[a(298,"A(UC")]})}g[a(326,"]x1E")]((m,w)=>m[a(321,"xKGe")]-w[a(278,"VqTH")]);let d=n[a(360,"syD$")][a(296,"w5j#")](m=>{let w=a,f=n[w(273,"*M4V")][w(341,"VqTH")](m);return f?[{id:m,name:f[w(271,"U9vv")],reusable:n[w(304,"%KC7")][w(319,"6*Yk")](m)}]:[]});return{flowName:n[a(353,"l4yr")],flowType:n[a(294,"y&a1")],entryTaskId:n[a(336,"MG2a")],reachabilityIsComplete:i,tasks:d,nodes:g}}function bi(t,e){t=t-263;let n=Ph(),i=n[t];if(bi.znkCfw===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h0?i:void 0}function qt(t,e){for(let n of e){let i=Dr(t,n);if(i!==void 0)return i}}function O1(t){let e=Rn,n={lxnGV:e(291,"fPhz"),VZqVk:function(s,o){return s===o},MHMib:e(370,"0Lad"),ZlFuE:function(s,o){return s===o}},i=t[e(358,"9p5&")];if(i==null||typeof i!==n[e(268,"eI6O")])return;let{text:a,type:r}=i;if(n[e(256,"U&AD")](typeof a,e(345,"p]xl"))&&a[e(355,"eI6O")]()[e(297,"7n)4")]>0)return n[e(357,"0Lad")]===e(312,"(9GF")?a:_0x148013;if(n[e(285,"eI6O")](typeof r,e(372,"XO8H"))&&r[e(334,"LwJ%")]>0)return r}function Uy(t,e){let n=Rn,i=t[n(361,"x9yy")](a=>a[n(327,"QH7b")]===e);return i?(i[n(350,"E8l1")]=!0,t):[{outputId:e,label:$y(e),synthetic:!0,terminal:!0},...t]}var ju={isTerminal:()=>!0,outputs:()=>[]},T1={isTerminal:()=>!0,describe:t=>qt(t,[ke(381,"(9GF"),ke(351,"p]xl"),ke(337,"#sGp"),ke(347,"#sGp"),ke(344,"&fy9"),ke(301,"%B@G"),ke(323,"^eh#"),ke(306,"^b[q")]),outputs:t=>Uy(Gr(t)[ke(310,"0Lad")](Nr),ke(324,"iM)p"))},hie={isTerminal:()=>!1,outputs:t=>{let e=ke,n={IjSsO:function(r,s){return r!==s},woygd:e(303,"Gd1D"),tXMgr:function(r,s,o){return r(s,o)},duYiW:function(r,s){return r===s},lyAdm:e(262,"ia!E"),QIwHT:function(r,s){return r>s}},i=t[e(326,"d]kj")];if(!i||n[e(290,"U&AD")](typeof i,e(279,"Y]7V")))return n[e(364,"J0U5")]!==e(264,"LwJ%")?[]:_0x54a9d7+e(267,"1%8s")+_0x5a70d8;let a=n[e(333,"^b[q")](Nr,i,0);return a[e(383,"(9GF")]=e(378,"LwJ%"),!(n[e(282,"wqVc")](typeof i[e(343,"(9GF")],n[e(302,"%B@G")])&&n[e(353,"LwJ%")](i[e(258,"wqVc")][e(296,"Ty&P")],0))&&(a[e(265,"gS7Z")]=e(270,"d]kj")),[a]}},gie={describe:()=>ke(266,"ia(N"),outputs:()=>[]},mie={outputs:t=>Uy(Gr(t)[ke(274,"Us2H")](Nr),ke(374,"1]tn"))},fie={isTerminal:()=>!0,describe:t=>qt(t,[ke(368,"XJZ2")]),outputs:t=>Uy(Gr(t)[ke(380,"^b[q")](Nr),ke(287,"]D^n"))},wie={outputs:t=>{let e=ke,n={KMYVf:function(a,r){return a(r)}},i=n[e(278,"p]xl")](Gr,t);return i[e(273,"eI6O")]>0?[Nr(i[0],0)]:[]}},vie={isTerminal:()=>!1,describe:t=>{let e=ke,n={xYtEx:function(a,r){return a(r)},LjSTl:function(a,r){return a>r}},i=n[e(319,"2wgT")](Gr,t)[e(259,"qDwC")](a=>typeof a[e(317,"E8l1")]===e(260,"wqVc")&&!/^__.*__$/[e(294,"Gd1D")](a[e(379,"1%8s")]))[e(286,"^eh#")](a=>a[e(336,"CVgF")])[e(363,"gPPi")](a=>typeof a===e(275,"@C09")&&a[e(313,"wqVc")]>0);return n[e(382,"EJ1E")](i[e(289,"XJZ2")],0)?e(309,"WD62")+i[e(316,"d]kj")](", "):void 0}},Xn=t=>({describe:t}),Oh={DisconnectAction:ju,EndFlowAction:ju,EndTaskAction:ju,EndStateAction:ju,ExitBotFlowAction:ju,LoopAction:hie,ExitLoopAction:gie,ProcessVoicemailInputAction:mie,CallBotFlowAction:fie,AskForNLUNextIntentAction:wie,WaitForInputAction:{},AskForNLUIntentAction:vie,CallTaskAction:{},TaskAction:{},TransferMenuAction:{},TransferTaskAction:{},LoopUntilAction:{},DecisionAction:Xn(O1),SwitchAction:Xn(O1),DataAction:Xn(t=>qt(t,[ke(257,"J0U5")])),DataTableLookupAction:Xn(t=>qt(t,[ke(371,"2wgT")])),CallCommonModuleAction:Xn(t=>qt(t,[ke(271,"1]tn")])),CallBotConnectorAction:Xn(t=>qt(t,[ke(331,"RFUh")])),CallDigitalBotFlowAction:Xn(t=>qt(t,[ke(283,"ia!E")])),AddFlowMilestoneAction:Xn(t=>qt(t,[ke(373,"EJ1E")])),ScreenPopAction:Xn(t=>qt(t,[ke(261,"ebpw")])),PlayAudioAction:Xn(t=>qt(t,[ke(315,"w[6O")])),SetFlowOutcomeAction:Xn(t=>{let e=ke,n={yPYgd:function(r,s){return r!==s},LMbYT:function(r,s,o){return r(s,o)},aDAFe:function(r,s){return r===s},lNAjZ:e(305,"LwJ%"),JiOkv:function(r,s,o){return r(s,o)},IcgfJ:e(339,"wqVc")},i=n[e(277,"p]xl")](Dr,t,e(300,"XJZ2")),a=n[e(338,"w[6O")](Dr,t,e(299,"wqVc"));if(i&&a)if(n[e(288,"7n)4")](n[e(335,"^eh#")],n[e(304,"(9GF")])){let r=_0x265ac2[e(322,"1%8s")];if(!r||pgTGNA[e(349,"2wgT")](typeof r,e(298,"qDwC")))return[];let s=pgTGNA[e(346,"x9yy")](_0x56d2c1,r,0);return s[e(295,"x9yy")]=e(330,"@C09"),!(pgTGNA[e(328,"9p5&")](typeof r[e(365,"RFUh")],pgTGNA[e(281,"^eh#")])&&r[e(367,"w[6O")][e(334,"LwJ%")]>0)&&(s[e(292,"#sGp")]=e(311,"]D^n")),[s]}else return i+e(354,"iM)p")+a;return i??a}),InitializeFlowOutcomeAction:Xn(t=>Dr(t,ke(359,"OmcJ"))),EvaluateScheduleGroupAction:Xn(t=>Dr(t,ke(352,"^b[q"))),FindSystemPromptAction:Xn(t=>Dr(t,ke(341,"@C09"))),SetUUIDataAction:Xn(t=>Dr(t,ke(276,"5j6r"))),UpdateVariableAction:{},SetAttributesAction:{},GetAttributesAction:{},EvaluateScheduleAction:{},CollectInputAction:{},GetResponseAction:{},AskForBooleanAction:{},AskForSlotAction:{},CommunicateAction:{},DigitalMenuAction:{},SendResponseAction:{},TranscriptionAction:{},FindQueueAction:{},FindUserPromptAction:{},SetWhisperAudio:{},BridgeServerAction:{}};function Th(){let t=["WOlcLtpcQCo6WRBcL8oPW4FdHNlcJK4uW6eFW5KN","CWZdMer0","W79TreTyf2NdQW","amkDlmoNW6S","W7ajWP52W6/cMSo4AYlcHxWYW6G","bCoaWRKQomkWW4KNwmkDWO5TAmogWOCZyqy","BSoqW4xcLSkuWQThW43cMSkQDW","rbjvWQvaCH92kSkCW5ZcHZq","imklcutcItRdJW","W6NdKSkhdczD","WRa4WRZcO8kBW4mw","C8otdSkPWQjB","WPBdSSoBWONcUCky","ANldM8o5ma","WQe5WPhcRSkaW4maffJcSSov","W5pdPXbrW5q","WPT6WOqVW4JcT3aS","WRvzW5SRWOZdJmkVAYFcPKylW7q","W7yjWOm3W5yL","zua4lmkUW54","ECoxW7hcLmkLWRO","kSkuW6tcSXC","WOvHjK7dIa","W4DjgazVBW","WQuJWQRcUmky","W4rkeazG","WRfqW5vkW77cT8o9Asi","WP1ErColW6y","WPvObxddImktlG","cSkWW4zqW6/cHmkOWOBcGuO","WO9ckSkhW6/cPhO","jM16rhZdTfK","W6tcJapcJSoIWP/cHq","WOjzW7lcHCk2W5DHxq","WO0An8oM","WOtcQ8kIxJ84","W6OnWPK4W5e","WR8pWONcKcS","WPhcT8kSW4ro","tCoYWPmBWQVcU8kzWPxcMhxcVW","W7KeWOWIW6m5","kCkfu8o3W6mfW6hdV8kMcCk4kSkN","emovWPqCpq","W5OmW7VcKmkAW6Xbu8oMF8osdq","W7mhWPS6W6S","W4FdPgqnWQO4","W5HkbGS","WQHwWPFdQa","WRe/WQ7cOmkvW4OxmW","WP43gY7cT2Wr","WPSAr1C0kSoaW5SgW5tcUMjX","mZnfW4xdNMaDWOBdRa","x1P4W5JdVLCVWPG","WRidWP7cLCk4","W7XIWR89WP9bDciIW5bv","D8oeWRddOeOJaGrloSk1W6xcUq","ccZcQGpdKwxdRmoocSoiWQuTWPu","WRBcH8k+","WOLifSkeW7NcOM1YWPTSW7S","W4vohbzEFSkwW6OAW5xcNKvy","W6xdUWyvW5VcUW","WQRdOedcO8k1","lY5hW7JdJW","W6FdKwpdSmk9W6JdHCkOW5RdILJcLgmY","gJWvWPjg","WPDYFCoQW6S","dSk8WPhdGatdKCkGWPq","W6VcRqeOWOK","Ea3dLuryWOu","iCorBtNdMKtcIazviSkixSkn","iCohWQ89ja","mSkdW7fsW44","W6NdQxmcaG","obnNFmoUWO7dOcJdLsfNWPvbWRW","WPNcTdzEW799WOeFW75/bmk/","W7FdH8kf","WRK/W5j7W5Kvva0xW4X+kG","W4VcMsBdOSoZWRvyn8kPW7pdSa","W4tdP2WnWQu","WQCZWQ3cRCkwW4ux","rbqUW4CbaLXa","WQXawmoY","W7T5WPGKWOfd","bKesW7G","AColW6lcJ8kkWQK","W6bUW6xcLSk0W64rmeS","WONdU8oCWO3cQa","kmk7WOJdImkv","bGeSWPPZ","nmkCmSol","mCk1WOVcLLS","W7W+WPCjW4/cTNiu","W7tdLbT1W6O","WR4ywvTZ","hbL5W7G","WRRdI3ffW7nqW6WlW7q5WRZdT2S"];return Th=function(){return t},Th()}var Ur=Pn;(function(t,e){let n=Pn,i=t();for(;;)try{if(parseInt(n(255,"j^B7"))/1*(parseInt(n(232,"0i$R"))/2)+-parseInt(n(276,"vj#v"))/3*(parseInt(n(298,"ZHZ3"))/4)+parseInt(n(239,"WkcB"))/5*(-parseInt(n(285,"dFDU"))/6)+-parseInt(n(295,"RZJg"))/7+parseInt(n(256,"^x8F"))/8+parseInt(n(291,"X6ia"))/9*(-parseInt(n(269,"l!0i"))/10)+parseInt(n(273,"6ayi"))/11*(parseInt(n(280,"HoOt"))/12)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Th,664365);function kh(t){let e=Pn,n={wElqF:function(i,a){return i===a},rSVDM:e(260,"^btZ"),UORxv:function(i,a){return i>a}};return n[e(293,"ZHZ3")](typeof t,n[e(237,"X]!M")])&&n[e(261,"iV#V")](t[e(308,"LO@V")],0)}function Pn(t,e){t=t-227;let n=Th(),i=n[t];if(Pn.GcSbBg===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h0?t[n(278,"K52n")]:$y(a),s={outputId:a,label:r,nextActionId:t[n(243,"DD1E")],synthetic:!1,terminal:!1};return i[n(320,"dFDU")](t[n(306,"dFDU")],!1)&&(s[n(248,"dFDU")]=!0),s}var Cie=[Ur(300,"19if"),Ur(259,"Y7WU")],k1={describe:()=>{},outputs:t=>Gr(t)[Ur(275,"Km2J")](Nr),isTerminal:()=>!1,referencedTaskIds:t=>{let e=Ur,n={SYbnI:function(a,r){return a===r},AgLXv:function(a,r){return a>r}},i=[];for(let a of Cie){let r=t[a];n[e(292,"B5RW")](typeof r,e(282,"vj#v"))&&n[e(242,"GfaY")](r[e(314,"pZ4f")],0)&&i[e(234,"oKvo")](r)}return i}},Aie=new Set([Ur(301,"GfaY"),Ur(296,"0i$R")]);function M1(t){let e=Ur,n={yzbLr:e(284,"I6bK")};return typeof t===n[e(318,"%^2G")]&&t[e(229,"WkcB")](e(312,"X6ia"))&&!Aie[e(257,"l$@g")](t)}function E1(t){return t?t in Oh||M1(t):!1}function q1(t){let e=M1(t)?{...k1,...T1}:k1,n=t&&t in Oh?Oh[t]:void 0;return n?{...e,...n}:e}function xi(t,e){t=t-492;let n=Mh(),i=n[t];if(xi.ESqxsV===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;h>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;ha[i(195,"ib75")](u));return{graph:{nodes:a,edges:s,adjacency:r,roots:c,dropped:o},warnings:l}}function Hh(){let t=["W5FdNmkcWQpdGq","aeVdShxcOSoh","amo4WOKcW5S","AdqiWRCpB8oFWPOpoq","f8kisdyYdMOMoCkHBCoGW5xdJmkBkttdUJZdTq","W5PlW6bOW5VdNSkixSkqoG","sf7cKmo0WQpdIa","W5VdKCopWOhcHqig","W6NcOhq","W5HhW4jVAmkf","BSkwW6KO","xuBcJCoQWP7dIK0pwf08W7tdVqDjW45ljaaV","W63dVCo6WORcHWy","W5Hqwe1EeZWDsa","W73dQhKFW7mTwmosfIDzWQq","WRpcK8klkmo8WPO","veZcRSojWRS","ACoRmCk6p8kjW5lcLCoTyq","WP3dGrHlyvzdWPRdNbVdGx/cGSorsCk0qa","DSkMW5pcOWpdNSohyYZcUuOkW5O","kSo2WOVdVG","cSkxW7FcQwq","WORcKCk+W4pdHLeYcGmgduK","omkmW6iiWPa","aCkIW77cKuC","W6XfDZNdQW","whlcKmoFWPO","WR3cKSkvjmoWWOa","WQ/dVmo+gCkZW70","v8o5WP3dQrNdJGtdGsrYWOby","W4uxtmkNW4aZwq","jSoUWQW3W74","e8kqWQLYbG","WO7dKSocnSkY","m8o9WQa","W5RdG8o9","b0BdUa","W63dR8oqW5yieq","AxZcUSosWOm","pgZdR8kFxmkIq8kBWOCvW6FcPrhcKu1ekrBcRCkdWRmIWQHewMKMgtNcRgJdU8o9ub4NiKWFW5/cNaxdLq","drJdLmkKW7ZcMaOOsLujW5/dPa","WP/cMCokWPSInW","W7VcNvxdQmks","W63cUSolamk2W5H1ra","WR3cLWbEWR3cHG","amkQAZ3cPH/dPG","wbBdUSoqe8ok","sGhdVmoqeSodWRJcPCo1jq","WOFcVSkTbmoaWRSPevD/W4ddVGaJsWLaWRKiWOfVl0XfW6tdUSoY","W4hdLSo8WPRcMqq","W7RdUCo6l0y","W5L4srRdGmo1WRX+aCocWRKqW7tcHG","lSkHDCoN","WPtdVtT0qxTLWRhdUhJdTfxcUCo2ECktjePop8ot","WOr9W4nWz8kyWQO","WQtcTmoTWR4v","WQVcQ8osW5hcUCoeWQVcISo/WQ8FWOJcSG","W5T/tqRdOmoP","v8kLWOy/itVcImktWOBcTmoieCk4mbhcTq","WQpcTdjB","WQNcTs8","DCkEW4KOWQ5yW4ZcNLNcJa","iLRdR1SVW6xdO1ldJbi1fc8","q8khCY8","W5WQx3TKWPSiWPDXWRC","aCk/WPfmjW","fvBdVxpcS8o0zahcVmoRpq","WPZcMmolWPO","WR4dW4ldGXSPW6xcL8kxlt7cTdaFlGVcKSocCG","u8oetI9bh3OGn8oV","W6ZcPgZdR8khW5q","z8k8catcHszaWPzXWOy","WQdcSdG","BJNdSCkw","DqVcSaW","WPT4gcG","W5RcL3hdTX8Ib8kP","W6RdRmoTW7HZ","omkiW6yVW75sDWFcOKRdThWcoan4nSkNA8kSWPjMW4ekWQ3cKmkgWPC","WQpdVdLXrN8","vSkJWQKGWRu","ua17WPu","W7VcOwq","W53dUH4DWQxdPG","bmkVWPDtn1f4FedcG8oskthdICkMvmos","W6RdNmo5W55tfW","k8o1WOZdVLlcNq","DehcVXRdOq","WR/cKWnC","WRZcKCksja","W7pdSt9aWQ40y8ouoIX7W4b3rSo3W4xdT2VdMWhcK3FcPSoAWQf7WReU","W5D/DIddPq","WOL8bYfs","e8kkW43cTva","WRZdRsv/xha","WPJdKLtdPW","W7lcSSoGxdBdGJOrWQxdRSkvjCkfx8onoCke","W6ZdMmk0WQJdNW","imkvWOvYdh5g","W69nW58V","p1VdPwZcTa","WPRcQCkQdCok","W63dO8kxWOW","u8o4WP7dQ1BcNaxdOcPZ","BbNcMZLx","kvRcIXfYWOBcRf4","abbPWO7cGIBdN8opW43cMxxdQSkdz8obWQPTW7lcG8kXWRvVsSkolWPA","DCkWW7iFWOW","W5KRxxOfW4HrWOjkWP97W6FcKa","W6JcQmo7qthdHa","W6BcISkfWRST","W6WecgNcIh9NEq","W5O+W7pdVhieW4VdO8k7fL/cLGOYqtlcRmo4fSoyW6lcKmkRhJBcLCka","W5TaW4zTF8kz","W6RdRSkgWPVdV8kYW73cRSo3WPOe","WRzGeI5h","W67cM8o/EGK","ESo0WQ1Nst9sW6ji","WP1yx0TUeJ0taLZcHCo5W6pdGG","guG6W4/cL3NcImknW5hcKsldOSku","wuxcVtJdPW","W4VdJmk/WQBdHq","WPBcUSkJzqFcRvPCuSkvqSkl","Cc3dR8kB","hCk6W5aTWPy","k3CvWRbaDCoYWOaxBq","WRtdN8oub8ky","AhdcRsNdHW7cRW","d0ZdTxxcRSouAYBcSmo1jSkLW5ZdMSk0","s1/cKCo1","WP5CxfS"];return Hh=function(){return t},Hh()}function $n(t,e){t=t-383;let n=Hh(),i=n[t];if($n.vcboDJ===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hl}},r=[],s=[];if(Array[i(410,"BSco")](t[i(417,"3o!N")]))for(let o of t[i(461,"s%hX")])o&&a[i(384,"nF5d")](typeof o,i(441,"nF5d"))&&r[i(412,"H3LX")](o);if(Array[i(512,"hgbn")](t[i(401,"yzU!")]))if(a[i(437,"!7Ud")]===i(438,"DI$n"))for(let o of t[i(465,"F6ip")]){let l=o?.[i(429,"nF5d")];if(!l||typeof l!==i(500,"xK6x")){if(i(452,"H3LX")===i(404,"U3I!"))continue;{let u=_0x2080df.id;if(a[i(479,"hgbn")](typeof u,i(451,"uUti")))return u}}if(a[i(491,"RN]K")](typeof l.id,i(392,"x3h]"))){n[i(481,"xNeY")]({code:a[i(507,"DI$n")],message:i(492,"!7Ud")+(l[i(426,"5%lh")]??a[i(506,"B1z3")])+i(485,"V%dy")+e+i(395,"KOXM"),taskId:e});continue}r[i(477,"eJ%J")](l);let c=a[i(469,"xNeY")](typeof o[i(424,"[EgQ")],i(460,"s%hX"))&&a[i(416,"#%eD")](o[i(413,"yzU!")][i(458,"fkbt")],0)?o[i(488,"cXj9")]:l[i(513,"!RYQ")]??l.id;s[i(487,"2fMu")]({actionId:l.id,label:c})}else return _0x5d6540;return{orderedActions:r,menuChoices:s}}function xie(t){let e=$n,n={aXUrp:function(i,a){return i===a},NFeJJ:e(463,"5%lh")};if(typeof t===e(455,"xNeY"))return t;if(t&&n[e(456,"vmy]")](typeof t,e(423,"Ae8Z"))){let i=t.id;if(typeof i===n[e(414,"U3I!")])return i}}function W1(t){let e=$n,n={XXPVh:function(g,d){return g(d)},uGvRV:function(g,d){return g!==d},ofLTv:function(g,d){return g(d)},wsFPM:function(g,d){return g!==d},Yyyms:e(403,"BSco"),hWXwE:e(442,"gREX"),Zvmrx:function(g,d){return g===d},qkMOH:e(400,"gE)@"),cXrBW:function(g,d){return g===d},Tpizp:function(g,d){return g===d}},i=[],a=new Map,r=Array[e(421,"5%lh")](t[e(425,"H3LX")])?t[e(418,"&1J6")]:[];for(let g of r){if(n[e(383,"9UOn")]!==n[e(398,"B1z3")])return _0x90540d;{if(!g||typeof g!==e(471,"F6ip")||n[e(399,"x3h]")](typeof g.id,n[e(407,"!7Ud")]))continue;let d=n[e(446,"hgbn")](typeof g[e(434,"xK6x")],e(442,"gREX"))&&g[e(503,"nF5d")][e(508,"A&!W")]>0?g[e(513,"!RYQ")]:g.id,{orderedActions:m,menuChoices:w}=bie(g,g.id,i);a[e(422,"vmy]")](g.id,{id:g.id,name:d,startAction:typeof g[e(480,"9UOn")]===n[e(435,"DI$n")]?g[e(397,"U3I!")]:void 0,orderedActions:m,menuChoices:w})}}let s=new Set;for(let{id:g,orderedActions:d}of a[e(484,"vmy]")]())for(let m of d)if(e(501,"BSco")===e(511,"U3I!")){if(typeof m.id!==e(499,"RN]K")){i[e(495,"m^nz")]({code:e(498,"hgbn"),message:e(472,"wDn8")+(m[e(497,"o69w")]??n[e(393,"Nuiz")])+e(483,"&1J6")+g+e(389,"m^nz"),taskId:g});continue}s[e(449,"5%lh")](m.id)&&i[e(477,"eJ%J")]({code:e(482,"KOXM"),message:e(467,"A&!W")+m.id+e(408,"3o!N")+g+e(504,"yXXQ"),nodeId:m.id,taskId:g}),s[e(496,"vmy]")](m.id)}else{let w=n[e(439,"F6ip")](_0x1980d3,_0x534d9c);n[e(390,"[EgQ")](w,_0x2833ad)&&_0x3407a9[e(450,"9UOn")](w)}let o=[...a[e(473,"yXXQ")]()],l=t[e(411,"9UOn")],c=typeof l===e(420,"H3LX")&&a[e(486,"yXXQ")](l),u=c?[l,...o[e(415,"9UOn")](g=>g!==l)]:o;n[e(440,"H3LX")](typeof l,n[e(494,"SUNS")])&&l[e(396,"Ae8Z")]>0&&!c&&i[e(509,"WxNu")]({code:e(462,"nF5d"),message:e(510,"x3h]")+l+e(453,"2fMu")});let p=new Set,h=t[e(475,"[EgQ")]?.[e(489,"B1z3")];if(Array[e(444,"IW%z")](h))if(e(445,"#%eD")!==e(447,"gREX"))for(let g of h){let d=xie(g);d!==void 0&&p[e(474,"yXXQ")](d)}else for(let g of _0x4fbace){let d=n[e(430,"H3LX")](_0x3ae1d8,g);n[e(387,"cXj9")](d,_0x1d9630)&&_0x4b6157[e(448,"gE)@")](d)}return{flowName:typeof t[e(502,"fkbt")]===n[e(409,"gREX")]?t[e(406,"2fMu")]:"",flowType:n[e(464,"dS^N")](typeof t[e(466,"]HHP")],e(493,"A&!W"))?t[e(385,"U3I!")]:"",tasks:a,taskOrder:u,entryTaskId:c?l:void 0,reusableTaskIds:p,warnings:i}}var By=ji;function ji(t,e){t=t-499;let n=Wh(),i=n[t];if(ji.IiQRiu===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hs},axrGG:e(526,"%Plk"),SUylf:e(543,"n3y3")},i=[],a=[];for(let r of t[e(547,"]TtG")]){let s=t[e(546,"zlXf")][e(557,"F34O")](r);s&&i[e(559,"q^pc")]({id:n[e(532,"Ohn#")](ht,r),kind:e(549,"p(mz"),label:s[e(535,"(n0C")],taskId:r,taskName:s[e(539,"1a^X")],terminal:!1})}for(let{taskId:r,task:s,action:o,actionId:l,handler:c}of Eh(t)){let u=o[e(540,"!nP6")],p=n[e(519,"XfI&")](typeof o[e(553,"Yc04")],e(499,"jBWi"))&&n[e(524,"*7iz")](o[e(563,"]TtG")][e(555,"p(mz")],0)?o[e(500,"F34O")]:u??l;i[e(559,"q^pc")]({id:l,kind:e(558,"]TtG"),actionType:u,label:p,description:c[e(522,"p)uU")](o),taskId:r,taskName:s[e(545,"D!o5")],terminal:c[e(506,"Zu1@")](o)}),!E1(u)&&a[e(529,"9X[g")]({code:e(510,"Omr)"),message:e(565,"Fk&P")+(u??n[e(561,"Fk&P")])+e(518,"!nP6"),nodeId:l,taskId:r}),yie[e(552,"]TtG")](u??"")&&a[e(548,"1a^X")]({code:e(556,"jENy"),message:e(562,"T(yK")+l+e(509,"39Ci"),nodeId:l,taskId:r});for(let h of c[e(560,"IRaI")](o))i[e(536,"p(mz")]({id:Ha(l,h[e(505,"#fhh")]),kind:e(512,"#LAm"),label:h[e(521,"Fk&P")],taskId:r,taskName:s[e(539,"1a^X")],terminal:h[e(554,"jUNj")]}),h[e(534,"iXKe")]&&a[e(537,"XfI&")]({code:n[e(517,"jUNj")],message:e(502,"Omr)")+h[e(511,"p(mz")]+e(530,"F34O")+l+e(507,"IRaI"),nodeId:Ha(l,h[e(514,"G2Xp")]),taskId:r})}return{nodes:i,warnings:a}}function Wh(){let t=["rLdcI8koxCkoW4ul","C8klx8oYWR3cQSkSoXVcJq","WPmXWPldM17dKCkCW4OwWOtdH8oImG","f0ddH3NdISkXe2LtswJdJry","k8o8iN4HBSkjW6tcGSkPh1rwAqLgCSouW4SFj8oxWPDdW5JdRwLBvvWkW7mWmCoUpqmbevG4rCkDW6/cQ8oRW73cG1H0W4/dV0yoW77dG8obfHLIamkhvmoXhSoWW4W","W5pdGmkfWQxcG3j5W63dJCoQw0pcNSkLbSoxWP7dO08","W59dauZdNmklW5Lu","WQxcM8k9c8kXWRpdUHLzDNldMHu","pmo6nY82CSkV","WRpcNSkunvTSrNe","lmoyamofWPTUy8kQW5xcGrzDWRy","rf3dOh/dUslcMSoRWQRcSCoFrG","W5hdP8olgeG","uhJIG4/cLNJcHmkeyxuxWRv0WPdcKZv9W6VdQSkGjGjMFSok","mcvIWQNdHW","WRtcTSo4W5ldVb1rW53dPSoby20","o3RdQvSg","wSo0cWjpcmkPqq","kCoiEmoUWP3cL8kMeW","zYldV8kRWPi","gvddUHtcT0pdOCoOW7tcImocWO4","WPVcVCkBWR3cHfdcLxyS","oCoJtSkfWQ07oL5lWObPW4JdGCoYWOVdVqdcQLbEzvtdGd/dOW","WQdcGXC7iJCoW7S","v8kFW6xdLa","tbSeW5W","nNxcImoWW7xcM8ocW6rmjmoNfq","D8okw8kYW7C","qff1WRHvc8k7","eGFcOIRcRhJcQmoK","iSoTWP3dJa","W4bdbLq","eWL3WRq","W4yczmk9D8oYW5ldUSo+mMa","W6VcVxjV","lqFcR8opymka","tMLCWQHnlCko","sMRdO8kdjmkUWQTeuZVcPq","jSktW6vCW4aJWRqWW71prmo4DW7cHG","g1pdUrVcSelcMmomW6pcPSoUWQKf","W7JdNYRdOq","W6TVx8kVwG","t8kVzcPiW5hdHxpcUq","W7xcQwXI","W4rxbLFcHmkmW6rrWONcKW","WQJdVI7cL8kMWOD2","sCkHfCo0W7D7pxLmWRLnW4e","u8kVza","xt3cUCoX","W7BdL8oaguFdKJbU","W5Xtg1VdNCkx","WQT+dSonemo2W5/dRCoXp0SDFx/dR8kIWQhcK39lwY/dJNa","cXew","wSkTyYHOW40","WOrdWRhcTq","W5WTWPxcI0/dJmkC","nMpdUxKT","v3NcHehdM3Poj8olW6iJamooWP3dK8o6W7NdGhS","vCkVEIq","WQBcH1rZr1vDW59tW50+W6fd","aNxdOfafW5/dRLxdUmoQd2ldUSkDwSktwMtcQCkvWPBdHea","d8oSgHa2zcn+qgtcR8od","WOpdSSortCkIWPy","aHupWPK","WOWLWPlcIMCziCkpW7RdPCkuW6fX","W4NdU8k6WPVcUvex","W5SlsIC7wd1uvfRcNfFdTXDVnrCv","W5VdSSoBW4hcHSkdc8osW4jkW6G4WOK"];return Wh=function(){return t},Wh()}(function(t,e){let n=Si,i=t();for(;;)try{if(-parseInt(n(443,"niia"))/1+parseInt(n(488,"faqi"))/2*(-parseInt(n(480,"@%U%"))/3)+-parseInt(n(478,"bjJ2"))/4+-parseInt(n(498,"6@RG"))/5+-parseInt(n(471,"0[VF"))/6*(-parseInt(n(490,"nUQ@"))/7)+-parseInt(n(477,"Apff"))/8+-parseInt(n(459,"XsB["))/9*(-parseInt(n(486,"^^aK"))/10)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Ih,986405);var Rh=0,Ly=1,Pie=2;function Si(t,e){t=t-440;let n=Ih(),i=n[t];if(Si.lLqwot===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hc},owrOX:e(469,"Eu2S"),OyBKJ:function(l,c){return l-c},anzwE:function(l,c){return l>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hg[e(296,"9r$d")]===e(295,"lz&n"));return{ok:!0,ir:S1(l,u,i,p),graph:l,warnings:[...i[e(272,"s!PK")],...r,...o,...c]}}catch(i){return{ok:!1,error:{code:e(269,"Qn(v"),message:i instanceof Error?i[e(271,"Oqs3")]:String(i)}}}}(function(t,e){let n=un,i=t();for(;;)try{if(-parseInt(n(236,"h[LL"))/1+-parseInt(n(234,"wSU*"))/2*(-parseInt(n(401,"h[LL"))/3)+parseInt(n(330,"!SjE"))/4+-parseInt(n(249,"TP#A"))/5+-parseInt(n(364,"4&&G"))/6+-parseInt(n(329,"0vxb"))/7+parseInt(n(374,"wiue"))/8*(parseInt(n(382,"aK!M"))/9)===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Dh,150364);function I1(t,e){let n=un,i={jYlTG:function(a,r){return a===r},QkIfT:n(326,"ZUtw"),Ysykj:function(a,r,s){return a(r,s)}};if(Array[n(398,"dEUh")](t[n(229,"wSU*")]))for(let a of t[n(285,"Wfsp")])a&&i[n(372,"[AoD")](typeof a,i[n(299,"yO7[")])&&e(a);if(Array[n(402,"9!Jl")](t[n(294,"TP#A")]))for(let a of t[n(264,"CmEg")]){if(!a||typeof a!==n(261,"9yge"))continue;let r=a[n(342,"yx7h")];!r||typeof r!==n(281,"twB&")||i[n(392,"ZUtw")](e,r,jie(a))}}function un(t,e){t=t-205;let n=Dh(),i=n[t];if(un.kXxkbV===void 0){var a=function(l){let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="";for(let h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(let h=0,g=u.length;hu},vGaiD:function(c,u){return c!==u}},a=[],r=new Set;for(let c of Array[n(268,"Wfsp")](e)?e:[])i[n(220,"twB&")](n(233,"ZUtw"),n(311,"$s)d"))?_0x57bbf0&&PEajnW[n(258,"140J")](typeof _0x515e1e,n(340,"CmEg"))&&_0x174b5a(_0x5e853a):typeof c===n(302,"aK!M")&&!r[n(210,"Yy3I")](c)&&(i[n(248,"dEUh")]===n(208,"TP#A")?(r[n(362,"8]S$")](c),a[n(345,"8]S$")](c)):_0x4a3461(_0x5506c9));if(i[n(266,"Wfsp")](a[n(370,"Yy3I")],0))return{found:[],notFound:[]};let s=new Map;for(let c of z1(t)){if(!c||typeof c!==n(368,"zM([")||i[n(407,"5Vqv")](typeof c.id,n(354,"vNS4")))if(i[n(334,"^[L8")](n(341,"nsz3"),i[n(288,"140J")])){if(PEajnW[n(301,"TP#A")](_0x178622,null)||PEajnW[n(387,"KQMc")](typeof _0x257920,n(261,"9yge"))||_0x2352f7[n(253,"8]S$")](_0x2c8f29))return[];let h=_0x384c0b[n(267,"yx7h")];return _0x41308c[n(217,"s)Z6")](h)?h:[]}else continue;let u=c.id,p=i[n(291,"wiue")](typeof c[n(221,"pQsR")],n(245,"erY4"))&&i[n(351,"6tzD")](c[n(287,"0%fs")][n(230,"VkK&")],0)?c[n(222,"f07&")]:u;I1(c,(h,g)=>{let d=n;if(typeof h.id!==i[d(207,"nsz3")]||!r[d(399,"wiue")](h.id))return;let m={actionId:h.id,action:h,taskId:u,taskName:p};g&&(m[d(380,"h[LL")]=g);let w=s[d(225,"erY4")](h.id);w?w[d(292,"u4(s")](m):s[d(366,"8]S$")](h.id,[m])})}let o=[],l=[];for(let c of a)if(i[n(336,"Jvkq")](n(238,"6tzD"),n(270,"9!Jl"))){_0x1d4f49[n(307,"wiue")]=0;let u=_0x124256[n(310,"dEUh")](_0x46206d);return u?{index:u[n(206,"Yy3I")],length:u[0][n(239,"ud!t")]}:_0x599511}else{let u=s[n(242,"yx7h")](c);if(u)if(i[n(332,"Yy3I")](n(297,"8]S$"),n(305,"YXZH")))for(let p=0;p<_0x244326[n(333,"erY4")];p+=1)i[n(215,"0%fs")](_0x3f27a5,_0x215615[p],_0x4b6b9d?_0x46f1f1+"."+p:""+p,_0x3ea1bc+1);else o[n(256,"aK!M")](...u);else l[n(293,"erY4")](c)}return{found:o,notFound:l}}function Dh(){let t=["aLOnye3dJa","W7lcOhaIeSot","eCkhlYLmW4pcNa","WPtcPhfIvq","W4JdJ3i","rMChW7hdLSoOWO4","u3KJiq","W45sWPW4va","W67cJCoIWOZdHq","WRjRWOTn","imouWPeA","W7NdJ3Ck","WReeW45SWQK","h8krgG","aSo6WQfUzmkr","nKhcN1JdQYxdMeRcS8kFia","F1CVWPv4W5hdSZNdMG","WRiqW5ThE8k/W7dcHmkwuq","F1mYWOzfW5C","W7/dSxvMWQBcNW","iCkZk8k0xW","BqhdPa7cOa","W6evW7TNESkzW7a","z8k0zSkasCk3l8o3W4bvhwBdNCkEWPBcULmQW7i","WPpcNtaTW67cLGbmkcul","h8otWQ4XW5S","WOT7tb7dJG","zSkWCmkQxmkR","jmoPW54zW6ZdPG","WR1TWR4vxmo9W4q","ixvL","W7FcTSkTW7O","W4hdMmoPWOhdHCku","c8kahdjqW4u","oSoRWPzttq","ymogW47dVrxdISkmW6hcQGjXzmkg","WRezW6PiWRu","vCoKWP3cUr8dygxdVKldGSk4","W7lcS8o6DWS","WONdHXlcO8kU","deX8WQr+","W47cIComAtr2W7K","pConW5CNW5O","W6JcUMyUba","fvZdTmoM","WOnPFZBdTa","wSomWPxcI8oq","EWVcTMibA8oOoSkUyCkUva","W4Lro18+","W67cTMGUh8oa","FaddSXrz","ux0Gi1Hg","a1OnCNRdJmoLWRFdR3ZcTvNdGSoi","CLKmWQzz","W5NdT8oicLe","ihX+pgfdWR3cN2pcHmoxW5WsWRCeW6aDWOhdKY4","W7/dH8oeivVcNCol","CmoUWPtcTSoo","ogncWOX/","qSo6WQNcP8oA","j8oBWPGAW5uLW44","jSoLW6uWW5i","gYD2WRpcKSkXWQ7dU8onWQRcTmkh","WR4wW4fBv8k5W5pcHmkgqa","W4NcJmocEde","ACk4CCkirW","WQBdQqJcGSkWWRC","kmozWPmqW58","WQ7dPqhcJmkW","W47cRmofWRddNSkw","W7tcV2Sj","s0ahW6tdJa","u8ksDSkbEW","W7FdL8oXoKBcKSo+qrBdSq","eNRcS8oM","WOJcSfH0","vCoVWOFcSSon","jSoRW505W4e","W4ZdI294WQlcKG","hmo0W4unW7m","tw09la","cmkbhtm","aCk4W4BdUw1ByuddKN3dOmkPdSki","imk9mmkgta","xbddUavRla","W6lcLCo+vsW","jLFdRZjepG","peNdNfLz","WPlcLWS4rmoMmCkRuNldIW","dSkoW4NdUMG","fL3dTCoNevS","dMRcRSoPW6zD","bNeGyhW","dSk2pmk6vW","W4NcM8oGFG","jmoTW4mkW5hdOmk9WP1Q","WPDTxIxdUW","cMtdN0D7","WO4kW6bA","dWfVxCo5","W7X/WPG1xmos","W4NcJ8okWQFdJG","jYzGBW","xmo8WQVcUSomWQ0","WRvKWOjncxLA","WRhcKgv/uq","W7tcQ2SoDCkG","dKFdPIf2","W6HMhuSm","W7dcUCkKW7RdQCo7uW","kqGpgCk1","W7VdI3qivmo9","A0eKW5tdKq","W47cLmoPFJ4","AHddHa/cSd0","W5RdLmorWRhdLG","W6RcO8kYW7BdV8ot","WQhcMsLAgmkSWQnNWRnruIa","WQJdOSoWWQ/cOmkcz1tcRrPTWOO","otj+yG","W7RdGSo2WPFdJq","fmkradXkW4O","WQ15W4xcMCo9","jSoTW50B","W5z4pLmc","lYTIFCooW57dMLpcUaCQWP3dKJHXnSkIW6hdQSkh","W5Dob3aS","WOJcKSoQ","av0jyLRdKa","etC1pCkT","j3nLiL1i","WPnDW4lcJ8oG","WOzfW5hcGCo9ya","W5FcJ8o+CW","WOyBW6S","wxePlvG","dCk5W4W","W5tcJSo/CIHW","uCkyW7ldKbJdUG","WR9HyrhdTW","WRjREIhdJ8k6W5q","WQVcMhfKqa","wIldMYegCG","zwKkiwu","CSoaWPhcLmo6","WPdcOSocdSkR","WRbVWOHpbv4","W5tcQCoRwIe","W7NdLSoVnKRcIa","WQ/dOmoZWQRcQCkntwJcTWn2WQO","W4BcNSoP","fL9caMzVWPRcR1NcO8o6W78sWO0OW5Ki","v8oQW5NcSeuwW77cRulcJ2Lo","x8kawCkCyq","W5tcN8o5","rSktWQtdGdOAiSkrsW","WPldVxxcI1vC","WPXTCJZdVG","W4ldN8oTWOpdKSki","ECkbW4rlWPvyW7dcNwVcTtJdKW","wmk4WR3dUH4","xNK9ix9lg2mhbrJdTSkv","ESk9WObgWQJcVSoHWQf+W5efbci","a2vmWRi","W77cT2efza","WQHSstRdK8k8","oCkBaHfv","iCkyWOVcT0BcNW","W43dI29QWPxcKHLSlc8","hCkmcZG","xhVdKSoFnexcOa","cuZdQCoPc1q","auFdU1H5WRW","wqBdLXbTjCkK","xhCEa0q","DZ7dNILq","qmk7W6m3o8oaWO4CqWOPha","iCkZbHDT","k8kXWOBcOg0","WORcTfT2u1O","xahdLWhcUq","W5ZdI187zW","a8k/W4ldQu1h","oSoAWRaqW5OpW5RcVvNcTby","W6ZcN8oitWe","dCk4WOtdPq","WOibW4rlWRxdNSo1","imoTW4m","ACk6tSk7tW","WPFcMJKRW67dIc5MhdG0rG","axn0WRn+b8of","jN7dIJjc","WQX9DGBdHa","DGBdNapcVs4","WPGgW7DqWQNdMa","W51HWOGgyq","iCk1k8kw","r24RW7ddOW","WRiqW5ThE8k/W6JcLmkvqa","W4FdLmoNWOhdNG","dae1imkD","a8k0W57dUwq","W5iGW5bOWOZdHSoh","W4BdM8oW","WOPqWOnTcq"];return Dh=function(){return t},Dh()}var Sie=64;function Oie(t,e){let n=un,i={LuevF:function(r,s){return r===s},hAers:function(r,s){return r-s},VZeEx:function(r,s){return r!==s},QfRNv:n(289,"wiue")};if(t instanceof RegExp){let r=new RegExp(t[n(379,"JdWm")],t[n(343,"^[L8")]);return s=>{let o=n;r[o(228,"VkK&")]=0;let l=r[o(381,"erY4")](s);return l?{index:l[o(260,"Jvkq")],length:l[0][o(240,"wiue")]}:void 0}}if(i[n(211,"pQsR")](typeof t,n(312,"5Vqv"))||i[n(308,"6tzD")](t[n(384,"yO7[")],0))if(i[n(237,"f07&")]!==n(232,"YXZH")){let r=_0x24f79c[n(316,"pQsR")](_0x2e210c);return r===-1?_0x72d14:{index:r,length:_0x5ce324[n(358,"pQsR")]}}else return;if(i[n(262,"KQMc")](e?.[n(373,"u4(s")],!0))return r=>{let s=n,o=r[s(272,"f07&")](t);return o===-1?void 0:{index:o,length:t[s(350,"PdML")]}};let a=t[n(300,"8NaD")]();return r=>{let s=n,o=r[s(395,"f07&")]()[s(321,"!SjE")](a);if(i[s(319,"G^wT")](o,-1))return;let l=Math[s(346,"dEUh")](o,r[s(278,"ef0B")]);return{index:l,length:Math[s(339,"Qm1r")](t[s(263,"u4(s")],i[s(313,"twB&")](r[s(323,"0vxb")],l))}}}function Tie(t,e,n){let i=un,a={nvOcw:function(c,u){return c(u)},sSfAg:function(c,u){return c=u},YGhLS:i(378,"erY4"),GuIoC:function(c,u){return c{let h=i,g={UIwlM:function(d,m,w,f){return d(m,w,f)},qcNWF:function(d,m){return d+m}};if(typeof c===h(405,"ZUtw")){let d=a[h(276,"8]S$")](e,c);d&&(s+=1,a[h(359,"8]S$")](r[h(303,"0$QA")],n)&&r[h(286,"0$QA")]({path:u,value:c,matchIndex:d[h(325,"8]S$")],matchLength:d[h(391,"0%fs")]}));return}if(a[h(224,"dEUh")](c,null)||typeof c!==h(244,"Yy3I")||a[h(400,"ud!t")](p,Sie)||o[h(216,"h[LL")](c))if(h(317,"0%fs")===h(273,"wiue"))g[h(250,"8]S$")](_0x1e7906,_0xef9d1[_0x55b01e],_0x1e5d33?_0x3765e2+"."+_0x4d6d36:""+_0x1ea0f3,g[h(356,"140J")](_0x5a11e9,1));else return;if(o[h(348,"TP#A")](c),Array[h(214,"erY4")](c)){if(a[h(389,"erY4")]!==a[h(284,"ud!t")])return _0x541d66;for(let d=0;a[h(369,"6tzD")](d,c[h(230,"VkK&")]);d+=1)l(c[d],u?u+"."+d:""+d,a[h(277,"ud!t")](p,1))}else if(a[h(254,"wiue")](a[h(409,"s)Z6")],a[h(327,"Yy3I")]))_0x592724[h(286,"0$QA")]({path:_0x16a1fd,value:_0x5029c9,matchIndex:_0x223a64[h(255,"9yge")],matchLength:_0x3c7831[h(391,"0%fs")]});else{let d=c;for(let m of Object[h(375,"9!Jl")](d))a[h(324,"s)Z6")](l,d[m],u?u+"."+m:m,p+1)}o[h(298,"G^wT")](c)};return l(t,"",0),{hits:r,truncated:s>r[i(212,"CmEg")]}}function Jy(t,e,n){let i=un,a={dLIer:function(c,u){return c!==u},aoPGh:i(302,"aK!M"),wqXJj:function(c,u,p,h){return c(u,p,h)},dTAgh:i(309,"yO7["),KeETG:function(c,u){return c===u},AYvdf:function(c,u){return c>u},OZwqa:function(c,u,p){return c(u,p)},yFxeH:i(318,"Lb@d"),UUGQI:function(c,u){return c!==u}},r=a[i(322,"nsz3")](Oie,e,n);if(!r)if(a[i(252,"9!Jl")](i(355,"u4(s"),i(257,"6tzD")))_0x1eb193.id=_0x1a15cc.id;else return{hasMatches:!1};let s=n?.[i(235,"ud!t")],o=a[i(246,"Bj@R")](typeof s,a[i(390,"JdWm")])&&s>0?Math[i(279,"f07&")](s):Number[i(363,"yx7h")],l=[];for(let c of z1(t)){if(!c||typeof c!==i(360,"Wfsp")||a[i(365,"ud!t")](typeof c.id,i(226,"Bj@R")))continue;let u=c.id,p=a[i(393,"0vxb")](typeof c[i(282,"Lb@d")],i(349,"8]S$"))&&a[i(219,"5Vqv")](c[i(222,"f07&")][i(290,"h[LL")],0)?c[i(306,"8]S$")]:u;I1(c,(h,g)=>{let d=i;if(a[d(403,"G^wT")](typeof h.id,a[d(265,"VkK&")]))return;let{hits:m,truncated:w}=a[d(338,"Jvkq")](Tie,h,r,o);if(m[d(290,"h[LL")]===0)return a[d(283,"s)Z6")]===d(251,"ef0B")?_0x2559f7:void 0;let f={actionId:h.id,taskId:u,taskName:p,matchedPaths:m};typeof h[d(231,"h[LL")]===d(406,"dEUh")&&(f[d(205,"wSU*")]=h[d(315,"140J")]),a[d(396,"8]S$")](typeof h[d(314,"$s)d")],a[d(386,"u4(s")])&&a[d(271,"140J")](h[d(335,"wiue")][d(296,"KQMc")],0)&&(f[d(397,"4&&G")]=h[d(243,"!SjE")]),g&&(f[d(275,"wSU*")]=g),w&&(f[d(367,"[AoD")]=!0),l[d(331,"$s)d")](f)})}return l[i(383,"aK!M")]>0?{hasMatches:!0,matches:l}:{hasMatches:!1}}(function(t,e){for(var n=_i,i=t();;)try{var a=-parseInt(n(209,"bdpz"))/1+parseInt(n(207,")Z&&"))/2+-parseInt(n(202,"(LRw"))/3+parseInt(n(196,"l2(P"))/4*(parseInt(n(208,"bV^V"))/5)+-parseInt(n(194,"!4%Z"))/6+parseInt(n(201,"TP)v"))/7+parseInt(n(198,"8Np("))/8;if(a===e)break;i.push(i.shift())}catch{i.push(i.shift())}})(Gh,441715);function _i(t,e){t=t-194;var n=Gh(),i=n[t];if(_i.uykjNK===void 0){var a=function(l){for(var c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",u="",p="",h=0,g,d,m=0;d=l.charAt(m++);~d&&(g=h%4?g*64+d:d,h++%4)?u+=String.fromCharCode(255&g>>(-2*h&6)):0)d=c.indexOf(d);for(var w=0,f=u.length;w=500?`Genesys Cloud returned ${n} fetching flow "${t}". Transient server-side error \u2014 retry; this says nothing about the flow.`:`Failed to fetch flow "${t}"`+(n!==void 0?` (HTTP ${n})`:"")+(i?`: ${i}`:".")+" Likely transient (network or gateway) \u2014 retry rather than concluding the flow does not exist."}var D1=50;function Mie(t){let e=[],n=new Map,i=!1;for(let a of t){let r=a.split("::")[0]||a;r!==a&&(i=!0),n.has(r)||(n.set(r,a),e.push(r))}return{lookupIds:e,requestedFor:n,strippedAny:i}}var Eie={flowId:ee.string().min(1).describe("The Genesys Cloud Architect flow ID"),actionIds:ee.array(ee.string().min(1)).min(1).max(D1).describe(`Action GUIDs, taken from the \`id\` of flow_ir nodes whose \`kind\` is "action". Batch every action of interest into as few calls as possible rather than calling this tool once per action. Branch-output ids of the form \`::\` are also accepted; the suffix is stripped and the underlying action is returned. Maximum ${D1} ids per call; chunk a larger set into successive calls.`)},G1=({architectApi:t})=>({config:{description:"Retrieves the raw Architect configuration of specific actions in a Genesys Cloud Architect flow: decision expressions, prompt text, data action inputs and outputs, and any other per-action settings that the flow_ir tool omits. Use flow_ir first to find action ids and to understand the control flow, then use this tool to find out what an action actually does. Do not use the raw fields returned here to make control-flow claims: flow_ir has already resolved those, and its answer accounts for branches the raw configuration does not reflect.",annotations:{title:"Flow Action",readOnlyHint:!0,destructiveHint:!1},inputSchema:Eie},handler:async({flowId:e,actionIds:n})=>{let i=await _t(t,e);if(!i.ok)return{isError:!0,content:[{type:"text",text:i.message}]};let{lookupIds:a,requestedFor:r,strippedAny:s}=Mie(n),o=Vy(i.configuration,a),l=u=>({...u,actionId:r.get(u.actionId)??u.actionId}),c=[];return s&&c.push("Some requested ids were flow_ir synthetic node ids of the form ::; the suffix was stripped and the underlying action looked up, then reported under the id as requested. A ::start id identifies a task rather than an action, so it never matches."),o.notFound.length>0&&c.push("Ids in notFound are absent from this flow's latest configuration. The flow may have been redeployed since flow_ir was called, so re-run flow_ir and re-join rather than concluding those actions no longer exist."),{content:[{type:"text",text:JSON.stringify({flowId:e,found:o.found.map(l),notFound:o.notFound.map(u=>r.get(u)??u),...c.length>0?{notes:c}:{}})}]}}});function N1(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function qie(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:N1(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:n}}var _ie={flowId:ee.string().min(1).describe("The Genesys Cloud Architect flow ID")},U1=({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:_ie},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=N1(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=qie(n,r);return{content:[{type:"text",text:JSON.stringify(o)}]}}catch(n){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${Qn(n)}`}]}}}});var Hie=1e3,Wie=45e3,Rie=10,$1="Architect > Flow Instance > View",Qt=class extends Error{};function Ou(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}async function Iie(t){let e=await fetch(t);if(!e.ok)throw new Qt(`Downloading the execution data file failed with HTTP ${e.status}.`);return e.json()}function zie(t){return new Promise(e=>setTimeout(e,t))}function Die(t){return t.jobState==="Success"||t.jobState==="Failed"?!0:t.entities?.some(e=>e.downloadUri||e.failed===!0)??!1}async function Gie(t,e,n,i){let a=e,r=Date.now()+i;for(;!Die(a);){if(!a.id)throw new Qt(`The retrieval job reported state "${a.jobState??"unknown"}" without a job id to poll.`);if(Date.now()>=r)throw new Qt(`The retrieval job (${a.id}) was still "${a.jobState??"unknown"}" after ${Math.round(i/1e3)}s. Retry shortly; the job may complete on its own.`);await zie(n),a=await t.getFlowsInstancesJob(a.id)}return a}function B1(t){return`No execution data exists for execution id "${t}". Either the id is wrong (it is the flow instance id, which for test_bot_flow runs is the sessionId it returned, not a conversation id or flow id), the run is older than the ${Rie}-day retention period, the flow was last published before execution data storage was enabled for the org (flows must be republished after enabling it), or storage is disabled. Use find_flow_execution with a conversationId to list the instances that do exist.`}function Nie(t,e){switch(e.statusCode){case"404":return B1(t);case"403":return`Not authorised to read execution data for "${t}" (403): the OAuth client needs the '${$1}' permission and division access to the flow.`;default:return`Retrieving execution data for "${t}" failed`+(e.statusCode?` (HTTP ${e.statusCode})`:"")+"."}}function Uie(t,e){if(e instanceof Qt)return e.message;let{status:n}=Ei(e);if(n===404)return B1(t);let i=Ea(n,$1);return`Failed to retrieve execution data for "${t}": ${Qn(e)}.${i}`}function $ie(t){if(Ou(t)&&Ou(t.flow)&&Array.isArray(t.flow.execution))return t.flow;if(Ou(t)&&Array.isArray(t.execution))return t;let e=Ou(t)?Object.keys(t).join(", "):typeof t;throw new Qt(`The downloaded execution data had an unexpected shape (top-level: ${e}); expected { flow: { execution: [...] } }.`)}var Bie={executionId:ee.string().min(1).describe("The flow instance (execution) id. This is the `id` of an entry returned by find_flow_execution, or the sessionId returned by test_bot_flow. It is not a conversation id or a flow id."),includeIr:ee.boolean().default(!0).describe("Default true. Joins each action event to the flow's IR (the same graph flow_ir returns) using actionId, adding the action's type, task and outgoing edges, and lists the IR actions this instance never executed. Costs one extra flow configuration fetch. Set false when only the raw event log is wanted.")},L1=({architectApi:t,download:e=Iie,pollIntervalMs:n=Hie,maxWaitMs:i=Wie})=>({config:{description:"Retrieves the historical execution data of one run of a Genesys Cloud Architect flow: the ordered log of what that single conversation actually did, action by action, with timestamps, the messages sent and received, the branch each decision or menu took, variable assignments, errors and the exit reason. Use it to see how a customer traversed a flow, to find loops and retries (summary.repeatedActions for actions run more than once, summary.loops for Loop actions and their iteration counts, summary.asksWithRetries for asks that re-prompted), errors (eventError events with a relatedAction) and dead ends, or to confirm a flow is behaving. flow_ir shows what could happen; this shows what did happen, this time. Each action event's actionId is the id of the flow_ir node whose kind is \"action\", and is accepted verbatim by flow_action. An action's outputPathId names the branch it took; joined to the IR it is the branch-output node :: (ir.takenBranch). Event kinds are usually named action for IR actionType Action (actionCommunicate is CommunicateAction, actionDecision is DecisionAction), with exceptions: actionUpdateData is UpdateVariableAction, actionJumpToTask is TransferTaskAction and actionAskForIntent is AskForNLUIntentAction; the ir.actionType annotation on each event is authoritative. events[] is in execution order; the IR's `order` field is not and must not be used for sequencing. trackingId is the action number shown in the Architect UI; gaps in it are authoring history, not missing actions. The instance's logLevel governs which sections exist: below 'all', variables and communications may be absent or empty, which is expected rather than an error. Pass the sessionId from test_bot_flow to see exactly how a test run traversed the flow; data is available seconds after the run ends, and such runs have a null conversationId.",annotations:{title:"Flow Execution Data",readOnlyHint:!0,destructiveHint:!1},inputSchema:Bie},handler:async({executionId:a,includeIr:r})=>{let s;try{let M=await t.getFlowsInstance(a),V=await Gie(t,M,n,i),N=V.entities?.find(_=>_.id===a)??V.entities?.[0];if(V.jobState==="Failed"&&!N)throw new Qt(`The retrieval job (${V.id??"unknown id"}) failed without reporting a cause.`);if(!N)throw new Qt(`The retrieval job (${V.id??"unknown id"}) completed with no results.`);if(N.failed||!N.downloadUri)return{isError:!0,content:[{type:"text",text:Nie(a,N)}]};s=$ie(await e(N.downloadUri))}catch(M){return{isError:!0,content:[{type:"text",text:Uie(a,M)}]}}let{execution:o,...l}=s,c=Dy(o),u=c.events,p=c.summary,h=[],g=u.find(M=>M.kind==="endedFlow"),d=typeof g?.flowExitReason=="string"?g.flowExitReason:null;g||h.push("No endedFlow event: the run had not finished when the data was captured, or the log was cut short. Do not treat the last event as where the flow ended.");let m=Gy(u,".ConversationId"),w=Ou(l.executionInfo)?l.executionInfo.logLevel:void 0;typeof w=="string"&&w.toLowerCase()!=="all"&&h.push(`This instance was captured at log level "${w}". Variable values, communications or action inputs/outputs may be absent because they were not recorded, not because they did not happen.`),l.isTruncated===!0&&h.push("isTruncated is true: the log was cut off by the execution cap, so later actions ran without being recorded."),p.repeatedActions.length>0&&h.push(`${p.repeatedActions.length} action(s) executed more than once; see summary.repeatedActions and each occurrence's executionId to tell iterations apart.`),p.asksWithRetries.length>0&&h.push(`${p.asksWithRetries.length} ask/menu action(s) needed more than one participant input (summary.asksWithRetries); the retries are the turns inside that event's execution[], not repeated actions.`);let f=p.eventKinds.eventError??0;f>0&&h.push(`${f} eventError event(s) occurred; each one's relatedAction names the action that was executing (matched on context.executionId), and context.reason gives the cause.`);let A=Date.parse(String(l.startDateTime)),b=Date.parse(String(l.endDateTime)),x=Number.isFinite(A)&&Number.isFinite(b)?b-A:null,S;if(r){let M=typeof l.flowId=="string"?l.flowId:void 0,V=typeof l.flowVersion=="string"?l.flowVersion:void 0;if(!M)h.push("The execution data carried no flowId, so no IR join was possible.");else{let N=await Lie(t,M,V,h);if(N){let _=Su(N.configuration);if(!_.ok)h.push(`The flow configuration could not be parsed into an IR (${_.error.code}: ${_.error.message}); events are unjoined.`);else{let W=Ny(u,_.ir);u=W.events,S={configuration:N.configuration_source,unmatchedActionIds:W.unmatchedActionIds,unmatchedStateIds:W.unmatchedStateIds,actionsNotExecuted:W.actionsNotExecuted,warnings:_.warnings},W.unmatchedActionIds.length>0&&h.push(`${W.unmatchedActionIds.length} executed action id(s) have no node in the IR (ir.unmatchedActionIds). If the join used the latest configuration rather than the version that ran, the flow has probably been redeployed since; otherwise the action may live in a called common module or bot flow, which the parent's IR does not contain.`)}}}}let T={...l,executionId:typeof l.executionId=="string"?l.executionId:a,conversationId:typeof m=="string"?m:null,durationMs:x,flowExitReason:d,logLevel:typeof w=="string"?w:null,summary:p,events:u,...S?{ir:S}:{},...h.length>0?{notes:h}:{}};return{content:[{type:"text",text:JSON.stringify(T)}]}}});async function Lie(t,e,n,i){if(n)try{return{configuration:await t.getFlowVersionConfiguration(e,n),configuration_source:{flowVersion:n}}}catch(r){if(Ei(r).status===410){i.push("IR join skipped: the flow has been deleted, so no configuration can be fetched. The events are still complete; only the ir annotations and actionsNotExecuted are unavailable.");return}i.push(`Could not fetch the configuration of flow version ${n} (${Qn(r)}); the IR join used the latest configuration instead, which may differ from what ran.`)}else i.push("The execution data carried no flowVersion; the IR join used the latest configuration, which may differ from what ran.");let a=await _t(t,e);if(!a.ok){i.push(`IR join skipped: ${a.message}`);return}return{configuration:a.configuration,configuration_source:{latest:!0}}}function Fie(t,e){let n=t.find(a=>a.id===e);if(n)return{match:n};let i=t.filter(a=>qa(a,e));return i.length>1?{ambiguous:i}:i[0]?{match:i[0]}:void 0}var Vie={flowId:ee.string().min(1).describe("The Genesys Cloud Architect flow ID"),task:ee.string().min(1).optional().describe("Optional. Restrict the returned nodes to a single task, by task id or task name (case-insensitive). Use this to explore a large flow one task at a time. The full task list is always returned, and a node's predecessors and successors may reference nodes in other tasks, which will not appear in the filtered node list.")},F1=({architectApi:t})=>({config:{description:"Retrieves the intermediate representation (IR) of a Genesys Cloud Architect flow: a flat, ordered list of its actions with the branches connecting them. Use this to understand what an existing flow does. It answers what follows an action, which branch leads where, which actions are unreachable, and how tasks call each other.",annotations:{title:"Flow IR",readOnlyHint:!0,destructiveHint:!1},inputSchema:Vie},handler:async({flowId:e,task:n})=>{let i=await _t(t,e);if(!i.ok)return{isError:!0,content:[{type:"text",text:i.message}]};let a=Su(i.configuration);if(!a.ok)return{isError:!0,content:[{type:"text",text:`Failed to parse flow "${e}" (${a.error.code}): ${a.error.message}`}]};let r=a.ir;if(typeof n=="string"){let s=Fie(r.tasks,n);if(!s){let o=r.tasks.map(l=>l.name).join(", ");return{isError:!0,content:[{type:"text",text:`No task matching "${n}" in flow "${e}". Available tasks: ${o||"(none)"}.`}]}}if("ambiguous"in s){let o=s.ambiguous.map(l=>`"${l.name}" (id: ${l.id})`).join(", ");return{isError:!0,content:[{type:"text",text:`Task name "${n}" is ambiguous in flow "${e}". It matches ${o}. Retry with the task id.`}]}}r={...r,nodes:r.nodes.filter(o=>o.taskId===s.match.id)}}return{content:[{type:"text",text:JSON.stringify({flowId:e,ir:r,warnings:a.warnings})}]}}});var Xt=50,V1="Architect > User Prompt > View (architect:userPrompt:view)",Jie="transcoded",Ky=/^Prompt\./i,Kie=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function J1(t){return Math.round(t*1e3)/1e3}function Zie(t){return{language:t.language??"",languageDefault:t.languageDefault??!1,durationSeconds:t.durationSeconds??null,hasAudio:!!t.mediaUri&&(t.uploadStatus===void 0||t.uploadStatus===Jie),ttsString:t.ttsString||null,text:t.text||null}}function Qie(t,e){let n=zr(e),i=(t.resources??[]).filter(a=>!e||zr(a.language)===n);return{id:t.id??"",name:t.name??"",description:t.description??null,division:_a(t.division),resources:i.map(Zie)}}function Zy(t){return t.trim().replace(Ky,"")}function Xie(t){let e=new Set;for(let n of t)for(let i of n.resources)e.add(i.language);return[...e].sort().map(n=>{let i=0,a=0,r=0,s=[];for(let o of t){let l=o.resources.find(u=>u.language===n),c=l?.hasAudio?l.durationSeconds??null:null;s.push({id:o.id,name:o.name,startSeconds:J1(i),durationSeconds:c}),c===null?r++:(a++,i+=c)}return{language:n,totalDurationSeconds:J1(i),promptsWithAudio:a,promptsWithoutAudio:r,sequence:s}})}function Yie(t){let e=new Map,n=new Set,i=(r,s)=>{let o=_a({id:r,name:s});!o||e.has(o.id)||e.set(o.id,o)},a=(r,s)=>{if(r===null||typeof r!="object"||n.has(r))return;if(n.add(r),Array.isArray(r)){for(let l of r)a(l,s);return}let o=r;if(o.type==="pmt"){let l=typeof o.name=="string"?o.name:void 0,c=typeof o.text=="string"?o.text:void 0;typeof o.id=="string"&&l?.match(Ky)?i(o.id,Zy(l)):typeof o.val=="string"&&Kie.test(o.val)&&c!==void 0&&(c.match(Ky)?i(o.val,Zy(c)):s==="lit"&&i(o.val,c))}for(let[l,c]of Object.entries(o))a(c,l)};return a(t,void 0),[...e.values()]}var ete={promptIds:ee.array(ee.string().min(1)).max(Xt).optional().describe(`User prompt GUIDs, e.g. the \`id\` of entries under USERPROMPT in flow_dependencies output. Returned in the order given. Combined with \`promptNames\` the total must not exceed ${Xt}; chunk a larger set into successive calls. \`flowId\` has its own separate limit.`),promptNames:ee.array(ee.string().min(1)).max(Xt).optional().describe("User prompt names, exactly as the flow references them. A `Prompt.` prefix is accepted and stripped, so `Prompt.Welcome` and `Welcome` both find the prompt named Welcome. Matching is exact (ignoring case), not a search. Returned in the order given, after any `promptIds`."),flowId:ee.string().min(1).optional().describe(`A Genesys Cloud Architect flow ID. Every user prompt the flow's latest configuration references is returned, in the order the references are encountered, so one call covers the flow's whole script. At most ${Xt} referenced prompts are fetched; any beyond that are listed in a note to fetch via \`promptIds\`.`),language:ee.string().min(1).optional().describe("Restrict each prompt's resources to one language tag, e.g. `en-gb`. Omit to return every language.")},K1=({architectApi:t})=>({config:{description:"Retrieves Genesys Cloud Architect user prompts: the reusable audio assets that call and in-queue flows play via `Prompt.` references in Play Audio, Communicate, Menu and Collect Input actions. For each prompt returns its id, name, description, division and one resource per language holding what the caller actually hears: `durationSeconds` and `hasAudio` (an uploaded recording, which takes precedence), `ttsString` (spoken by text-to-speech when there is no recording) and `text` (a transcript of the recording, informational only). A resource with neither audio nor a TTS string plays silence. `durationTotals` sums the recorded durations per language across the prompts in requested order and gives each prompt's start offset, so a hang-up N seconds into a sequence of prompts can be attributed to the prompt that was playing. Look prompts up by name when flow_action output shows `Prompt.`, by id from flow_dependencies USERPROMPT entries, or by `flowId` to get every prompt a flow references in one call. Batch every prompt of interest into one call rather than calling once per prompt. Does not cover system prompts (`PromptSystem.`).",annotations:{title:"Get Prompts",readOnlyHint:!0,destructiveHint:!1},inputSchema:ete},handler:async({promptIds:e=[],promptNames:n=[],flowId:i,language:a})=>{if(e.length===0&&n.length===0&&!i)return{isError:!0,content:[{type:"text",text:"Provide at least one of `promptIds`, `promptNames` or `flowId`."}]};if(e.length+n.length>Xt)return{isError:!0,content:[{type:"text",text:`At most ${Xt} prompts can be requested per call (${e.length} ids + ${n.length} names given). Chunk the request into successive calls.`}]};let r=[],s=[],o=[],l=[],c=new Set,u=m=>{m.id&&c.has(m.id)||(m.id&&c.add(m.id),r.push(Qie(m,a)))},p=async m=>{if(!c.has(m))try{u(await t.getArchitectPrompt(m,{includeResources:!0,includeMediaUris:!0,...a?{language:[a]}:{}}))}catch(w){let{status:f}=Ei(w);if(f===404)s.push(m);else{if(f===401)throw w;f===403?o.push({requested:m,error:`${Qn(w)}. The prompt exists but the OAuth client cannot read it: it lacks division access to it, or the '${V1}' permission.`}):o.push({requested:m,error:Qn(w)})}}},h=[];if(i){let m=await _t(t,i);if(!m.ok)return{isError:!0,content:[{type:"text",text:m.message}]};h=Yie(m.configuration)}try{for(let m of new Set(e))await p(m);if(n.length>0){let m=new Map;for(let A of n){let b=Zy(A),x=zr(b);x&&!m.has(x)&&m.set(x,{requested:A,stripped:b})}let w=new Map,f=1;for(;;){let A=await t.getArchitectPrompts({name:[...m.values()].map(b=>b.stripped),includeResources:!0,includeMediaUris:!0,...a?{language:[a]}:{},pageSize:100,pageNumber:f});for(let b of A.entities??[]){let x=zr(b.name);m.has(x)&&!w.has(x)&&w.set(x,b)}if(!A.nextUri)break;f++}for(let[A,{requested:b}]of m){let x=w.get(A);x?u(x):s.push(b)}}if(i){let m=h;m.length===0&&l.push(`Flow "${i}" references no user prompts in its latest configuration. Audio it plays is inline TTS, system prompts or neither.`);let w=m.slice(0,Xt),f=m.slice(Xt);f.length>0&&l.push(`Flow "${i}" references ${m.length} user prompts; only the first ${Xt} were fetched. Fetch the rest with promptIds: `+f.map(b=>b.id).join(", "));let A=0;for(let b of w)c.has(b.id)?A++:await p(b.id);A>0&&l.push(`${A} of the flow's referenced prompts were already returned at their promptIds/promptNames position, so durationTotals.sequence does not follow flow order. Call with flowId alone for a flow-ordered sequence.`)}}catch(m){let w=Ea(Ei(m).status,V1);return{isError:!0,content:[{type:"text",text:`Failed to retrieve prompts: ${Qn(m)}.${w}`}]}}s.length>0&&l.push("Entries in notFound matched no user prompt in this org. A flow referencing such a prompt plays silence there. Names are matched exactly (ignoring case), so check the spelling against the flow's `Prompt.` reference; if the reference is `PromptSystem.` it is a system prompt, which this tool does not return."),r.some(m=>m.resources.length===0)&&l.push(a?`A prompt with no resources has no audio or TTS for language "${a}"; Architect falls back to its languageDefault resource, which was filtered out of this response. Call again without \`language\` to see it.`:"A prompt with no resources has no audio or TTS in any language and plays silence wherever it is referenced.");let g=Xie(r);g.some(m=>m.promptsWithoutAudio>0)&&l.push("totalDurationSeconds counts recorded audio only. Prompts counted in promptsWithoutAudio play TTS (or silence) for that language, whose duration is not known, so the sequence's real play time is longer than the total.");let d={...i?{flowId:i}:{},prompts:r,durationTotals:g,notFound:s,...o.length>0?{failed:o}:{},...l.length>0?{notes:l}:{}};return{content:[{type:"text",text:JSON.stringify(d)}]}}});var Z1=100,Q1=10,Tu=160,nte=512;function ite(t,e,n){if(!e)return{ok:!0,query:t};try{return{ok:!0,query:new RegExp(t,n?"":"i")}}catch(i){let a=i instanceof Error?i.message:String(i);return{ok:!1,error:`Invalid regular expression "${t}": ${a}. Set regex to false for a literal substring search.`}}}function tte(t,e,n){if(t.length<=Tu)return t;let i=e+Math.floor(n/2),a=Math.max(0,Math.min(i-Math.floor(Tu/2),t.length-Tu)),r=a+Tu;return`${a>0?"\u2026":""}${t.slice(a,r)}${r({config:{description:'Searches the raw Architect configuration of a Genesys Cloud Architect flow for text, and returns the actions containing it along with where in each action it matched. Answers "which actions reference X" \u2014 a queue name, a data action, a variable such as Flow.DNIS, a phrase in a prompt \u2014 in a single call. Use it instead of sweeping a flow with bulk flow_action lookups, which return whole action subtrees for actions that may not be relevant at all. Each returned actionId is an Architect GUID: it joins directly to flow_ir nodes whose kind is "action", and is accepted verbatim by flow_action. Search here to find the ids, then fetch those ids with flow_action when an excerpt is not enough. Matching is against string values only, never key names. A match in a wiring field locates text and is not a control-flow claim; flow_ir owns wiring.',annotations:{title:"Search In Flow",readOnlyHint:!0,destructiveHint:!1},inputSchema:rte},handler:async({flowId:e,pattern:n,regex:i,caseSensitive:a})=>{let r=ite(n,i,a);if(!r.ok)return{isError:!0,content:[{type:"text",text:r.error}]};let s=await _t(t,e);if(!s.ok)return{isError:!0,content:[{type:"text",text:s.message}]};let o=s.configuration;if(!ate(o))return{isError:!0,content:[{type:"text",text:`The latest configuration of flow "${e}" has no flowSequenceItemList to search \u2014 the flow type may be unsupported. Nothing was searched, so this is not a zero-match result.`}]};let l=Jy(o,r.query,{caseSensitive:a,maxMatchesPerAction:Q1}),c=l.hasMatches?l.matches:[],u=c.slice(0,Z1),p=u.map(g=>({...g,matchedPaths:g.matchedPaths.map(d=>({path:d.path,excerpt:tte(d.value,d.matchIndex,d.matchLength)}))})),h=[];return c.length>u.length&&h.push(`${c.length} actions matched; only the first ${Z1} are returned, in encounter order. Narrow the pattern to see the rest.`),u.some(g=>g.truncated)&&h.push(`Some actions matched in more than ${Q1} places; matchedPaths is not exhaustive for entries marked truncated.`),u.some(g=>g.matchedPaths.some(d=>d.value.length>Tu))&&h.push("Excerpts are clipped windows around the match, not whole values; fetch the action with flow_action when the full text matters."),{content:[{type:"text",text:JSON.stringify({flowId:e,pattern:n,totalMatchedActions:c.length,matchedActions:p,...h.length>0?{notes:h}:{}})}]}}});var Qy=new Map;function ste(t){let{id:e,previousTurn:n,...i}=t;return i}async function Y1(t,e,n){let i=[],a=n;for(;i.push(ste(a)),Qy.set(e,a.id),a.nextActionType==="NoOp";)a=await t.postTextbotsBotflowsSessionTurns(e,{previousTurn:{id:a.id},inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});let r=a.nextActionType;return(r==="Disconnect"||r==="Exit")&&Qy.delete(e),{content:[{type:"text",text:JSON.stringify({sessionId:e,turns:i})}]}}var ote={flowId:ee.string().optional().describe("The bot flow ID to test. Required when starting a new session."),sessionId:ee.string().optional().describe("Session ID from a previous call. Required when continuing an existing conversation."),message:ee.string().optional().describe("User message to send to the bot. Required when continuing a session.")},ez=({textbotsApi:t})=>({config:{description:"Tests a deployed Genesys Cloud Architect Bot Flow and Digital Bot Flow by simulating a text conversation. To start: provide flowId. To continue: provide the returned sessionId and a message. Turn tracking is managed server-side \u2014 only the sessionId is needed between calls. Returns { sessionId, turns[] } where each turn contains the raw API response (prompts with segments, outputLanguage, nextActionType, and action-specific data like modeConstraints or outputData). Multiple turns are returned when the flow sends consecutive messages (NoOp turns are automatically drained). nextActionType values: WaitForInput (send another message), Disconnect/Exit (conversation ended).",annotations:{title:"Test Bot Flow",readOnlyHint:!1,destructiveHint:!1},inputSchema:ote},handler:async({flowId:e,sessionId:n,message:i})=>{try{if(n&&e)return{isError:!0,content:[{type:"text",text:"Provide either flowId (to start) or sessionId (to continue), not both."}]};if(!n&&!e)return{isError:!0,content:[{type:"text",text:"Provide flowId to start a new session or sessionId to continue an existing one."}]};if(e){let s=await t.postTextbotsBotflowsSessions({flow:{id:e},externalSessionId:"",inputData:{variables:{}},channel:{inputModes:["Text"],outputModes:["Text"],name:"Messaging",userAgent:{name:"GenesysWebWidget"}},language:""}),o=await t.postTextbotsBotflowsSessionTurns(s.id,{inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});return Y1(t,s.id,o)}if(!n||!i)return{isError:!0,content:[{type:"text",text:"A message is required when continuing an existing session."}]};let a=Qy.get(n);if(!a)return{isError:!0,content:[{type:"text",text:`No active session found for ID "${n}". It may have expired or already ended. Start a new session with a flowId.`}]};let r=await t.postTextbotsBotflowsSessionTurns(n,{previousTurn:{id:a},inputEventType:"UserInput",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:i}}]}});return Y1(t,n,r)}catch(a){return{isError:!0,content:[{type:"text",text:`Bot flow test failed: ${a instanceof Error?a.message:JSON.stringify(a)}`}]}}}});var Xy=ee.object({GENESYS_REGION:ee.string().min(1),GENESYS_CLIENT_ID:ee.string().min(1),GENESYS_CLIENT_SECRET:ee.string().min(1),DEPLOY_SCRIPT_PATH:ee.string().min(1),PREVENT_LOGIN:ee.enum(["TRUE","FALSE"]).default("FALSE").transform(t=>t==="TRUE")}).safeParse(process.env);if(!Xy.success){let t=Xy.error.issues.map(e=>e.path[0]).join(` `);console.error(`Missing required environment variables: - ${t}`),process.exit(1)}var Ea=Vy.data,dt=new qp({name:"genesys-cloud-architect",version:"2.0.2"}),Ir=new ju.default.ArchitectApi,Lie=new ju.default.RoutingApi,F1=f1({architectApi:Ir});dt.registerTool("find_flow",F1.config,F1.handler);var V1=A1({routingApi:Lie});dt.registerTool("find_queue",V1.config,V1.handler);var J1=I1({architectApi:Ir});dt.registerTool("flow_dependencies",J1.config,J1.handler);var K1=G1({architectApi:Ir});dt.registerTool("flow_ir",K1.config,K1.handler);var Z1=W1({architectApi:Ir});dt.registerTool("flow_action",Z1.config,Z1.handler);var Q1=$1({architectApi:Ir});dt.registerTool("search_in_flow",Q1.config,Q1.handler);var Y1=C1({architectApi:Ir});dt.registerTool("find_flow_execution",Y1.config,Y1.handler);var X1=D1({architectApi:Ir});dt.registerTool("flow_execution_data",X1.config,X1.handler);var ez=m1({region:Ea.GENESYS_REGION,clientId:Ea.GENESYS_CLIENT_ID,clientSecret:Ea.GENESYS_CLIENT_SECRET,deployScriptPath:Ea.DEPLOY_SCRIPT_PATH});dt.registerTool("deploy_flow",ez.config,ez.handler);var nz=L1({textbotsApi:new ju.default.TextbotsApi});dt.registerTool("test_bot_flow",nz.config,nz.handler);(async()=>{if(Ea.PREVENT_LOGIN)console.warn("Login for Platform API skipped. Calling tools will result in an auth failure.");else{let e=ju.default.ApiClient.instance;e.setEnvironment(Ea.GENESYS_REGION),await e.loginClientCredentialsGrant(Ea.GENESYS_CLIENT_ID,Ea.GENESYS_CLIENT_SECRET)}let t=new Hp;await dt.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); + ${t}`),process.exit(1)}var Wa=Xy.data,Qi=new Rp({name:"genesys-cloud-architect",version:"2.0.3"}),Ra=new ku.default.ArchitectApi,lte=new ku.default.RoutingApi,nz=b1({architectApi:Ra});Qi.registerTool("find_flow",nz.config,nz.handler);var iz=j1({routingApi:lte});Qi.registerTool("find_queue",iz.config,iz.handler);var tz=U1({architectApi:Ra});Qi.registerTool("flow_dependencies",tz.config,tz.handler);var az=F1({architectApi:Ra});Qi.registerTool("flow_ir",az.config,az.handler);var rz=G1({architectApi:Ra});Qi.registerTool("flow_action",rz.config,rz.handler);var sz=X1({architectApi:Ra});Qi.registerTool("search_in_flow",sz.config,sz.handler);var oz=P1({architectApi:Ra});Qi.registerTool("find_flow_execution",oz.config,oz.handler);var lz=L1({architectApi:Ra});Qi.registerTool("flow_execution_data",lz.config,lz.handler);var uz=K1({architectApi:Ra});Qi.registerTool("get_prompts",uz.config,uz.handler);var cz=A1({region:Wa.GENESYS_REGION,clientId:Wa.GENESYS_CLIENT_ID,clientSecret:Wa.GENESYS_CLIENT_SECRET,deployScriptPath:Wa.DEPLOY_SCRIPT_PATH});Qi.registerTool("deploy_flow",cz.config,cz.handler);var pz=ez({textbotsApi:new ku.default.TextbotsApi});Qi.registerTool("test_bot_flow",pz.config,pz.handler);(async()=>{if(Wa.PREVENT_LOGIN)console.warn("Login for Platform API skipped. Calling tools will result in an auth failure.");else{let e=ku.default.ApiClient.instance;e.setEnvironment(Wa.GENESYS_REGION),await e.loginClientCredentialsGrant(Wa.GENESYS_CLIENT_ID,Wa.GENESYS_CLIENT_SECRET)}let t=new zp;await Qi.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); /*! Bundled license information: mime-db/index.js: diff --git a/skills/interpret-flow-ir/SKILL.md b/skills/interpret-flow-ir/SKILL.md index dd0f2d5..8efce36 100644 --- a/skills/interpret-flow-ir/SKILL.md +++ b/skills/interpret-flow-ir/SKILL.md @@ -1,6 +1,6 @@ --- name: interpret-flow-ir -description: Use when interpreting the JSON returned by the flow_ir, flow_action, search_in_flow, find_flow_execution or flow_execution_data tools, or when the user asks about a deployed Genesys Cloud Architect flow, including one named only by flow name (resolve with find_flow first) or a queue named only by queue name (resolve with find_queue first). Covers structural questions ("analyse this flow", "trace the path", "find dead logic", "does it loop"), semantic questions ("what does this decision check", "what does pressing 2 do"), search questions ("which actions reference this queue", "which use Flow.DNIS"), and execution questions about a real conversation or test run ("what did this conversation do", "why did the customer loop", "did the flow error", "is it working"). Use it to answer control-flow questions from the IR rather than the raw configuration JSON, to find the actions worth inspecting, to fetch per-action settings the IR omits, and to read one run's execution data against the IR. +description: Use when interpreting the JSON returned by the flow_ir, flow_action, search_in_flow, find_flow_execution or flow_execution_data tools, or when the user asks about a deployed Genesys Cloud Architect flow, including one named only by flow name (resolve with find_flow first) or a queue named only by queue name (resolve with find_queue first). Covers structural questions ("analyse this flow", "trace the path", "find dead logic", "does it loop"), semantic questions ("what does this decision check", "what does pressing 2 do"), search questions ("which actions reference this queue", "which use Flow.DNIS"), prompt questions ("what does the caller hear here", "what does Prompt.Welcome say"; resolve with get_prompts), and execution questions about a real conversation or test run ("what did this conversation do", "why did the customer loop", "did the flow error", "is it working"). Use it to answer control-flow questions from the IR rather than the raw configuration JSON, to find the actions worth inspecting, to fetch per-action settings the IR omits, and to read one run's execution data against the IR. --- # Interpreting Flow IRs @@ -211,6 +211,30 @@ matching `paths[]` entry supplies the outcome *name*, and the IR branch-output node `::` supplies where that outcome leads. Use `paths[].nextActionId` for nothing. +## Prompt content: the `get_prompts` tool + +Audio-playing actions (Play Audio, Communicate, Menu, Collect Input) reference +reusable *user prompts* by name, as `Prompt.`, so the raw config returned by +`flow_action` tells you *which* prompt plays but not what the caller hears or for +how long. `get_prompts` resolves that. Three ways to ask, combinable in one call: + +- `flowId` — every user prompt the flow's latest configuration references, in + encounter order. Reach for this first when the question is about a flow's whole + script; one call replaces a `flow_action` sweep. +- `promptNames` — names exactly as the config shows them (the `Prompt.` prefix is + accepted and stripped). Matching is exact, not a search. +- `promptIds` — ids from the USERPROMPT entries of `flow_dependencies`. + +**Attributing a hang-up to a prompt.** `durationTotals` sums recorded durations +per language over the prompts *in the order returned*, and `sequence` gives each +prompt's `startSeconds`. The offsets mean something only if that is the play +order: use `flowId` alone, or list `promptIds`/`promptNames` in play order. +Encounter order follows one path through a branching flow, so confirm the path +against the IR before reading off which prompt was playing N seconds in. + +Inline `ToAudioTTS("...")` text and `PromptSystem.` system prompts are not +user prompts; the former is already in the raw config, the latter is out of scope. + ## Content search: the `search_in_flow` tool `search_in_flow` answers "which actions reference X" in **one call**. It matches diff --git a/src/mcp-server/index.ts b/src/mcp-server/index.ts index 42afdf7..074bac0 100644 --- a/src/mcp-server/index.ts +++ b/src/mcp-server/index.ts @@ -10,6 +10,7 @@ import { flowAction } from "./tools/flow-action.ts"; import { flowDependencies } from "./tools/flow-dependencies.ts"; import { flowExecutionData } from "./tools/flow-execution-data.ts"; import { flowIr } from "./tools/flow-ir.ts"; +import { getPrompts } from "./tools/get-prompts.ts"; import { searchInFlow } from "./tools/search-in-flow.ts"; import { testBotFlow } from "./tools/test-bot-flow.ts"; @@ -87,6 +88,13 @@ server.registerTool( flowExecutionDataTool.handler, ); +const getPromptsTool = getPrompts({ architectApi }); +server.registerTool( + "get_prompts", + getPromptsTool.config, + getPromptsTool.handler, +); + const deployFlowTool = deployFlow({ region: envVars.GENESYS_REGION, clientId: envVars.GENESYS_CLIENT_ID, diff --git a/src/mcp-server/tools/api-error.ts b/src/mcp-server/tools/api-error.ts index ab5b750..43efd19 100644 --- a/src/mcp-server/tools/api-error.ts +++ b/src/mcp-server/tools/api-error.ts @@ -25,6 +25,27 @@ export function toApiError(err: unknown): ApiError { return { status, code, message }; } +/** + * Guidance to append to an auth failure's message. `permission` names the + * Genesys Cloud permission the tool needs, e.g. "Routing > Queue > View + * (routing:queue:view)". Empty for any other status. + */ +export function authHint( + status: number | undefined, + permission: string, +): string { + if (status === 401) { + return ( + " The access token is missing or expired; re-authenticate " + + "(restart the MCP server) and retry." + ); + } + if (status === 403) { + return ` The OAuth client needs the '${permission}' permission.`; + } + return ""; +} + export function formatApiError(err: unknown): string { const { status, code, message } = toApiError(err); const parts: string[] = []; diff --git a/src/mcp-server/tools/entity-ref.ts b/src/mcp-server/tools/entity-ref.ts new file mode 100644 index 0000000..28d3438 --- /dev/null +++ b/src/mcp-server/tools/entity-ref.ts @@ -0,0 +1,13 @@ +/** A reference to another Genesys Cloud entity, as the API embeds them. */ +export interface EntityRef { + id: string; + name?: string; +} + +/** Null when the API gave no reference or one without an id. */ +export function toEntityRef( + ref: { id?: string; name?: string } | undefined, +): EntityRef | null { + if (!ref?.id) return null; + return { id: ref.id, ...(ref.name ? { name: ref.name } : {}) }; +} diff --git a/src/mcp-server/tools/find-flow-execution.ts b/src/mcp-server/tools/find-flow-execution.ts index 2fe9e14..86110a7 100644 --- a/src/mcp-server/tools/find-flow-execution.ts +++ b/src/mcp-server/tools/find-flow-execution.ts @@ -1,6 +1,6 @@ import type { ArchitectApi, Models } from "purecloud-platform-client-v2"; import { z } from "zod/v3"; -import { formatApiError, toApiError } from "./api-error.ts"; +import { authHint, formatApiError, toApiError } from "./api-error.ts"; import type { ToolFactory } from "./types.ts"; /** The API's own ceiling on results per query, per the help centre. */ @@ -240,11 +240,9 @@ export const findFlowExecution: ToolFactory = ({ } catch (err) { const { status } = toApiError(err); const hint = - status === 403 - ? " The OAuth client needs the 'Architect > Flow Instance > Search' permission." - : status === 400 - ? " The query was rejected; check that the conversationId and flowId are well-formed Genesys Cloud ids." - : ""; + status === 400 + ? " The query was rejected; check that the conversationId and flowId are well-formed Genesys Cloud ids." + : authHint(status, "Architect > Flow Instance > Search"); return { isError: true, content: [ diff --git a/src/mcp-server/tools/find-queue.ts b/src/mcp-server/tools/find-queue.ts index 5d937dc..d1fd84a 100644 --- a/src/mcp-server/tools/find-queue.ts +++ b/src/mcp-server/tools/find-queue.ts @@ -1,18 +1,14 @@ import type platformClient from "purecloud-platform-client-v2"; import type { RoutingApi } from "purecloud-platform-client-v2"; import { z } from "zod/v3"; -import { formatApiError, toApiError } from "./api-error.ts"; +import { authHint, formatApiError, toApiError } from "./api-error.ts"; +import { type EntityRef, toEntityRef } from "./entity-ref.ts"; import { isExactNameMatch, moveExactMatchToTop } from "./name-match.ts"; import type { ToolFactory } from "./types.ts"; const MAX_RETURNED_QUEUES = 50; const MAX_FETCHED_QUEUES = 200; -interface EntityRef { - id: string; - name?: string; -} - interface QueueSummary { id: string; name: string; @@ -46,13 +42,6 @@ function toWildcardName(name: string): string { return `*${fragment}*`; } -function toEntityRef( - ref: { id?: string; name?: string } | undefined, -): EntityRef | undefined { - if (!ref?.id) return undefined; - return { id: ref.id, ...(ref.name ? { name: ref.name } : {}) }; -} - function toQueueSummary(queue: platformClient.Models.Queue): QueueSummary { const queueFlow = toEntityRef(queue.queueFlow); const emailInQueueFlow = toEntityRef(queue.emailInQueueFlow); @@ -60,7 +49,7 @@ function toQueueSummary(queue: platformClient.Models.Queue): QueueSummary { return { id: queue.id ?? "", name: queue.name ?? "", - division: toEntityRef(queue.division) ?? null, + division: toEntityRef(queue.division), memberCount: queue.memberCount ?? null, joinedMemberCount: queue.joinedMemberCount ?? null, dateModified: queue.dateModified ?? null, @@ -182,16 +171,16 @@ export const findQueue: ToolFactory = ({ content: [{ type: "text", text: JSON.stringify(result) }], }; } catch (err) { - const permissionHint = - toApiError(err).status === 403 - ? " The OAuth client needs the 'Routing > Queue > View' permission." - : ""; + const hint = authHint( + toApiError(err).status, + "Routing > Queue > View", + ); return { isError: true, content: [ { type: "text", - text: `Failed to search for queues: ${formatApiError(err)}${permissionHint}`, + text: `Failed to search for queues: ${formatApiError(err)}${hint}`, }, ], }; diff --git a/src/mcp-server/tools/flow-execution-data.ts b/src/mcp-server/tools/flow-execution-data.ts index c36e4f4..1798096 100644 --- a/src/mcp-server/tools/flow-execution-data.ts +++ b/src/mcp-server/tools/flow-execution-data.ts @@ -9,7 +9,7 @@ import { } from "@makingchatbots/genesys-cloud-architect-diagram-lib"; import type { ArchitectApi, Models } from "purecloud-platform-client-v2"; import { z } from "zod/v3"; -import { formatApiError, toApiError } from "./api-error.ts"; +import { authHint, formatApiError, toApiError } from "./api-error.ts"; import { fetchFlowConfiguration } from "./fetch-flow-configuration.ts"; import type { ToolFactory } from "./types.ts"; @@ -24,6 +24,7 @@ const DEFAULT_MAX_WAIT_MS = 45_000; /** How long Genesys Cloud keeps execution data, per the help centre. */ const RETENTION_DAYS = 10; +const PERMISSION = "Architect > Flow Instance > View"; type JobResult = Models.GetFlowExecutionDataJobResult; @@ -135,8 +136,8 @@ function describeEntityFailure( case "403": return ( `Not authorised to read execution data for "${executionId}" (403): the ` + - "OAuth client needs the 'Architect > Flow Instance > View' permission " + - "and division access to the flow." + `OAuth client needs the '${PERMISSION}' permission and division ` + + "access to the flow." ); default: return ( @@ -151,13 +152,8 @@ function describeApiFailure(executionId: string, err: unknown): string { if (err instanceof ExecutionDataError) return err.message; const { status } = toApiError(err); if (status === 404) return describeNotFound(executionId); - if (status === 403) { - return ( - `Not authorised to read execution data (403): the OAuth client needs the ` + - "'Architect > Flow Instance > View' permission." - ); - } - return `Failed to retrieve execution data for "${executionId}": ${formatApiError(err)}`; + const hint = authHint(status, PERMISSION); + return `Failed to retrieve execution data for "${executionId}": ${formatApiError(err)}.${hint}`; } /** Unwrap the downloaded file, `{ "flow": {...} }`, tolerating a bare flow. */ diff --git a/src/mcp-server/tools/flow-ir.ts b/src/mcp-server/tools/flow-ir.ts index 4abac10..51fe7ee 100644 --- a/src/mcp-server/tools/flow-ir.ts +++ b/src/mcp-server/tools/flow-ir.ts @@ -5,6 +5,7 @@ import { import type { ArchitectApi } from "purecloud-platform-client-v2"; import { z } from "zod/v3"; import { fetchFlowConfiguration } from "./fetch-flow-configuration.ts"; +import { isExactNameMatch } from "./name-match.ts"; import type { ToolFactory } from "./types.ts"; /** @@ -20,8 +21,7 @@ function findTask( if (byId) { return { match: byId }; } - const lowered = query.toLowerCase(); - const byName = tasks.filter((t) => t.name.toLowerCase() === lowered); + const byName = tasks.filter((t) => isExactNameMatch(t, query)); if (byName.length > 1) { return { ambiguous: byName }; } diff --git a/src/mcp-server/tools/get-prompts.ts b/src/mcp-server/tools/get-prompts.ts new file mode 100644 index 0000000..bca1cf3 --- /dev/null +++ b/src/mcp-server/tools/get-prompts.ts @@ -0,0 +1,574 @@ +import type platformClient from "purecloud-platform-client-v2"; +import type { ArchitectApi } from "purecloud-platform-client-v2"; +import { z } from "zod/v3"; +import { authHint, formatApiError, toApiError } from "./api-error.ts"; +import { type EntityRef, toEntityRef } from "./entity-ref.ts"; +import { fetchFlowConfiguration } from "./fetch-flow-configuration.ts"; +import { nameKey } from "./name-match.ts"; +import type { ToolFactory } from "./types.ts"; + +/** + * Applied separately to the ids+names given and to a flow's references, so one + * call fetches at most twice this many prompts. + */ +const MAX_PROMPTS = 50; + +const PERMISSION = "Architect > User Prompt > View (architect:userPrompt:view)"; + +/** The upload state in which a prompt's recording is complete and playable. */ +const TRANSCODED = "transcoded"; + +/** + * Flows reference user prompts as `Prompt.`, so callers copying a + * reference straight out of flow_action output arrive with this prefix. + */ +const PROMPT_REFERENCE_PREFIX = /^Prompt\./i; + +const GUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; + +/** Durations arrive with float noise (34.424375000000005); milliseconds are plenty. */ +function roundSeconds(seconds: number): number { + return Math.round(seconds * 1000) / 1000; +} + +interface PromptResourceSummary { + language: string; + /** True for the language Architect falls back to when the caller's language has no resource. */ + languageDefault: boolean; + /** Length of the uploaded recording. Null when there is no recording. */ + durationSeconds: number | null; + /** True when a recording has been uploaded; it then plays instead of ttsString. */ + hasAudio: boolean; + /** Spoken by text-to-speech when no audio has been uploaded for this language. */ + ttsString: string | null; + /** Transcript of the uploaded audio; informational only, never spoken. */ + text: string | null; +} + +interface PromptSummary { + id: string; + name: string; + description: string | null; + division: EntityRef | null; + resources: PromptResourceSummary[]; +} + +interface SequenceEntry { + id: string; + name: string; + /** Seconds into the sequence at which this prompt starts, counting recorded audio only. */ + startSeconds: number; + durationSeconds: number | null; +} + +interface DurationTotal { + language: string; + /** Sum of durationSeconds over the prompts that have a recording in this language. */ + totalDurationSeconds: number; + promptsWithAudio: number; + /** Prompts with no recording in this language; their play time is unknown and excluded from the total. */ + promptsWithoutAudio: number; + /** Prompts in requested order with their start offset into the sequence. */ + sequence: SequenceEntry[]; +} + +interface FailedLookup { + requested: string; + error: string; +} + +interface GetPromptsResult { + flowId?: string; + /** Prompts in the order requested: promptIds, then promptNames, then flow references in encounter order. */ + prompts: PromptSummary[]; + durationTotals: DurationTotal[]; + /** Requested ids and names (as given) that matched no prompt. */ + notFound: string[]; + /** Requested ids that failed for a reason other than not existing. */ + failed?: FailedLookup[]; + notes?: string[]; +} + +function toResourceSummary( + resource: platformClient.Models.PromptAsset, +): PromptResourceSummary { + return { + language: resource.language ?? "", + languageDefault: resource.languageDefault ?? false, + durationSeconds: resource.durationSeconds ?? null, + // A resource keeps its mediaUri while an upload is still processing + // or has failed, so the uri alone does not mean audio plays. Older + // responses omit uploadStatus; trust the uri then. + hasAudio: + Boolean(resource.mediaUri) && + (resource.uploadStatus === undefined || + resource.uploadStatus === TRANSCODED), + ttsString: resource.ttsString || null, + text: resource.text || null, + }; +} + +function toPromptSummary( + prompt: platformClient.Models.Prompt, + language: string | undefined, +): PromptSummary { + const wantedLanguage = nameKey(language); + const resources = (prompt.resources ?? []).filter( + (r) => !language || nameKey(r.language) === wantedLanguage, + ); + return { + id: prompt.id ?? "", + name: prompt.name ?? "", + description: prompt.description ?? null, + division: toEntityRef(prompt.division), + resources: resources.map(toResourceSummary), + }; +} + +function stripPromptReference(name: string): string { + return name.trim().replace(PROMPT_REFERENCE_PREFIX, ""); +} + +/** + * Sum recorded durations per language across the prompts in order, so a + * hang-up N seconds into a sequence can be attributed to the prompt playing. + * Only recordings have a duration; TTS play time is unknown and is counted + * separately rather than silently treated as zero. + */ +function buildDurationTotals(prompts: PromptSummary[]): DurationTotal[] { + const languages = new Set(); + for (const prompt of prompts) { + for (const resource of prompt.resources) { + languages.add(resource.language); + } + } + + return [...languages].sort().map((language) => { + let total = 0; + let withAudio = 0; + let withoutAudio = 0; + const sequence: SequenceEntry[] = []; + for (const prompt of prompts) { + const resource = prompt.resources.find( + (r) => r.language === language, + ); + const duration = resource?.hasAudio + ? (resource.durationSeconds ?? null) + : null; + sequence.push({ + id: prompt.id, + name: prompt.name, + startSeconds: roundSeconds(total), + durationSeconds: duration, + }); + if (duration === null) { + withoutAudio++; + } else { + withAudio++; + total += duration; + } + } + return { + language, + totalDurationSeconds: roundSeconds(total), + promptsWithAudio: withAudio, + promptsWithoutAudio: withoutAudio, + sequence, + }; + }); +} + +/** + * Collect user prompt references from a flow configuration in encounter order. + * + * Architect tags everything of the prompt data type with `type: "pmt"`, + * including *variables* that hold a prompt (`Task.DefaultAudio`), whose ids + * are variable ids, not prompt ids. Three shapes identify an actual prompt: + * + * - `metaData.references[]` entries `{ type: "pmt", id, name: "Prompt.X" }` + * next to every expression that mentions a prompt. Variables appear here + * too, named `Task.X`/`Flow.X`, so the `Prompt.` prefix is the test. + * - `ref` operands `{ type: "pmt", text: "Prompt.X", val: }` inside a + * parsed expression. Same prefix test; a `Task.X` ref is a variable. + * - `lit` operands `{ type: "pmt", text: "X", val: }`: a prompt chosen as + * a literal value, e.g. when assigning a prompt to a variable. These have no + * `metaData.references` entry, so they would otherwise be missed. The text + * is the bare name. + * + * Flow-level settings (e.g. processing audio) can hold a *system* prompt as a + * literal. User prompt ids are GUIDs while system prompt ids look like + * `__processing__`, so id-shaped values are the final filter. + */ +export function collectPromptReferences(configuration: unknown): EntityRef[] { + const found = new Map(); + const seen = new Set(); + + const add = (id: string, name: string | undefined) => { + const ref = toEntityRef({ id, name }); + if (!ref || found.has(ref.id)) return; + found.set(ref.id, ref); + }; + + const walk = (node: unknown, key: string | undefined): void => { + if (node === null || typeof node !== "object") return; + if (seen.has(node)) return; + seen.add(node); + + if (Array.isArray(node)) { + for (const item of node) walk(item, key); + return; + } + + const record = node as Record; + if (record.type === "pmt") { + const name = + typeof record.name === "string" ? record.name : undefined; + const text = + typeof record.text === "string" ? record.text : undefined; + if ( + typeof record.id === "string" && + name?.match(PROMPT_REFERENCE_PREFIX) + ) { + add(record.id, stripPromptReference(name)); + } else if ( + typeof record.val === "string" && + GUID.test(record.val) && + text !== undefined + ) { + if (text.match(PROMPT_REFERENCE_PREFIX)) { + add(record.val, stripPromptReference(text)); + } else if (key === "lit") { + add(record.val, text); + } + } + } + for (const [childKey, value] of Object.entries(record)) { + walk(value, childKey); + } + }; + + walk(configuration, undefined); + return [...found.values()]; +} + +export interface ToolConfig { + architectApi: ArchitectApi; +} + +const inputSchema = { + promptIds: z + .array(z.string().min(1)) + .max(MAX_PROMPTS) + .optional() + .describe( + "User prompt GUIDs, e.g. the `id` of entries under USERPROMPT in " + + "flow_dependencies output. Returned in the order given. " + + "Combined with `promptNames` the total must not exceed " + + `${MAX_PROMPTS}; chunk a larger set into successive calls. ` + + "`flowId` has its own separate limit.", + ), + promptNames: z + .array(z.string().min(1)) + .max(MAX_PROMPTS) + .optional() + .describe( + "User prompt names, exactly as the flow references them. A " + + "`Prompt.` prefix is accepted and stripped, so `Prompt.Welcome` " + + "and `Welcome` both find the prompt named Welcome. Matching is " + + "exact (ignoring case), not a search. Returned in the order " + + "given, after any `promptIds`.", + ), + flowId: z + .string() + .min(1) + .optional() + .describe( + "A Genesys Cloud Architect flow ID. Every user prompt the flow's " + + "latest configuration references is returned, in the order " + + "the references are encountered, so one call covers the " + + `flow's whole script. At most ${MAX_PROMPTS} referenced ` + + "prompts are fetched; any beyond that are listed in a note " + + "to fetch via `promptIds`.", + ), + language: z + .string() + .min(1) + .optional() + .describe( + "Restrict each prompt's resources to one language tag, e.g. " + + "`en-gb`. Omit to return every language.", + ), +}; + +export const getPrompts: ToolFactory = ({ + architectApi, +}: ToolConfig) => ({ + config: { + description: + "Retrieves Genesys Cloud Architect user prompts: the reusable " + + "audio assets that call and in-queue flows play via " + + "`Prompt.` references in Play Audio, Communicate, Menu and " + + "Collect Input actions. For each prompt returns its id, name, " + + "description, division and one resource per language holding " + + "what the caller actually hears: `durationSeconds` and " + + "`hasAudio` (an uploaded recording, which takes precedence), " + + "`ttsString` (spoken by text-to-speech when there is no " + + "recording) and `text` (a transcript of the recording, " + + "informational only). A resource with neither audio nor a TTS " + + "string plays silence. `durationTotals` sums the recorded " + + "durations per language across the prompts in requested order " + + "and gives each prompt's start offset, so a hang-up N seconds " + + "into a sequence of prompts can be attributed to the prompt that " + + "was playing. Look prompts up by name when flow_action output " + + "shows `Prompt.`, by id from flow_dependencies USERPROMPT " + + "entries, or by `flowId` to get every prompt a flow references " + + "in one call. Batch every prompt of interest into one call " + + "rather than calling once per prompt. Does not cover system " + + "prompts (`PromptSystem.`).", + annotations: { + title: "Get Prompts", + readOnlyHint: true, + destructiveHint: false, + }, + inputSchema, + }, + handler: async ({ promptIds = [], promptNames = [], flowId, language }) => { + if (promptIds.length === 0 && promptNames.length === 0 && !flowId) { + return { + isError: true, + content: [ + { + type: "text", + text: "Provide at least one of `promptIds`, `promptNames` or `flowId`.", + }, + ], + }; + } + if (promptIds.length + promptNames.length > MAX_PROMPTS) { + return { + isError: true, + content: [ + { + type: "text", + text: + `At most ${MAX_PROMPTS} prompts can be requested per call ` + + `(${promptIds.length} ids + ${promptNames.length} names given). ` + + "Chunk the request into successive calls.", + }, + ], + }; + } + + const prompts: PromptSummary[] = []; + const notFound: string[] = []; + const failed: FailedLookup[] = []; + const notes: string[] = []; + const seenIds = new Set(); + + const addPrompt = (prompt: platformClient.Models.Prompt) => { + if (prompt.id && seenIds.has(prompt.id)) return; + if (prompt.id) seenIds.add(prompt.id); + prompts.push(toPromptSummary(prompt, language)); + }; + + const fetchById = async (id: string) => { + if (seenIds.has(id)) return; + try { + addPrompt( + await architectApi.getArchitectPrompt(id, { + includeResources: true, + includeMediaUris: true, + ...(language ? { language: [language] } : {}), + }), + ); + } catch (err) { + const { status } = toApiError(err); + if (status === 404) { + notFound.push(id); + } else if (status === 401) { + // An expired token fails every lookup; stop rather than + // repeating the same failure per id. + throw err; + } else if (status === 403) { + // Per prompt, not org-wide: the prompt exists but sits in + // a division this client cannot see (or the client lacks + // the permission entirely, which the first 403 reveals). + // Keep going so the readable prompts are still returned. + failed.push({ + requested: id, + error: + `${formatApiError(err)}. The prompt exists but the ` + + "OAuth client cannot read it: it lacks division " + + `access to it, or the '${PERMISSION}' permission.`, + }); + } else { + failed.push({ requested: id, error: formatApiError(err) }); + } + } + }; + + // Fetch the flow first: it is one cheap call, and failing on it + // before any prompt lookups means a bad flowId cannot discard + // prompts already retrieved by id or name. + let flowReferences: EntityRef[] = []; + if (flowId) { + const fetched = await fetchFlowConfiguration(architectApi, flowId); + if (!fetched.ok) { + return { + isError: true, + content: [{ type: "text", text: fetched.message }], + }; + } + flowReferences = collectPromptReferences(fetched.configuration); + } + + try { + for (const id of new Set(promptIds)) { + await fetchById(id); + } + + if (promptNames.length > 0) { + // Keyed case-insensitively so each prompt is matched once, + // while the name sent to the API keeps the caller's casing in + // case its filter is case-sensitive. + const wanted = new Map< + string, + { requested: string; stripped: string } + >(); + for (const requested of promptNames) { + const stripped = stripPromptReference(requested); + const key = nameKey(stripped); + if (key && !wanted.has(key)) { + wanted.set(key, { requested, stripped }); + } + } + + const byName = new Map(); + let pageNumber = 1; + while (true) { + const page = await architectApi.getArchitectPrompts({ + name: [...wanted.values()].map((w) => w.stripped), + includeResources: true, + includeMediaUris: true, + ...(language ? { language: [language] } : {}), + pageSize: 100, + pageNumber, + }); + for (const prompt of page.entities ?? []) { + const key = nameKey(prompt.name); + // The API's name filter is trusted only as a + // pre-filter; keep exact matches so a fragment or + // wildcard match never masquerades as the prompt + // the flow references. + if (wanted.has(key) && !byName.has(key)) { + byName.set(key, prompt); + } + } + if (!page.nextUri) break; + pageNumber++; + } + + // Emit in the order the names were requested. + for (const [key, { requested }] of wanted) { + const prompt = byName.get(key); + if (prompt) { + addPrompt(prompt); + } else { + notFound.push(requested); + } + } + } + + if (flowId) { + const references = flowReferences; + if (references.length === 0) { + notes.push( + `Flow "${flowId}" references no user prompts in its ` + + "latest configuration. Audio it plays is inline " + + "TTS, system prompts or neither.", + ); + } + const toFetch = references.slice(0, MAX_PROMPTS); + const overflow = references.slice(MAX_PROMPTS); + if (overflow.length > 0) { + notes.push( + `Flow "${flowId}" references ${references.length} user ` + + `prompts; only the first ${MAX_PROMPTS} were fetched. ` + + "Fetch the rest with promptIds: " + + overflow.map((r) => r.id).join(", "), + ); + } + let alreadyReturned = 0; + for (const reference of toFetch) { + if (seenIds.has(reference.id)) { + alreadyReturned++; + } else { + await fetchById(reference.id); + } + } + if (alreadyReturned > 0) { + notes.push( + `${alreadyReturned} of the flow's referenced prompts ` + + "were already returned at their promptIds/promptNames " + + "position, so durationTotals.sequence does not follow " + + "flow order. Call with flowId alone for a flow-ordered " + + "sequence.", + ); + } + } + } catch (err) { + const hint = authHint(toApiError(err).status, PERMISSION); + return { + isError: true, + content: [ + { + type: "text", + text: `Failed to retrieve prompts: ${formatApiError(err)}.${hint}`, + }, + ], + }; + } + + if (notFound.length > 0) { + notes.push( + "Entries in notFound matched no user prompt in this org. A flow " + + "referencing such a prompt plays silence there. Names are " + + "matched exactly (ignoring case), so check the spelling " + + "against the flow's `Prompt.` reference; if the " + + "reference is `PromptSystem.` it is a system prompt, " + + "which this tool does not return.", + ); + } + if (prompts.some((p) => p.resources.length === 0)) { + notes.push( + language + ? `A prompt with no resources has no audio or TTS for language "${language}"; ` + + "Architect falls back to its languageDefault resource, which was " + + "filtered out of this response. Call again without `language` to see it." + : "A prompt with no resources has no audio or TTS in any " + + "language and plays silence wherever it is referenced.", + ); + } + const durationTotals = buildDurationTotals(prompts); + if (durationTotals.some((t) => t.promptsWithoutAudio > 0)) { + notes.push( + "totalDurationSeconds counts recorded audio only. Prompts " + + "counted in promptsWithoutAudio play TTS (or silence) for " + + "that language, whose duration is not known, so the " + + "sequence's real play time is longer than the total.", + ); + } + + const result: GetPromptsResult = { + ...(flowId ? { flowId } : {}), + prompts, + durationTotals, + notFound, + ...(failed.length > 0 ? { failed } : {}), + ...(notes.length > 0 ? { notes } : {}), + }; + return { + content: [{ type: "text", text: JSON.stringify(result) }], + }; + }, +}); diff --git a/src/mcp-server/tools/name-match.ts b/src/mcp-server/tools/name-match.ts index ca7edcf..7306117 100644 --- a/src/mcp-server/tools/name-match.ts +++ b/src/mcp-server/tools/name-match.ts @@ -2,8 +2,16 @@ interface Named { name?: string; } +/** + * The form two names (or other case-insensitive identifiers, e.g. language + * tags) are compared in. Use as a Map key. + */ +export function nameKey(name: string | undefined): string { + return (name ?? "").toLowerCase(); +} + export function isExactNameMatch(entity: Named, name: string): boolean { - return (entity.name ?? "").toLowerCase() === name.toLowerCase(); + return nameKey(entity.name) === nameKey(name); } export function moveExactMatchToTop(